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

windeployqt can't create deployment for applications that link to custom Qt modules

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • P2: Important
    • None
    • 5.11.0 Beta 3
    • None
    • 1fa658041cc44dd9b3fa7346dcc127bac9945c12 (better discriminate, qttools/5.11, 18.4.2018, 5.11)

    Description

      Running windeployqt for an application that links custom Qt modules, i.e. Qt modules that aren't part of the Qt itself, fails. It tries to look for those modules from under the Qt. Same problem with libraries that aren't Qt modules that follow the same naming pattern.

      For example, build release build of Qt 3D Studio (git clone --recursive https://codereview.qt-project.org/qt3dstudio/qt3dstudio) against a binary release of the Qt 5.11 and install it to a custom directory (make install INSTALL_ROOT=\foo\bar) and then run windeployqt for the installed Qt3DViewer.exe (windeployqt \foo\bar\Qt\5.11.0\msvc2015_64\bin\Qt3DViewer.exe -qmldir=<qt3dstudio repo path>/src/Viewer/Qt3DViewer).

      Qt3DViewer.exe links both internal libs named qt3d*.dll and a custom Qt module Qt5Studio3D.dll, none of which actually need to be deployed, because they are already found in the installation directory, but still cause windeployqt to fail.

      windeployqt   --qmldir=c:\dev/qt3dstudio/src/Viewer/Qt3DViewer   Qt3DViewer.exe
      Unable to find dependent libraries of C:\dev\sdk\Qt/5.10.1\msvc2017_64\bin\qt3dsqmlstreamer.dll :Cannot open 'C:/dev/sdk/Q/5.10.1/msvc2017_64/bin/qt3dsqmlstreamer.dll': The system cannot find the file specified.
      

      or with https://codereview.qt-project.org/226595 :

      \windeployqt    --qmldir=c:\dev/qt3dstudio/src/Viewer/Qt3DViewer   Qt3DViewer.exe
      Unable to find dependent libraries of C:\dev\sdk\Qt\5.10.1\msvc2017_64\bin\Qt5Studio3D.dll :Cannot open 'C:/dev/sdk/Qt/5.10.1/msvc2017_64/bin/Qt5Studio3D.dll': The system cannot find the file specified.
      

      Attachments

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

        Activity

          People

            kleint Friedemann Kleint
            e0348803 Miikka Heikkinen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes