Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
PySide failed to build from source with custom Qt build
kraken1564 last edited by
I'd like to deploy my app with all the necessary dependencies so I'd like to make the size of the app as small as possible. To do that, I built Qt from source with the features that I do not need disabled, e.g.:
configure --no-feature-network ...
After that I try to build PySide2 from source using this custom Qt build and I get this error:
make: *** No rule to make target «PySide2/QtCore/PySide2/QtCore/qabstractanimation_wrapper.cpp», for «PySide2/QtCore/CMakeFiles/QtCore.dir/PySide2/QtCore/qabstractanimation_wrapper.cpp.o». Stop. CMakeFiles/Makefile2:200: recipe for target 'PySide2/QtCore/CMakeFiles/QtCore.dir/all' failed make: *** [PySide2/QtCore/CMakeFiles/QtCore.dir/all] Error 2 Makefile:129: recipe for target 'all' failed make: *** [all] Error 2 error: Error compiling pyside2
I did disable the 'animation' feature (--no-feature-animation). If I turn it back on, I get another similar errors for the disabled features.
So the question is whether the PySide build tools can automatically find out what features have been disabled or not? If not, can I do it manually? I can't find any options or arguments that I can use to disable features in PySide explicitly.
That's something you should rather bring to the PySide mailing list. You'll find there PySide2 developers/maintainers. This forum is more user oriented.