[PyQt] build fails for PyQt5 v5.6 in strange way

Phil Thompson phil at riverbankcomputing.com
Sun Jul 3 22:27:50 BST 2016


On 2 Jul 2016, at 3:58 pm, Hans-Peter Jansen <hpj at urpla.net> wrote:
> 
> Hello Phil,
> 
> an attempt to update the openSUSE PyQt5 build to version 5.6 fails in some 
> strange way:
> 
> $ python3 configure.py --verbose --confirm-license --qsci-api -u --qmake /usr/lib64/qt5/bin/qmake -c -j 10 --dbus /usr/include/dbus-1.0 LIBDIR_QT=/usr/lib64 STRIP="" MOC=/usr/bin/moc LIBS_OPENGL="" LIBS_X11="" LIBS_THREAD="" QMAKE_CFLAGS+="${CFLAGS} ${CPPFLAGS}" QMAKE_CXXFLAGS+="${CXXFLAGS} ${CPPFLAGS}" QMAKE_LFLAGS+="${LDFLAGS}"
> [...]
> Qt v5.6.1 (Open Source) is being used.
> The qmake executable is /usr/lib64/qt5/bin/qmake.
> Qt is built as a shared library.
> SIP 4.18 is being used.
> The sip executable is /usr/bin/sip.
> These PyQt5 modules will be built: QtCore, QtGui, QtMultimedia,
> QtMultimediaWidgets, QtNetwork, QtOpenGL, QtPrintSupport, QtQml, QtQuick,
> QtSql, QtSvg, QtTest, QtWebKit, QtWebKitWidgets, QtWidgets, QtXml, QtDBus,
> _QOpenGLFunctions_2_0, _QOpenGLFunctions_2_1, _QOpenGLFunctions_4_1_Core,
> QtSensors, QtX11Extras, QtBluetooth, QtPositioning, QtQuickWidgets,
> QtWebSockets, QtWebChannel, QtWebEngineWidgets, QtLocation, QtNfc,
> QtWebEngineCore.
> The PyQt5 Python package will be installed in
> /usr/lib64/python3.4/site-packages.
> PyQt5 is being built with generated docstrings.
> PyQt5 is being built with 'protected' redefined as 'public'.
> The Designer plugin will be installed in /usr/lib64/qt5/plugins/designer.
> The qmlscene plugin will be installed in /usr/lib64/qt5/plugins/PyQt5.
> The QScintilla API file will be installed in /usr/share/qt5/qsci/api/python.
> The dbus support module will be installed in
> /usr/lib/python3.4/site-packages/dbus/mainloop.
> The PyQt5 .sip files will be installed in /usr/share/sip/PyQt5.
> pyuic5, pyrcc5 and pylupdate5 will be installed in /usr/bin.
> The interpreter used by pyuic5 is /usr/bin/python3.
> Generating the C++ source for the QtCore module...
> /usr/bin/sip -w -f -t WS_X11 -t Qt_5_6_1 -B Qt_6_0_0 -o -P -j 10 -a QtCore.api -c /home/hp/src/obs/home:frispete:PyQt5/python3-qt5/PyQt5_gpl-5.6/QtCore -I sip -I /home/hp/src/obs/home:frispete:PyQt5/python3-qt5/PyQt5_gpl-5.6/sip /home/hp/src/obs/home:frispete:PyQt5/python3-qt5/PyQt5_gpl-5.6/sip/QtCore/QtCoremod.sip
> sip: Deprecation warning: the -T flag is ignored and deprecated
> Error: Unable to create the C++ code.
> 
> Any idea, what's going wrong here?
> 
> An strace revealed, that sip tries to access QtCore/sipAPIQtCore.h, but 
> QtCore is an empty directory.

The -f flag to sip means the warning about the -T flag is treated as an error. However, from the above, I can't see how the -T flag is being set.

Phil


More information about the PyQt mailing list