Warning: "ecmascriptdatamodel" plugin not found after deployment.
-
Hello there,
currently I am playing around with
QScxmlStateMachinein 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.exewithqmake, move it to a different location and runwindeployqt, the application crashes with the following warnings:Warning: "ecmascriptdatamodel" plugin not found. Warning: No data-model instantiatedSo 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 instantiatedSo I copied
C:\Qt\6.2.3\mingw_64\plugins\scxmldatamodel\qscxmlecmascriptdatamodel.dlltoD:\Example_InvokedBlinker\scxmldatamodel\, but the Warning stays the same.When I change nothing else and run the
.exefrom aC:\Qt\6.2.3\mingw_64\bin\qtenv2.batcommand prompt however, the.dllget's loaded as it is supposed to be.Can anybody tell me how to deploy a qmake widgets application using QScxmlStateMachine?
Doesqscxmlecmascriptdatamodel.dllhave other dependencies it does not tell me about?Thank you!
Mr.Floppy
-
I got it by checking
qscxmlecmascriptdatamodel.dllwith Dependency Walker.It depends on
Qt6QML.dllwhich 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.DLLMaybe 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.
-
S sidthatsme referenced this topic on