PyQtWebEngine 6.8.0 build fails

Phil Thompson phil at riverbankcomputing.com
Fri Dec 13 11:59:12 GMT 2024


On 12/12/2024 23:14, Antonio Rojas wrote:
> Building against Qt 6.8.1:
> 
> /build/pyqt6-webengine/src/PyQt6_WebEngine-6.8.0/sip/QtWebEngineCore/qwebengineframe.sip:
> In lambda function:
> /build/pyqt6-webengine/src/PyQt6_WebEngine-6.8.0/sip/QtWebEngineCore/qwebengineframe.sip:52:64:
> error: invalid use of incomplete type ‘class QVariant’
>   52 |             res = sipCallMethod(NULL, a1, "N", new
> QVariant(arg), sipType_QVariant, NULL);
>      |                                                                ^
> In file included from /usr/include/qt6/QtCore/qtypeinfo.h:9,
>                 from /usr/include/qt6/QtCore/qglobal.h:47,
>                 from /usr/include/qt6/QtCore/qmetatype.h:9,
>                 from /usr/include/qt6/QtCore/QMetaType:1,
>                 from sipAPIQtWebEngineCore.h:33,
>                 from sipQtWebEngineCoreQWebEngineFrame.cpp:24:
> /usr/include/qt6/QtCore/qcontainerfwd.h:49:7: note: forward
> declaration of ‘class QVariant’
>   49 | class QVariant;
>      |       ^~~~~~~~

I'd already fixed this but managed to omit it in the release. It's fixed 
in the current snapshot.

The workaround is to use the --concatenate option (which I recommend 
anyway for performance reasons).

Phil


More information about the PyQt mailing list