[PyQt] [PATCH] Configuration flag to turn off building & dependency on OpenGL

Sergey Anufrienko sergey.anoufrienko at gmail.com
Fri Feb 7 11:38:25 GMT 2014


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:

py_platform = linux
py_version = 0x02070000
py_inc_dir = /usr/include/python2.7
py_pylib_dir = /usr/lib/python2.7/config
py_pylib_lib = python2.7mu
pyqt_bin_dir = /usr/bin
pyqt_module_dir = /usr/lib/python2.7/site-packages
pyqt_modules = QtCore QtWidgets QtGui
pyqt_sip_dir = /usr/share/sip/PyQt5
pyuic_interpreter = /usr/bin/pytho2.7
qt_licensee = Open Source
qt_shared = True
qt_disabled_features = PyQt_Desktop_OpenGL PyQt_qreal_double PyQt_OpenGL

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.

Thank you!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20140207/230b377b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PyQt-gpl-5.2-nogl.patch
Type: application/octet-stream
Size: 5876 bytes
Desc: not available
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20140207/230b377b/attachment.obj>


More information about the PyQt mailing list