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

When Qt is compiled with \MT, windeployQT fails

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Out of scope
    • Affects Version/s: 5.11.1
    • Fix Version/s: None
    • Labels:
      None
    • Platform/s:
      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

            Assignee:
            kleint Friedemann Kleint
            Reporter:
            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