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. [SOLVED] QML module plugin load fail after upgrade to Qt 5.4.0
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] QML module plugin load fail after upgrade to Qt 5.4.0

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 1 Posters 3.7k Views 2 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.
  • G Offline
    G Offline
    goblincoding
    wrote on last edited by
    #1

    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.

    http://www.goblincoding.com

    1 Reply Last reply
    0
    • G Offline
      G Offline
      goblincoding
      wrote on last edited by
      #2

      I have the following in my .pro file (for the plugin):

      @TEMPLATE = lib
      TARGET = QtQmlComponents
      QT += qml quick
      CONFIG += qt plugin

      TARGET = $$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.

      http://www.goblincoding.com

      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