[PyQt] building pyqt5.3.2 No such file...qprinter.h which in Qt 5.3 moved from QtGui to QtPrintSupport

Phil Thompson phil at riverbankcomputing.com
Fri Oct 3 15:38:15 BST 2014


On 03/10/2014 3:25 pm, lloyd konneker wrote:
> Building PyQt-gpl-5.3.2 on Ubuntu 14.04 against Qt 5.3.2  I get an 
> error:
> 
> g++ -c -pipe -fno-exceptions -O2 -Wall -W -D_REENTRANT -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../../../Qt/5.3/gcc/mkspecs/linux-g++ -I. -I.
> -I/usr/include/python3.4m -I../../../Qt/5.3/gcc/include
> -I../../../Qt/5.3/gcc/include/QtWebKitWidgets
> -I../../../Qt/5.3/gcc/include/QtWebKit
> -I../../../Qt/5.3/gcc/include/QtWidgets
> -I../../../Qt/5.3/gcc/include/QtNetwork
> -I../../../Qt/5.3/gcc/include/QtGui
> -I../../../Qt/5.3/gcc/include/QtCore -I. -o
> sipQtWebKitWidgetsQWebPageViewportAttributes.o
> sipQtWebKitWidgetsQWebPageViewportAttributes.cpp
> sip/QtPrintSupport/qprinter.sip:28:22: fatal error: qprinter.h: No
> such file or directory
> compilation terminated.
> 
> This was discussed in this prior post on this list
> http://www.riverbankcomputing.com/pipermail/pyqt/2014-March/033977.html
> Summarizing, qprinter.h is in the QtPrintSupport module in Qt 5.3 but
> that include directory is not in the compiler command.
> That post gives a patch to the Makefile.
> 
> Did that fall through the cracks? or maybe its my bad installation and
> configuration of multiple versions of Qt.
>  >python3 configure.py --qmake ~/Qt/5.3/gcc/bin/qmake
> but maybe I should configure using qtchooser?

The patch has been applied but there hasn't been a release since then.

Phil


More information about the PyQt mailing list