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

QDebugMessageServiceFactoryPlugin_init.cpp.obj is incorrectly dynamically linked instead of statically linked to runtime library

    XMLWordPrintable

Details

    • Windows
    • 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:

      1. 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
      2. ..\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
      3. cmake --build . --parallel
      4. cmake --install .
      5. cmake --install . --config Debug

       

      Attachments

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

        Activity

          People

            alexandru.croitor Alexandru Croitor
            sjpritchard Stephen Pritchard
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes