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

windeployqt.exe does not find platform plugins in release mode

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Duplicate
    • Affects Version/s: 5.15.2
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Windows 10, MinGW810_32
    • Platform/s:
      Windows

      Description

      This bug has been present for many versions! I found a temporary fix called windeployqtreleaseonly.exe that works. Apparently in release mode for some reason the application has trouble with path names.

      I am using Windows 10 (up to date...), MinGW810_32. My command line:

      windeployqt.exe --release --no-translations --no-system-d3d-compiler --dir
         ./QtDeploy --plugindir ./QtDeploy/plugins ./QtDeploy/CompositeFVC.exe
      

      Here is the output:

      D:\kcbdev\bips_svn\BIPS10\CompositeFVC\QtDeploy\CompositeFVC.exe 32 bit, release executable
      Direct dependencies: Qt5Core Qt5Gui Qt5Widgets Qt5Xml
      All dependencies : Qt5Core Qt5Gui Qt5Widgets Qt5Xml
      To be deployed : Qt5Core Qt5Gui Qt5Widgets Qt5Xml
      Unable to find the platform plugin.
      Press any key to continue . . .
      

      And, there is nothing in the target folder QtDeploy/plugins

      If I put windeployqtreleaseonly in the folder with windeployqt.exe, things run fine:

      D:\kcbdev\bips_svn\BIPS10\CompositeFVC\QtDeploy\CompositeFVC.exe 32 bit, release executable
      Adding Qt5Svg for qsvgicon.dll
      Skipping plugin qtvirtualkeyboardplugin.dll due to disabled dependencies (Qt5Qml Qt5Quick).
      Skipping plugin qtvirtualkeyboard_hangul.dll due to disabled dependencies (Qt5Qml Qt5Quick).
      Skipping plugin qtvirtualkeyboard_openwnn.dll due to disabled dependencies (Qt5Qml Qt5Quick).
      Skipping plugin qtvirtualkeyboard_pinyin.dll due to disabled dependencies (Qt5Qml Qt5Quick).
      Skipping plugin qtvirtualkeyboard_tcime.dll due to disabled dependencies (Qt5Qml Qt5Quick).
      Skipping plugin qtvirtualkeyboard_thai.dll due to disabled dependencies (Qt5Qml Qt5Quick).
      Direct dependencies: Qt5Core Qt5Gui Qt5Widgets Qt5Xml
      All dependencies : Qt5Core Qt5Gui Qt5Widgets Qt5Xml
      To be deployed : Qt5Core Qt5Gui Qt5Svg Qt5Widgets Qt5Xml
      Updating Qt5Charts.dll.
      Updating Qt5Core.dll.
      Updating Qt5Gui.dll.
      Updating Qt5Svg.dll.
      Updating Qt5Widgets.dll.
      Updating Qt5Xml.dll.
      Updating libGLESV2.dll.
      Updating libEGL.dll.
      opengl32sw.dll is up to date.
      libgcc_s_dw2-1.dll is up to date.
      libstdc++-6.dll is up to date.
      libwinpthread-1.dll is up to date.
      Updating qsvgicon.dll.
      Updating qgif.dll.
      Updating qicns.dll.
      Updating qico.dll.
      Updating qjpeg.dll.
      Updating qsvg.dll.
      Updating qtga.dll.
      Updating qtiff.dll.
      Updating qwbmp.dll.
      Updating qwebp.dll.
      Updating qwindows.dll.
      Updating qwindowsvistastyle.dll.
      Press any key to continue . . .
      

      And qwindows.dll shows up in the plugins/platforms folder.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              kleint Friedemann Kleint
              Reporter:
              kcbeck Kenneth Beck
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes