Details
-
Bug
-
Resolution: Done
-
P2: Important
-
6.2.0 Beta1
-
None
-
-
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
Attachments
For Gerrit Dashboard: QTBUG-95043 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
358856,3 | CMake: Use correct MSVC runtime library for Qt object libraries | dev | qt/qtbase | Status: MERGED | +2 | 0 |
359050,2 | CMake: Use correct MSVC runtime library for Qt object libraries | 6.2 | qt/qtbase | Status: MERGED | +2 | 0 |