[PyQt] PyQt5 build failure in sipQtWebKitWidgestQWebInspector: qprinter.h not found

Phil Thompson phil at riverbankcomputing.com
Fri Sep 19 11:49:11 BST 2014


On 19/09/2014 9:55 am, Tim Smith wrote:
> Homebrew OS X builds of pyqt5 are failing with the error shown here:
> https://gist.github.com/anonymous/6b71c76a3af36b4157f4#file-02-make-L864-L868
> 
> The proximal cause of the failure is here:
> 
> /Applications/Xcode-Beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
> -c -pipe -O2 -isysroot
> /Applications/Xcode-Beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk
> -mmacosx-version-min=10.10 -Wall -W -fPIC -DSIP_PROTECTED_IS_PUBLIC
> -Dprotected=public -DQT_NO_DEBUG -DQT_PLUGIN -DQT_WEBKITWIDGETS_LIB
> -DQT_WEBKIT_LIB -DQT_WIDGETS_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB
> -DQT_CORE_LIB -I/usr/local/Cellar/qt5/5.3.2/mkspecs/macx-clang -I. -I.
> -I/usr/local/Cellar/sip/4.16.1/include
> -I/usr/local/Cellar/python3/3.4.1_1/Frameworks/Python.framework/Versions/3.4/include/python3.4m
> -I/usr/local/Cellar/qt5/5.3.2/lib/QtWebKitWidgets.framework/Versions/5/Headers
> -I/usr/local/Cellar/qt5/5.3.2/lib/QtWebKit.framework/Versions/5/Headers
> -I/usr/local/Cellar/qt5/5.3.2/lib/QtWidgets.framework/Versions/5/Headers
> -I/usr/local/Cellar/qt5/5.3.2/lib/QtNetwork.framework/Versions/5/Headers
> -I/usr/local/Cellar/qt5/5.3.2/lib/QtGui.framework/Versions/5/Headers
> -I/usr/local/Cellar/qt5/5.3.2/lib/QtCore.framework/Versions/5/Headers
> -I.
> -I/Applications/Xcode-Beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers
> -I/Applications/Xcode-Beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/AGL.framework/Headers
> -F/usr/local/Cellar/qt5/5.3.2/lib -o sipQtWebKitWidgetsQWebInspector.o
> sipQtWebKitWidgetsQWebInspector.cpp
> sip/QtPrintSupport/qprinter.sip:28:10: fatal error: 'qprinter.h' file 
> not found
> #include <qprinter.h>
>          ^
> 1 error generated.
> 
> qprinter.h is in the QtPrintSupport framework, and its includes are
> not added to the compiler’s include search path for QtWebKitWidgets.
> 
> An issue discovering qprinter.h was reported here in March:
> http://www.riverbankcomputing.com/pipermail/pyqt/2014-March/033970.html
> and a superficially similar problem to that issue is observed here, on
> Windows: https://github.com/pyqt/pyqt5/issues/1
> 
> I’m not sure that either failure has the same root cause as this issue.
> 
> Modifying configure.py such that MODULE_METADATA[‘QtWebKitWidgets’] =
> ModuleMetadata(qmake_QT=[‘webkitwidgets’], [‘printsupport’]) instead
> of ModuleMetadata(qmake_QT=[‘webkitwidgets’]) resolves the build
> failure.
> 
> Should this be necessary? I am surprised that other distributions have
> not encountered this issue because I don’t see that Homebrew is doing
> anything strange while building qt5 or PyQt5.
> 
> Advice would be appreciated, either here or at
> https://github.com/Homebrew/homebrew/pull/32419.

Strictly speaking Qt v5.3.2 isn't supported yet. It's behaviour may have 
changed.

Phil


More information about the PyQt mailing list