OSX link problems with older QT (5.4)
Dynamic Python binding for Qt Applications
Brought to you by:
florianlink,
marcusbarann
Hi Florian,
I have a project that still uses Qt5.4 with Python 2.7. I occasionally try to sync with the latest version of PythonQt but I seem to be getting link issues on OSX. I traced it back and my compile stops working on SVN revision 429. Is there an easy way to fix this or should I just stick with revision 428 for now. Are you planning on deprecating Qt 5.4?
Sorry, I did not regenerate the wrappers for Qt 5.4 and what you can't compile are the new wrappers (QtQuick and QtQml). You can either just uncomment the lines regarding QtQuick and QtQml in PythonQt_All or you can run the generator on your Qt version, it will generate the missing wrappers.
Qt 5.4 itself should not be a problem. I am kind of lazy regarding older Qt versions, because I stopped keeping them around and compiling them.
Last edit: Florian Link 2016-06-22
Hi,
Could you please provide a little bit more details regarding the solutions you propose? I am not sure I understand which lines I should uncomment in order to make QtQml and QtQuick wrappers to work.
I tried to edit the lines
PythonQt_init_QtQml(0);
PythonQt_init_QtQuick(0);
in the file: extensions/PythonQt_QtAll/PythonQt_QtAll.cpp
and change the value zero to one, but this didn't change anything.
Also, if this solution is not ideal, could you please explain or point to instructions for how I run the generator on my Qt version? Thanks a lot for the help!
You should just comment/remove those two lines, that should be enough.
It worked - many thanks!