Hello Tom, Sadly I don't have a solution for you besides a manual intervention of the CMakeLists.txt file on the QtGui module: pyside-setup/sources/pyside2/PySide2/QtGui
If you comment the lines with OpenGL references you should get many warning from the typesystem of classes defined but not generated, for example the line: <object-type name="QAbstractOpenGLFunctions" since="5.1"/> on the 'typesystem_gui_common.xml' file (on the same directory). I believe it should build, but in case of other weird typesystem errors, you will need to comment from the XML file all the entries related to the classes you commented on the CMakeLists.txt. The only options we have built-in are to skip certain modules: --skip-modules=Widgets,WebEngine,... and to build just some modules: --module-subset=Core,Gui, ... Sorry for the inconvenience, but good luck with your effort! Cheers On 7/15/20 8:07 PM, Kacvinsky, Tom wrote:
HI all, Due to constraints we have, I need to build Qt5 on CentOS 5. Yeah, I know, not ideal, but there is nothing I can do about it for the moment. In any case, Qt5 depends on OpenGL 2.0 or later, and CentOS 5 has OpenGL 1.2. So I have been fighting to get a later version of Mesa built for CentOS 5, which would give me the OpenGL 2.0 support I need. I have not had much luck. So, what I did is build Qt5 without OpenGL support (the -no-opengl configure flag) and Qt5 builds just fine. However, when I go to build PySide2, it fails to build the QtGui module due to missing OpenGL based targets: make[2]: *** No rule to make target `PySide2/QtGui/PySide2/QtGui/qabstractopenglfunctions_wrapper.cpp', needed by `PySide2/QtGui/CMak\ eFiles/QtGui.dir/PySide2/QtGui/qabstractopenglfunctions_wrapper.cpp.o'. Stop. make[1]: *** [PySide2/QtGui/CMakeFiles/QtGui.dir/all] Error 2 Is there a way of configuring PySide2 builds (via setup.py options) to get around the building of OpenGL support in QtGui? Thanks, Tom _______________________________________________ PySide mailing list PySide@qt-project.org https://lists.qt-project.org/listinfo/pyside
-- Dr. Cristian Maureira-Fredes R&D Manager The Qt Company GmbH Erich-Thilo-Str. 10 D-12489 Berlin Geschäftsführer: Mika Pälsi, Juha Varelius, Mika Harjuaho Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht Charlottenburg, HRB 144331 B _______________________________________________ PySide mailing list PySide@qt-project.org https://lists.qt-project.org/listinfo/pyside