Details
-
Bug
-
Resolution: Out of scope
-
P2: Important
-
None
-
5.11.1
-
None
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