Closed tonka3000 closed 1 month ago
@mrbean-bremen
I have to say that I have not used qmake with PythonQt, just cmake, so I'm not the best to review this. Maybe @he-hesce can have another look...
Well, I think those qmake lines will work though we build it differently. We place the pythonqt directory into our libsrc directory and add it to the libsrc.pro file in that directory. Then it gets built as part of the application build. It is then linked at the top-level project file. We do have to hack some of the lib paths in the PythonQt pro files for it to place build libraries where we place our other built libraries but that is extracurricular for our build environment/system. We do build our application including PythonQt using qmake which works fine and hopefully will continue to do so as we need to use and support qmake/qt5.15 for another decade or so (RHEL/Rocky 9).
@he-hesce The qmake commands work because they are straight out of my conan recipe 😄 . I'm using 99% cmake, PyhonQt is the only project I use qmake for, so am not an expert in qmake. Also need to support 5.11 - 5.15 for now. But hopefully I make the jump to Qt 6 after having upgraded PythonQt to the lastest version.
Add more detailed build instructions to the Readme to avoid some common pitfalls (see #230) when building PythonQt.
For now I left the original build section in the Readme, but in my opinion the instructions can be removed.
Currently I mention of the env-vars I used for building it with conan, maybe some are not necessary in all configurations.