Details
-
Bug
-
Resolution: Done
-
P4: Low
-
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
- is duplicated by
-
QTBUG-84567 Windeployqt fails with "Unable to find the platform plugin" when using --release switch
- Closed
- relates to
-
QTBUG-62103 windeployqt cannot find plugins when built with mingw-w64 in release mode with debug information
- Open
- resulted in
-
QTBUG-48976 windeployqt copies debug dlls for release-with-debug-info plugins
- Closed
For Gerrit Dashboard: QTBUG-42072 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
98179,3 | windeployqt: Add --release-with-debug-info option.. | 5.4 | qt/qttools | Status: MERGED | +2 | 0 |