Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Warning: "ecmascriptdatamodel" plugin not found after deployment.
Forum Updated to NodeBB v4.3 + New Features

Warning: "ecmascriptdatamodel" plugin not found after deployment.

Scheduled Pinned Locked Moved Solved Installation and Deployment
3 Posts 2 Posters 453 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mr.Floppy
    wrote on last edited by Mr.Floppy
    #1

    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 with qmake, move it to a different location and run windeployqt, 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 to D:\Example_InvokedBlinker\scxmldatamodel\, but the Warning stays the same.

    When I change nothing else and run the .exe from a C:\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?
    Does qscxmlecmascriptdatamodel.dll have other dependencies it does not tell me about?

    Thank you!

    Mr.Floppy

    1 Reply Last reply
    0
    • M Offline
      M Offline
      Mr.Floppy
      wrote on last edited by
      #2

      I got it by checking qscxmlecmascriptdatamodel.dll with Dependency Walker.

      It depends on Qt6QML.dll which again depends on Qt6Network.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?

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        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.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • S sidthatsme referenced this topic on

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved