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

When Qt is compiled with \MT, windeployQT fails

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P2: Important
    • None
    • 5.11.1
    • None
    • Windows

    Description

      In  qttools/src/windeployqt/utils.cpp:796:

      *isDebugIn = hasDebugEntry && checkMsvcDebugRuntime(dependentLibraries) != MsvcReleaseRuntime;

       

      It is checked wether the program is a debug or release build. Since also in release builds, the first check may be true, the second check looks if the program depends on the release or debug version of the microsoft runtimes.

       

      When building Qt and the application using -MT (statically link the redistributable), the second check can not find the release version of the redistributable as a dependencie and it will detect a debug build although it is really a release build. WinDeployQt will then fail to find the libraries.

       

      Options:

      • Find a way to detect a release build using MT
      • Add an option to windeployqt to override the result of this check

      Attachments

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

        Activity

          People

            kleint Friedemann Kleint
            ChristianFeldmann Christian Feldmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes