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

Windows: windeployqt reports "Unable to find the platform plugin." for `-release -force-debug-info` builds

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P4: Low
    • 5.4.0
    • 5.3.2, 5.4.0 Alpha, 5.4.0 Beta
    • None
    • Windows 8.1 x64 Pro, VS2013 Pro
    • 27ac4a48f94400b16c13e99e9a8aa1a64260502e (qttools/5.4, 30.10.2014, 5.4)

    Description

      windeployqt fails to deploy an application built against a version of Qt configured with `-release -force-debug-info`. It reports "Unable to find the platform plugin."

      Digging into the windeployqt code, I believe this is because the readPeExecutable function believes the binary is a debug binary and not a release binary. windeployqt correctly prints "application.exe 32 bit, release executable" so it is trying to do a deployment in release mode. However, when it goes to find the qwindows.dll platform plugin, and passes it into the findSharedLibraries function (https://qt.gitorious.org/qt/qttools/source/dac2cd7b261bd7e9b4af094ca53919fbc6da51c1:src/windeployqt/utils.cpp#L111), readPeExecutable is reporting that the binary is a debug binary, which doesn't match with the isDebugIn flag and therefore the function returns an empty result.

      Attachments

        Issue Links

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

          Activity

            People

              kleint Friedemann Kleint
              jarrednicholls Jarred Nicholls
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes