[PyQt] PyQt-5.8.0 fails to build against Qt with OpenGLES support

Heiko Becker heirecka at exherbo.org
Fri Feb 24 18:29:29 GMT 2017


Hello,

if Qt is compiled with support for OpenGLES, PyQt 5.8.0 fails to build
with the error below. With Qt without OpenGLES it builds fine, as well
as with PyQt-5.7 regardless of the state of OpenGLES.

Any idea why this might happen?

x86_64-pc-linux-gnu-g++ -c -pipe -pipe -O2 -march=native -g -pipe -O2
-march=native -g -g -fno-exceptions -Wall -W -D_REENTRANT -fPIC
-DSIP_PROTECTED_IS_PUBLIC -Dprotected=public -DPy_LIMITED_API=0x03040000
-DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_PLUGIN -DQT_GUI_LIB -DQT_CORE_LIB
-I. -I. -I/usr/x86_64-pc-linux-gnu/include/python2.7 -isystem
/usr/include/python2.7 -I../qpy/QtGui
-I/usr/x86_64-pc-linux-gnu/include/qt5
-I/usr/x86_64-pc-linux-gnu/include/qt5/QtGui
-I/usr/x86_64-pc-linux-gnu/include/qt5/QtCore -I.
-I/usr/x86_64-pc-linux-gnu/lib/qt5/mkspecs/linux-g++ -o
sipQtGuiQList0100QOpenGLDebugMessage.o
sipQtGuiQList0100QOpenGLDebugMessage.cpp
In file included from
/var/tmp/paludis/build/dev-python-PyQt5-5.8/work/PYTHON_ABIS/2.7/PyQt5_gpl-5.8/sip/QtGui/qopenglshaderprogram.sip:332:0,
                 from sipQtGuiQList0100QGlyphRun.cpp:24:
../qpy/QtGui/qpyopengl_api.h:70:53: error: 'GLdouble' does not name a type
 PyObject *qpyopengl_from_GLdouble(int *eflag, const GLdouble *array,
                                                     ^~~~~~~~
In file included from
/var/tmp/paludis/build/dev-python-PyQt5-5.8/work/PYTHON_ABIS/2.7/PyQt5_gpl-5.8/sip/QtGui/qopenglshaderprogram.sip:332:0,
                 from sipQtGuiQPalette.cpp:24:
../qpy/QtGui/qpyopengl_api.h:70:53: error: 'GLdouble' does not name a type
 PyObject *qpyopengl_from_GLdouble(int *eflag, const GLdouble *array,
                                                     ^~~~~~~~
In file included from
/var/tmp/paludis/build/dev-python-PyQt5-5.8/work/PYTHON_ABIS/2.7/PyQt5_gpl-5.8/sip/QtGui/qopenglshaderprogram.sip:332:0,
                 from sipQtGuiQList0100QOpenGLDebugMessage.cpp:24:
../qpy/QtGui/qpyopengl_api.h:70:53: error: 'GLdouble' does not name a type
 PyObject *qpyopengl_from_GLdouble(int *eflag, const GLdouble *array,
                                                     ^~~~~~~~
make[1]: *** [Makefile:2147: sipQtGuiQList0100QOpenGLDebugMessage.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:1837: sipQtGuiQList0100QGlyphRun.o] Error 1
make[1]: *** [Makefile:2002: sipQtGuiQPalette.o] Error 1
make[1]: Leaving directory
'/var/tmp/paludis/build/dev-python-PyQt5-5.8/work/PYTHON_ABIS/2.7/PyQt5_gpl-5.8/QtGui'
make: *** [Makefile:109: sub-QtGui-make_first-ordered] Error 2

Best regards,
Heiko


More information about the PyQt mailing list