pyqtwebengine build failure

Phil Thompson phil at riverbankcomputing.com
Sun Oct 3 15:57:45 BST 2021


On 03/10/2021 15:09, Antonio Rojas wrote:
> Hi,
>  pyqtwebengine 6.2.0 fails to build here with this error:
> 
> /build/pyqt6-webengine/src/PyQt6_WebEngine-6.2.0/sip/QtWebEngineCore/qwebengineprofile.sip:
> In lambda function:
> /build/pyqt6-webengine/src/PyQt6_WebEngine-6.2.0/sip/QtWebEngineCore/qwebengineprofile.sip:187:64:
> error: invalid use of incomplete type ‘class QIcon’
>  187 |             res = sipCallMethod(NULL, a2, "NNN", new
> QIcon(arg0), sipType_QIcon, new QUrl(arg1), sipType_QUrl, new
> QUrl(arg2), sipType_QUrl, NULL)
> ;
>      |                                                                ^
> In file included from /usr/include/qt6/QtCore/QMetaType:1,
>                 from sipAPIQtWebEngineCore.h:33,
>                 from sipQtWebEngineCoreQWebEngineProfile.cpp:24:
> /usr/include/qt6/QtCore/qmetatype.h:182:22: note: forward declaration
> of ‘class QIcon’
>  182 |     F(QIcon, 0x1005, QIcon) \
>      |                      ^~~~~

The workaround is to use '--concatenate 1'.

Phil


More information about the PyQt mailing list