Problem creating plugins.qmltypes for QML



  • I'm using Qt 5.3.0 and Qt Creator on Windows 8 64bit to generate a MyModulePlugin.dll library for windows with mingw482_32. The DLL file was built from QML types but NO C++ files. I copied the DLL to C:/Test/MyModule and created a qmldir file containing
    @
    module MyModule
    plugin MyModulePlugin
    classname MyModulePlugin
    @

    When I run
    @
    C:\Qt\Qt5.3.0\5.3\mingw482_32\bin\qmlplugindump -nonrelocatable MyModule1.0 . > MyModule/plugins.qmltypes
    @

    in C:\Test I get the error
    @
    QQmlComponent: Component is not ready
    file:///C:/Test/typelist.qml:2:1: plugin cannot be loaded for module "MyModule": Plugin verification data mismatch in 'C:/Test/MyModule/MyModulePlugin.dll'
    @

    I tried it without -nonrelocatable but had the same error. Any suggestions?

    BTW, there are qmlplugindump files for each of the 7 windows kits but why are there none for the 3 android kits?



  • I'm getting more or less same troubles(with C++ declared qml component).
    Command line:
    @
    qmlplugindump -nonrelocatable MyModule 1.0 > imports/MyModule/plugins.qmltypes
    @

    or

    @
    qmlplugindump MyModule 1.0 imports > imports/MyModule/plugins.qmltypes
    @

    Both returns:
    @
    QQmlComponent: Component is not ready.
    "file:///imports/MyModule/typelist.qml:2:1: module "MyModule" plugin"mymoduleplugin" not found "
    @

    Is there any advice you could give me?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.