Unable to load QML dll plugin "The specified module can not be found".
-
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 installThank you for your help.
-
Any updates on this?