tde-devs@chat.jabb.im < 2021/11/04 > |
[04:13] | michelec2 has joined |
[09:08] | michelec2 has left |
[09:08] | michelec2 has joined |
[11:53] | blu.256 has left |
[12:03] | cethyel has joined |
[13:15] | cethyel: Slávek, have you ever built sip4_tqt on FreeBSD? |
[13:16] | Slávek: No, these python things I (yet) avoided on FreeBSD. |
[13:17] | cethyel: never, not even once just to give It a try? |
[13:18] | Slávek: I've never tried it yet. |
[13:18] | cethyel: ok |
[13:18] | Slávek: The only thing where python is used, is tdeedu. |
[13:43] | cethyel: sip4_tqt wouldn't build at the moment on FreeBSD, for instance a sipconfig.py file is created from the configure.py file. That configure python file (sipconfig.py) become a python module called from the config phase in python-{tqt, trinity} and pytdeextensions. This sipconfig.py has parsed values taken from mkspecs files provided in sip4_tqt/specs. Unfortunately, the "set_defaults class" has a key/values pairing thing (tuple or dictionnary, I don't remember how It's been called in Python) set on g++ https://mirror.git.trinitydesktop.org/gitea/TDE/sip4-tqt/src/branch/master/configure.py#L132 |
[13:45] | cethyel: if you have built tqt3 with linux-g++-64 the platform is not detected either |
[13:48] | Slávek: On FreeBSD is used mkspec: freebsd-clang |
[13:49] | cethyel: gcc should be a dependency for sip4_tqt at the moment since FreeBSD has removed gcc in base if I remember well |
[13:54] | cethyel: furthermore I believe, the mkspecs files provided in sip4_tqt/specs should be removed for a link on those in tqt3, (a sub-module in git terminology I believe), at least each changes on the specs files in tqt3 will be reported in sip4_tqt, much better the configure.py file should not relies on the specs files but should detect the platform on which tqt3 has been be built; |
[13:58] | cethyel: I don't think I can make the conversion to cmake for this python stuff, sipconfig.py seems to much to emulate |
[14:05] | cethyel: in sip4_tqt, cmake conversion is fine for the executable and the library, but emulating sipconfig.py with cmake is difficult, sipconfig is not needed at run-time for python-{tqt, trinity}, It's just for build time. |
[14:07] | cethyel: Do we have way to know which mkspecs file has been used to build tqt3? |
[14:08] | Slávek: Ussualy is created symlink "default". |
[14:12] | cethyel: ok, I see It in the building directory for tqt3 but I don't see It in the package, I don't see that symlink in my install either |
[14:16] | Slávek: I assumed that Python modules will require more care for CMake conversion :( |
[14:19] | cethyel: like you say, I had a look yesterday on python-tqt, but I didn't get how sip works, I don't understand how sip turns sip files into C++ files :-( |
[14:30] | michelec2: https://www.bogotobogo.com/python/python_cpp_sip.php |
[14:30] | tde-bot: Page title: Python Tutorial: C++ & sip - 2020 |
[14:30] | michelec2: you may want to have a look here |
[14:30] | cethyel: maybe, a mkspecs variable should be added to tqt3's pkgconfig file in order to keep a record of what mkspecs file has been used for the build then that keyword's value could be parsed by configure.py from sip4_tqt |
[14:31] | michelec2: it's a good tutorial on SIP |
[14:31] | michelec2: although it may be based on later versions than the one we use |
[14:33] | cethyel: @Michele, thanks for the info, I'll have a look at It, hope for other info than here http://nclairon.free.fr/documentation/pyqt/x9022.htm |
[14:35] | cethyel: ok, sip should just work with the -b parameter |
[14:35] | michelec2: Hi Greg, no prob. I haven't read it tbh, but I went through it quite quickly and it seems to cover quite a bit of tech aspects, based on what I know of SIP |
[14:36] | cethyel: your link is interesting :yes: |
[14:36] | michelec2: basically you can think of SIP as a file generator from other files :-) |
[14:37] | cethyel: i get what does sip, but creating sip files is not my concern, I just need to know how to use the tool |
[14:40] | michelec2: (y) |
[14:41] | cethyel: so much good stuff at bogotobogo.com :) |
[14:43] | michelec2: glad you find it usefule |
[14:43] | michelec2: useful |
[14:44] | cethyel: I knew the site...and forgot...:-D |
[14:44] | michelec2: that's where google is your friend :-) |
[14:53] | blu.256 has joined |
[14:54] | cethyel: I'll be going, ciao boys! |
[14:54] | cethyel has left |
[14:54] | michelec2: see you |
[15:54] | michelec2 has left |
[15:55] | michelec2 has joined |
[15:57] | michelec2 has left |
tde-devs@chat.jabb.im < 2021/11/04 > |