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

qt_generate_deploy_qml_app_script() deploys both Debug and Release versions of QML plugins

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 6.5.3, 6.6.0 RC
    • Build System: CMake
    • None
    • Windows 10 22H2
    • Windows

    Description

      Steps to reproduce

      1. Use Qt Creator to generate a "Hello World" Qt Quick app and add basic deployment commands to CMakeLists.txt (see below, as well as the attached project)
      2. Build the "install" target in Release mode
      set(CMAKE_INSTALL_PREFIX "${CMAKE_SOURCE_DIR}/../dist/${PROJECT_NAME}")
      qt_generate_deploy_qml_app_script(
          TARGET appMyApp
          OUTPUT_SCRIPT deployment_script
      )
      install(SCRIPT ${deployment_script})
      

       

      Outcomes

      -- Install configuration: "Release"
      -- Installing: D:/Development/MyApp/../dist/MyApp/bin/appMyApp.exe
      -- Installing: D:/Development/MyApp/../dist/MyApp/qml/QtQuick/qmldir
      -- Installing: D:/Development/MyApp/../dist/MyApp/qml/QtQuick/qtquick2plugin.dll
      -- Installing: D:/Development/MyApp/../dist/MyApp/qml/QtQuick/qtquick2plugind.dll
      -- Installing: D:/Development/MyApp/../dist/MyApp/qml/QtQml/qmldir
      -- Installing: D:/Development/MyApp/../dist/MyApp/qml/QtQml/qmlmetaplugin.dll
      -- Installing: D:/Development/MyApp/../dist/MyApp/qml/QtQml/qmlmetaplugind.dll
      -- Installing: D:/Development/MyApp/../dist/MyApp/qml/QtQml/Base/qmldir
      -- Installing: D:/Development/MyApp/../dist/MyApp/qml/QtQml/Base/qmlplugin.dll
      -- Installing: D:/Development/MyApp/../dist/MyApp/qml/QtQml/Base/qmlplugind.dll
      -- Installing: D:/Development/MyApp/../dist/MyApp/qml/QtQml/Models/qmldir
      -- Installing: D:/Development/MyApp/../dist/MyApp/qml/QtQml/Models/modelsplugin.dll
      -- Installing: D:/Development/MyApp/../dist/MyApp/qml/QtQml/Models/modelsplugind.dll
      -- Installing: D:/Development/MyApp/../dist/MyApp/qml/QtQml/WorkerScript/qmldir
      -- Installing: D:/Development/MyApp/../dist/MyApp/qml/QtQml/WorkerScript/workerscriptplugin.dll
      -- Installing: D:/Development/MyApp/../dist/MyApp/qml/QtQml/WorkerScript/workerscriptplugind.dll
      -- Installing: D:/Development/MyApp/../dist/MyApp/qml/QtQuick/Window/qmldir
      -- Installing: D:/Development/MyApp/../dist/MyApp/qml/QtQuick/Window/quickwindowplugin.dll
      -- Installing: D:/Development/MyApp/../dist/MyApp/qml/QtQuick/Window/quickwindowplugind.dll
      -- Writing D:/Development/MyApp/../dist/MyApp/bin/qt.conf
      -- Running Qt deploy tool for D:/Development/build-MyApp-Desktop_Qt_6_5_3_MSVC2019_64bit-Release/appMyApp.exe in working directory 'D:/Development/MyApp/../dist/MyApp'
      'C:/Qt/6.5.3/msvc2019_64/bin/windeployqt.exe' 'D:/Development/build-MyApp-Desktop_Qt_6_5_3_MSVC2019_64bit-Release/appMyApp.exe' '--dir' '.' '--libdir' 'bin' '--plugindir' 'plugins' '--force' 'qml/QtQuick/qtquick2plugin.dll' 'qml/QtQuick/qtquick2plugind.dll' 'qml/QtQml/qmlmetaplugin.dll' 'qml/QtQml/qmlmetaplugind.dll' 'qml/QtQml/Base/qmlplugin.dll' 'qml/QtQml/Base/qmlplugind.dll' 'qml/QtQml/Models/modelsplugin.dll' 'qml/QtQml/Models/modelsplugind.dll' 'qml/QtQml/WorkerScript/workerscriptplugin.dll' 'qml/QtQml/WorkerScript/workerscriptplugind.dll' 'qml/QtQuick/Window/quickwindowplugin.dll' 'qml/QtQuick/Window/quickwindowplugind.dll'
      Warning: using binaries from different directories
      
      • Only Release versions of most DLLs are deployed (Expected)
      • Both Debug and Release versions of QML plugins are deployed (Not expected)
      • There is a cryptic warning at the endm "Warning: using binaries from different directories" (Not expected)

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              qtbuildsystem Qt Build System Team
              skoh-qt Sze Howe Koh
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes