Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-118413

When using Visual Studio 16 2019 generator QML dynamic modules' .dll are in ModuleName/Debug folder

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 6.5.3
    • Build System: CMake
    • None
    • Windows

    Description

      Hi,

      I have a simple QML project with two QML modules (Settings which is static) and (Time which is dynamic).

      After converting the project to a CMake one from the included CMakePresets.json, I tried to build and run the application bin/appexternalmodule.exe but I get the error:

      QQmlApplicationEngine failed to load component
      qrc:/externalqmlmodule/main.qml:2:1: module "Time" plugin "TimeLibplugin" not found

      Looking in my build folder I could not find TimeLibplugin.dll (located in bin/qml/Time when generating with Ninja). Instead TimeLibplugin.dll is in bin/qml/Time/Debug which contradicts what is written in the qmldir. Is there a way to set how qmldir is written with function qt_add_qml_module() to take this into accout?

      Thank you.

      Attachments

        1. externalqmlmodule.zip
          34 kB
          Pierre Jaouen
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jbornema Joerg Bornemann
            pijaouen Pierre Jaouen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes