[PyQt] Can't build PyQtWebEngine without QtWebChannel

Phil Thompson phil at riverbankcomputing.com
Sat Jul 20 17:30:11 BST 2019


On 20/07/2019 12:00, Florian Bruhin wrote:
> Hi,
> 
> It looks like QtWebEngine can be built without QtWebChannel because it 
> simply
> has a "class QWebChannel;" forward-declaration.
> 
> However, building PyQtWebEngine fails:
> 
>     make[1]: Entering directory
> '/home/florian/code/qt/pyqt_src/5.13/PyQtWebEngine_gpl-5.13.1.dev1907131806/QtWebEngineWidgets'
>     g++ -c -pipe -fno-exceptions -O2 -Wall -W -D_REENTRANT -fPIC
> -DSIP_PROTECTED_IS_PUBLIC -Dprotected=public -DQT_NO_DEBUG -DQT_PLUGIN
> -DQT_WEBENGINEWIDGETS_LIB -DQT_WEBENGINECORE_LIB -DQT_QUICK_LIB
> -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_QML_LIB
> -DQT_NETWORK_LIB -DQT_CORE_LIB -I.
> -I../../../../venvs/5.13/include/python3.7m -isystem
> /usr/include/python3.7m -I../../../../5.13/qtbase/include
> -I../../../../5.13/qtbase/include/QtWebEngineWidgets
> -I../../../../5.13/qtbase/include/QtWebEngineCore
> -I../../../../5.13/qtbase/include/QtQuick
> -I../../../../5.13/qtbase/include/QtPrintSupport
> -I../../../../5.13/qtbase/include/QtWidgets
> -I../../../../5.13/qtbase/include/QtGui
> -I../../../../5.13/qtbase/include/QtQml
> -I../../../../5.13/qtbase/include/QtNetwork
> -I../../../../5.13/qtbase/include/QtCore -I. -isystem
> /usr/include/libdrm -I../../../../5.13/qtbase/mkspecs/linux-g++ -o
> sipQtWebEngineWidgetsQWebEnginePage.o
> sipQtWebEngineWidgetsQWebEnginePage.cpp
> 
> /home/florian/code/qt/venvs/5.13/share/sip/PyQt5/QtWebChannel/qwebchannel.sip:28:10:
> fatal error: qwebchannel.h: No such file or directory
>        28 | #include <qwebchannel.h>
>           |          ^~~~~~~~~~~~~~~
>     compilation terminated.

Can you try tonight's PyQt5 and PyQtWebEngine snapshots?

Thanks,
Phil


More information about the PyQt mailing list