Can't build PyQtWebEngine without QtWebChannel

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Can't build PyQtWebEngine without QtWebChannel

Florian Bruhin
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.

Florian

--
https://www.qutebrowser.org | [hidden email] (Mail/XMPP)
   GPG: 916E B0C8 FD55 A072 | https://the-compiler.org/pubkey.asc
         I love long mails! | https://email.is-not-s.ms/

_______________________________________________
PyQt mailing list    [hidden email]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt

signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Can't build PyQtWebEngine without QtWebChannel

Phil Thompson-5
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
_______________________________________________
PyQt mailing list    [hidden email]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
Reply | Threaded
Open this post in threaded view
|

Re: Can't build PyQtWebEngine without QtWebChannel

Florian Bruhin
On Sat, Jul 20, 2019 at 05:30:11PM +0100, Phil Thompson wrote:

> 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?
Works fine now, thanks Phil!

Florian

--
https://www.qutebrowser.org | [hidden email] (Mail/XMPP)
   GPG: 916E B0C8 FD55 A072 | https://the-compiler.org/pubkey.asc
         I love long mails! | https://email.is-not-s.ms/

_______________________________________________
PyQt mailing list    [hidden email]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt

signature.asc (849 bytes) Download Attachment