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

System libraries are not copied during deployment

    XMLWordPrintable

Details

    • Windows

    Description

      I'm creating a simple application from Qt Creator templates (Widgets). I compile and call windeployqt with the --compiler-runtime parameter. In this case, only the following libraries are copied:
      generic\
      imageformats\
      networkinformation\
      platforms\
      styles\
      tls\
      translations\
      D3Dcompiler_47.dll
      Qt6Core.dll
      Qt6Gui.dll
      Qt6Network.dll
      Qt6Pdf.dll
      Qt6Widgets.dll
      However, I thought that when using the specified parameter, Windows system libraries should also be copied, for example vcruntime* msvcp* api-ms*, etc. Without specifying this command line option, the exact same files are copied.

      If I configure deployment via cmake commands as per the documentation in the links:
      https://doc.qt.io/qt-6/qt-generate-deploy-app-script.html
      https://doc.qt.io/qt-6/qt-deploy-runtime-dependencies.html
      after which I assemble and call the install command, for example like this:
      cmake --install . --config Release --prefix c:/untitled2

      then the system libraries are also not copied, the list turns out like this:
       generic\
      iconengines\
      imageformats\
      networkinformation\
      platforms\
      styles\
      tls\
      translations\
      D3Dcompiler_47.dll
      opengl32sw.dll
      Qt6Core.dll
      Qt6Gui.dll
      Qt6Network.dll
      Qt6Pdf.dll
      Qt6Svg.dll
      Qt6Widgets.dll

      I am attaching an archive with the source code of the minimal project for verification.

      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:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes