Warning: "ecmascriptdatamodel" plugin not found after deployment.
-
Hello there,
currently I am playing around with
QScxmlStateMachine
in a Qt 6.2.3 Widgets application in Windows 10.
Everything works fine, when I run the program inside Qt Creator 6.0.2, but when I build my.exe
withqmake
, move it to a different location and runwindeployqt
, the application crashes with the following warnings:Warning: "ecmascriptdatamodel" plugin not found. Warning: No data-model instantiated
So it does not find the ECMAScript data model, which recently moved to a plugin according to: Ecmascript data model moved to a plugin
I checked the messages with
QT_DEBUG_PLUGINS=1
:Debug: Got keys from plugin meta data QList("ecmascriptdatamodel") Debug: Cannot load library D:\Example_InvokedBlinker\scxmldatamodel\qscxmlecmascriptdatamodel.dll: Das angegebene Modul wurde nicht gefunden. Warning: QLibraryPrivate::loadPlugin failed on "D:/Example_InvokedBlinker/scxmldatamodel/qscxmlecmascriptdatamodel.dll" : "Cannot load library D:\\Example_InvokedBlinker\\scxmldatamodel\\qscxmlecmascriptdatamodel.dll: Das angegebene Modul wurde nicht gefunden." Warning: "ecmascriptdatamodel" plugin not found. Warning: No data-model instantiated
So I copied
C:\Qt\6.2.3\mingw_64\plugins\scxmldatamodel\qscxmlecmascriptdatamodel.dll
toD:\Example_InvokedBlinker\scxmldatamodel\
, but the Warning stays the same.When I change nothing else and run the
.exe
from aC:\Qt\6.2.3\mingw_64\bin\qtenv2.bat
command prompt however, the.dll
get's loaded as it is supposed to be.Can anybody tell me how to deploy a qmake widgets application using QScxmlStateMachine?
Doesqscxmlecmascriptdatamodel.dll
have other dependencies it does not tell me about?Thank you!
Mr.Floppy
-
I got it by checking
qscxmlecmascriptdatamodel.dll
with Dependency Walker.It depends on
Qt6QML.dll
which again depends onQt6Network.dll
.So basically all of these have to be present in the application root folder to run a
QScxmlStateMachine
:\scxmldatamodel\qscxmlecmascriptdatamodel.dll LIBGCC_S_SEH-1.DLL LIBWINPTHREAD-1.DLL LIBSTDC++-6.DLL QT6CORE.DLL QT6QML.DLL QT6NETWORK.DLL QT6SCXML.DLL
Maybe this is useful for someone else?
-
Hi and thanks for the information,
Since windeployqt should handle that for you, there might be a bug it the list of dependencies to deploy for that module in it.
You should check the bug report system to see if there's already something about that.
-