[SOLVED] QML module plugin load fail after upgrade to Qt 5.4.0
-
Good day,
I have an existing QML module plugin that works 100% with my Qt 5.3.2 installation. However, I recently installed Qt 5.4.0 and suddenly the qmlplugindump fails with:
@QML module does not contain information about components contained in plugins.
Module path: C:/PluginTest/QtQmlComponents/QmlComponents
See "Using QML Modules with Plugins" in the documentation.Automatic type dump of QML module failed.
Errors:
"C:\Qt\Qt5.4.0\5.4\msvc2013\bin\qmlplugindump.exe" returned exit code 3.
Arguments: -nonrelocatable QmlComponents 1.0 C:/PluginTest/QtQmlComponents
QQmlComponent: Component is not ready
file:///C:/PluginTest/QtQmlComponents/typelist.qml:2:1: module "QmlComponents" plugin "QtQmlComponents" not found@What irks me is that I cannot figure out why it no longer works. I have recreated my actual project directory structure to the best of my ability, which is available "here" EDIT: Removed Link
If you copy the "PluginTest" directory to your C:\ drive, it should be a simple "plug and play" to test.
I'm using QtCreator 3.3.0 (bundled with Qt 5.4.0) on Windows 7, 64-bit.
Any advice will be appreciated.
William.
-
I have the following in my .pro file (for the plugin):
@TEMPLATE = lib
TARGET = QtQmlComponents
QT += qml quick
CONFIG += qt pluginTARGET = $$qtLibraryTarget($$TARGET)@
For Qt 5.3.2, the output dll's are named: "QtQmlComponents" as per the component target.
For Qt 5.4.0, the output dll's are named "Qt5QmlComponents", which breaks everything.
EDIT: It only affects me because I'm using "Qt" as part of my plugin name.