<div dir="ltr">The attached patch can be applied to the PyQt-gpl-5.2 source tree. It allows to disable building any OpenGL-related bindings and also disables the dependency on OpenGL headers. It is useful for cross-compiling PyQt5 for an embedded platform which lacks OpenGL support (say, QT5 with LinuxFB backend). To use it, apply the patch, create a configuration file such as the example configuration below, and add --no-opengl option to configure.py. Note the new feature 'PyQt_OpenGL', which controls building of OpenGL support:<div>
<br></div><div><div>py_platform = linux</div><div>py_version = 0x02070000</div><div>py_inc_dir = /usr/include/python2.7</div><div>py_pylib_dir = /usr/lib/python2.7/config</div><div>py_pylib_lib = python2.7mu</div><div>pyqt_bin_dir = /usr/bin</div>
<div>pyqt_module_dir = /usr/lib/python2.7/site-packages</div><div>pyqt_modules = QtCore QtWidgets QtGui</div><div>pyqt_sip_dir = /usr/share/sip/PyQt5</div><div>pyuic_interpreter = /usr/bin/pytho2.7</div><div>qt_licensee = Open Source</div>
<div>qt_shared = True</div><div>qt_disabled_features = PyQt_Desktop_OpenGL PyQt_qreal_double PyQt_OpenGL</div></div><div><br></div><div>Compiled PyQt5 library with this patch enabled has been successfully tested on an embedded device without OpenGL support. If someone from Riverbank Computing is also reading this mailing list, please consider adding this or similar patch into the official PyQt source tree.</div>
<div><br></div><div>Thank you!</div><div><br></div></div>