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

Using windeployqt and CMake commands for deployment give different results

    XMLWordPrintable

Details

    • Windows

    Description

      Good afternoon everyone.

      We are trying to use to copy the qt dependencies of the application not by manually calling windeployqt, but through the use of the corresponding cmake functions (i.e. , which are added by the qt library), namely:

      qt_add_executable(...
      qt_add_qml_module(...
      qt_deploy_runtime_dependencies(...
      qt_deploy_qml_imports(... 

      and then called

      cmake --install . --config Release --prefix ... 

      So, in comparison with what happens in the end after calling windeployqt, the result after the specified cmake commands in the qml directory lacks files:

      *.qml
      *.qmltypes

      For example, here are the contents of the directory qml/QtMultimedia/ after calling windeployqt:

      qmldir
      quickmultimediaplugin.dll
      Video.qml
      plugins.qmltypes 

      and here are its contents after the specified cmake commands and the cmake –install call:

      qmldir
      quickmultimediaplugin.dll 

      In this case, the application seems to launch and work, but there is a lot of functionality, perhaps we do not see something that may not work. Question: Are these files needed in the deployed application or not?

      I am also attaching a simple example to test the behavior.

      Attachments

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

        Activity

          People

            qtbuildsystem Qt Build System Team
            rumgot rumgot
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes