Unsolved Qt 5.9 / 5.9.1 QtWebEngine not installed after qtwindeploy
-
We have an app that was previous implemented in
Qt 5.6.2
, and we're upgrading toQt 5.9.x
The build procedure uses cmake, and adds all necessary dependencies (including QtWebEngine) and than we call
qtwindeploy
and output appears correct (IE necessary components are found).Deploying: QtWebEngineProcess... Updating QtWebEngineProcess.exe. C:\Users\Evasyst-1\Documents\evasyst-client\build\cheetah\Release\Evasyst.exe 64 bit, release executable [QML] Adding Qt5Svg for qsvgicon.dll Adding Qt5SerialPort for qtposition_serialnmea.dll Direct dependencies: Qt5Core Qt5Gui Qt5Network Qt5Qml Qt5Widgets Qt5WinExtras Qt5WebEngine All dependencies : Qt5Core Qt5Gui Qt5Network Qt5Positioning Qt5Qml Qt5Quick Qt5Widgets Qt5WinExtras Qt5WebEngineCore Qt5WebEngine Qt5WebChannel To be deployed : Qt5Core Qt5Gui Qt5Network Qt5Positioning Qt5Qml Qt5Quick Qt5SerialPort Qt5Svg Qt5Widgets Qt5WinExtras Qt5WebEngineCore Qt5WebEngine Qt5WebChannel Qt5Core.dll is up to date. Qt5Gui.dll is up to date. Qt5Network.dll is up to date. Qt5Positioning.dll is up to date. Qt5Qml.dll is up to date. Qt5Quick.dll is up to date. Qt5SerialPort.dll is up to date. Qt5Svg.dll is up to date. Qt5Widgets.dll is up to date. Qt5WinExtras.dll is up to date. Qt5WebEngineCore.dll is up to date. Qt5WebEngine.dll is up to date. Qt5WebChannel.dll is up to date. libGLESV2.dll is up to date. libEGL.dll is up to date. d3dcompiler_47.dll is up to date. opengl32sw.dll is up to date. vcredist_x64.exe is up to date. Patching Qt5Core.dll...
However, when we start the application we get a QML exception that QtWebEngine is not installed...
Running changed: true QQmlApplicationEngine failed to load component qrc:/main.qml:219 Type CResetPasswordDialog unavailable qrc:/CResetPasswordDialog.qml:4 module "QtWebEngine" is not installed
This is on
Windows 10
,msvc2015_64
. This has been confirmed on two machines, both of which previously compiled the app and ran fine using the same procedure underQt 5.6.2
-
Hi,
Might be a silly question, did you pass the
--qmldir
option towindeployqt
? -
I did. Haven't changed anything about the working build process except to change the path variable to point to new
Qt 5.9
installation orQt 5.9.1
.Jordan
-
Did you check whether the content of the qml folders is not missing QtWebEngin ?
-
@SGaist ,
Yes, I have now also confirmed on the failing line:
qrc:/CResetPasswordDialog.qml:4 module "QtWebEngine" is not installed
We have:
CResetPasswordDialog.qml
:import QtQuick 2.6 import QtQuick.Layouts 1.3 import QtQuick.Controls 1.4 import QtWebEngine 1.5
(Changing
import QtWebEngine 1.2
toimport QtWebEngine 1.5
as specified in documentation forQtWebEngine
underQt 5.9
(https://doc.qt.io/qt-5/qtwebengine-qmlmodule.html)We also have
QT += webengine
in our.pro
file. -
Just to be sure: the check I meant was for the deployed application not your Qt installation.
-
I believe so, there is
QtWebEngineProcess.exe
&QtWebEngineCore.dll
listed in the deployment directory. Are there supposed to be other items as well?Mode LastWriteTime Length Name ---- ------------- ------ ---- d----- 7/24/2017 5:52 PM audio d----- 7/24/2017 5:52 PM bearer d----- 7/24/2017 5:52 PM iconengines d----- 7/24/2017 5:52 PM imageformats d----- 7/24/2017 5:52 PM mediaservice d----- 7/24/2017 5:52 PM platforminputcontexts d----- 7/24/2017 5:52 PM platforms d----- 7/24/2017 5:52 PM playlistformats d----- 7/24/2017 5:52 PM position d----- 7/24/2017 5:52 PM qmltooling d----- 7/24/2017 5:52 PM Qt d----- 7/24/2017 5:52 PM QtGraphicalEffects d----- 7/24/2017 5:52 PM QtMultimedia d----- 7/24/2017 5:52 PM QtQml d----- 7/24/2017 5:52 PM QtQuick d----- 7/24/2017 5:52 PM QtQuick.2 d----- 7/24/2017 5:52 PM QtWebSockets d----- 7/24/2017 5:53 PM resources d----- 7/24/2017 5:52 PM scenegraph d----- 7/24/2017 5:53 PM translations -a---- 3/30/2017 1:36 AM 4410176 d3dcompiler_47.dll -a---- 7/24/2017 5:50 PM 7631872 evasyst-lib.dll -a---- 7/24/2017 5:53 PM 11337728 Evasyst.exe -a---- 1/26/2017 7:45 AM 2089984 libeay32.dll -a---- 5/26/2017 7:02 AM 15360 libEGL.dll -a---- 5/26/2017 7:02 AM 2519040 libGLESV2.dll -a---- 6/14/2016 6:00 AM 20923392 opengl32sw.dll -a---- 7/24/2017 6:11 PM 5766144 Qt5Core.dll -a---- 5/26/2017 7:10 AM 6045696 Qt5Gui.dll -a---- 5/26/2017 10:48 AM 718848 Qt5Multimedia.dll -a---- 5/26/2017 10:49 AM 109056 Qt5MultimediaQuick_p.dll -a---- 5/26/2017 7:10 AM 1204736 Qt5Network.dll -a---- 5/26/2017 12:14 PM 279552 Qt5Positioning.dll -a---- 5/26/2017 10:14 AM 3234304 Qt5Qml.dll -a---- 5/26/2017 10:20 AM 3406848 Qt5Quick.dll -a---- 5/26/2017 11:32 AM 107008 Qt5QuickControls2.dll -a---- 5/26/2017 11:32 AM 741888 Qt5QuickTemplates2.dll -a---- 5/26/2017 10:00 AM 71680 Qt5SerialPort.dll -a---- 5/26/2017 9:50 AM 328704 Qt5Svg.dll -a---- 5/26/2017 11:08 AM 110080 Qt5WebChannel.dll -a---- 5/26/2017 4:52 PM 325632 Qt5WebEngine.dll -a---- 5/26/2017 4:40 PM 68669952 Qt5WebEngineCore.dll -a---- 5/26/2017 10:44 AM 140288 Qt5WebSockets.dll -a---- 5/26/2017 7:17 AM 5523456 Qt5Widgets.dll -a---- 5/26/2017 11:30 AM 283136 Qt5WinExtras.dll -a---- 5/26/2017 4:51 PM 16896 QtWebEngineProcess.exe -a---- 1/26/2017 7:45 AM 352768 ssleay32.dll -a---- 8/26/2016 12:43 AM 15301888 vcredist_x64.exe
-
I've just encountered the same issue.
I managed to figure out the cause of my case: if the QtWebEngine is imported after QtQuick.Controls.Styles counting on the whole QML file list in qmldir (alphabet ordering, i guessed), windeployqt will failed to deploy QtWebEngine.