Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Unable to load QML dll plugin "The specified module can not be found".
Qt 6.11 is out! See what's new in the release blog

Unable to load QML dll plugin "The specified module can not be found".

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 705 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.
  • D Offline
    D Offline
    DeutschBahn
    wrote on last edited by
    #1

    Hello,

    I am trying to load the QML api provided here: https://github.com/KDE/syntax-highlighting for use in a QML project in QT Creator. I have built the plugin dlls and placed them in the import folder for QT Creator. QT Creator loads the plugin with the message "Plugin dumped successfully" but when running the application it fails with the message:

    "Cannot load library C:\Qt\6.4.0\mingw_64\qml\org\kde\syntaxhighlighting\kquicksyntaxhighlightingplugin.dll: The specified module could not be found."

    I tried generating the qmltypes file and it also gives me the same message.

    The debug output provides the following information:

    Found metadata in lib C:/Qt/6.4.0/mingw_64/qml/org/kde/syntaxhighlighting/kquicksyntaxhighlightingplugin.dll, metadata=
    {
        "IID": "org.qt-project.Qt.QQmlExtensionInterface",
        "archlevel": 1,
        "className": "KQuickSyntaxHighlightingPlugin",
        "debug": true,
        "uri": [
            "org.kde.syntaxhighlighting"
        ],
        "version": 394240
    }
    

    It seems that the metadata for the plugin is recognized but for some reason it still fails to load.

    The plugin was built with the cmake and mingw provided with the QT6 installation with the following commands:

    cmake -DQT_MAJOR_VERSION=6 . 
    mingw32-make install
    

    Thank you for your help.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      alvarosaes
      wrote on last edited by
      #2

      Any updates on this?

      1 Reply Last reply
      0

      • Login

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