Details
-
Type:
Bug
-
Status: Closed
-
Priority:
P2: Important
-
Resolution: Done
-
Affects Version/s: 6.2.0 Beta1
-
Fix Version/s: 6.2.0 Beta2, 6.3.0 Alpha
-
Component/s: Build System, QML: Tooling
-
Labels:None
-
Platform/s:
-
Commits:51ae235080df7f051e65883a90731685649f2957 (qt/qtbase/dev) ac7a862e9b8317cda0fac329be0ff306c3c99c9b (qt/qtbase/6.2)
Description
After statically building Qt 6.2 Beta 1 with static runtime, when compiling my own static app one file (QDebugMessageServiceFactoryPlugin_init.cpp.obj) appears to use the dynamic runtime , resulting in thousands of RuntimeLibrary mistmatch errors.
An example error message is:
qmlcache_loader.cpp.obj:-1: error: LNK2038: mismatch detected for 'RuntimeLibrary': value 'MTd_StaticDebug' doesn't match value 'MDd_DynamicDebug' in QDebugMessageServiceFactoryPlugin_init.cpp.obj
Running on Windows 10. Visual Studio 2019 v16.10.3
Repro steps:
- Download source files from: https://download.qt.io/development_releases/qt/6.2/6.2.0-beta1/single/qt-everywhere-src-6.2.0-beta1.zip
- ..\qt6\configure.bat -nomake examples -nomake tests -opensource -confirm-license -debug-and-release -static -static-runtime -schannel -prefix C:\Qt\6.2.0-beta1\msvc2019_64_static -skip qtquick3d
- cmake --build . --parallel
- cmake --install .
- cmake --install . --config Debug