Custome Qt build: including the QtWebEngine module
-
I am struggling to figure out how I get the QtWebEngine module to build. In the tarball for my Qt version there is a .gitmodules file where it lists the various modules available. This documentation makes it seem as though, in order to include a module, I don't have to do anything during the extraction e.g. if I want the webengine module all I need to do is... not exclude it.
So, I am not excluding it from the build. However, when I am extracting the tarball this is the output when it attempts to build the webengine:
cd qtwebengine/ && ( test -e Makefile || /home/rob/sandbox/trunk/LinuxDesktopPlatform/Build/qtbase/bin/qmake -o Makefile /home/rob/sandbox/trunk/LinuxDesktopPlatform/qt-everywhere-src-5.11.3/qtwebengine/qtwebengine.pro ) && make -f Makefile install make[2]: Entering directory '/home/rob/sandbox/trunk/LinuxDesktopPlatform/Build/qtwebengine' make[2]: Nothing to be done for 'install'. make[2]: Leaving directory '/home/rob/sandbox/trunk/LinuxDesktopPlatform/Build/qtwebengine'
this seems to suggjest that it's either already part of the build or there is some special tar instruction that I need to use in order to have it build.. which I can not find any documentation for.
Is there some way, looking at the extracted tarball, to know which modules have been included in the built?
If I attempt to initialize the module in my pro file it tells me it doesn't exist:
QT += webengine Issues: Unknown module(s) in QT: webengine
which it does not do for this module:
QT += webview
it allows me to add that; however, if I then try to use the thing in QML the Application output reports:
No WebView plug-in found!
which is why I started down the path of attempting to get the webengine into the build. I am assuming the reason it can't find the webview plugin (despite allowing me to import it... which is super confusing btw) is because the webengine module isn't in the build.
So maybe I am wrong? Maybe it can't find the webview plugin for some other reason?
Maybe that is correct? Maybe I do need the webengine module in order to use webview in QML?
All I want to do is display an html document in my application!
-
@poncho524 The config line looks like this:
qt-everywhere-src-5.11.3/qtbase/configure -top-level -commercial -confirm-license -debug -c++std c++14 -opengl desktop -system-xcb -skip qtandroidextras -skip qtcanvas3d -skip qtcharts -skip qtgamepad -skip qtmacextras -skip qtpurchasing -skip qtscxml -skip qtsensors -skip qtspeech -skip qtwebglplugin -skip qtwinextras -prefix ../Install
Which means these installed modules (if unpacked) would make it into the "Install" directory. I checked that directory and there is no QtWebEngine folder within it. So the module is not being installed. Perhaps it needs some special commands?
Perhaps I don't have all the dependencies? I have the dependencies seen here I believe.. (not sure about khr and libcap).