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

Phil Thompson phil at riverbankcomputing.com
Sun Feb 9 10:34:40 GMT 2014


On 07-02-2014 11:38 am, Sergey Anufrienko wrote:
> 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!

This has already been implemented in the current snapshot - except for 
the --no-opengl option. Why would that be needed in a correctly 
configured Qt?

Phil


More information about the PyQt mailing list