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

REG->5.14: MinGW release builds: windeployqt fails with "Unable to find the platform plugin"

    XMLWordPrintable

Details

    • Windows
    • 34b27e650f2c1033e5e92c57beeccc5aabcd3f63 (qt/qttools/5.14)

    Description

      While QTBUG 80763 fixes windeployqt's problems for MinGW Qt 5.14.0 for debug builds, the bug still exists for release builds.

      The reason is that the flag NT FileHeader flag "Debug information stripped" is no longer present in release build of qwindows.dll. So the logic in determineDebugAndDependentLibs() in utils.cpp incorrectly thinks that all .dlls are debug flavored, line 828 and 829:

      // Use logic that's used e.g. in objdump / pfd library
      *isDebugIn = !(nth->FileHeader.Characteristics & IMAGE_FILE_DEBUG_STRIPPED);

      I currently use the workaround

      *isDebugIn = false;

      since I never use debug builds, but it's a bit crude

       

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-80806
          # Subject Branch Project Status CR V

          Activity

            People

              kleint Friedemann Kleint
              hskoglund Henry Skoglund
              Votes:
              0 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes