[PyQt] Build error PyQt5_gpl-5.9.2.dev1711061040

Ben Croston ben at wyre-it.co.uk
Thu Nov 9 14:25:08 GMT 2017


I am getting a build error when trying to compile PyQt 5.9.1 and 
PyQt5_gpl-5.9.2.dev1711061040:

cd QtGui/ && ( test -e Makefile || /usr/lib/i386-linux-gnu/qt5/bin/qmake 
/home/croston/python3/PyQt5_gpl-5.9.2.dev1711061040/QtGui/QtGui.pro -o 
Makefile ) && make -f Makefile
make[1]: Entering directory 
'/home/croston/python3/PyQt5_gpl-5.9.2.dev1711061040/QtGui'
g++ -c -pipe -O2 -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/usr/lib/i386-linux-gnu/qt5/mkspecs/linux-g++ -I. -I. -isystem 
/usr/local/include/python3.6m -I../qpy/QtGui -isystem 
/usr/include/i386-linux-gnu/qt5 -isystem 
/usr/include/i386-linux-gnu/qt5/QtGui -isystem 
/usr/include/i386-linux-gnu/qt5/QtCore -I. -o sipQtGuiQPaintEngine.o 
sipQtGuiQPaintEngine.cpp
/home/croston/python3/PyQt5_gpl-5.9.2.dev1711061040/QtGui/sipQtGuiQPaintEngine.cpp: 
In member function ‘virtual QPaintEngine::Type sipQPaintEngine::type() 
const’:
/home/croston/python3/PyQt5_gpl-5.9.2.dev1711061040/QtGui/sipQtGuiQPaintEngine.cpp:136:33: 
error: ‘QPaintEngine::Type’ is not a class or namespace
          return  ::QPaintEngine::Type::X11;
                                  ^
Makefile:1346: recipe for target 'sipQtGuiQPaintEngine.o' failed
make[1]: *** [sipQtGuiQPaintEngine.o] Error 1
make[1]: Leaving directory 
'/home/croston/python3/PyQt5_gpl-5.9.2.dev1711061040/QtGui'
Makefile:96: recipe for target 'sub-QtGui-make_first-ordered' failed
make: *** [sub-QtGui-make_first-ordered] Error 2


I am building using Debian Jessie, Qt 5.3.2, SIP 4.19.5, Python 3.6.3

I have been building using the commands:

$ export QT_SELECT=qt5
$ python3.6 configure.py
$ make

Ben Croston


More information about the PyQt mailing list