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

6.3.2 Windows static build error QGifPlugin_init.cpp.obj

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.3.2
    • None
    • windows 10

    Description

      QT static was builded from git:

      with this command line
      configure.bat -platform win32-msvc -static-runtime -static -skip qtpositiong -openssl-linked -skip qt3d -no-warnings-are-errors -release -I "C:/Program Files/OpenSSL/include" -L "C:/Program Files/OpenSSL/lib" -prefix F:/Qt-6.3.2xRelStatic -opensource -confirm-license -nomake examples -nomake tests -c+std c+17 -skip qtwebengine
       
      After install with new empty project I had error:

      [1/6 2.3/sec] Automatic MOC and UIC for target untitled1
      [2/6 3.7/sec] Automatic RCC for qml.qrc
      [3/6 3.5/sec] Building CXX object CMakeFiles\untitled1.dir\untitled1_autogen\mocs_compilation.cpp.obj
      [4/6 4.1/sec] Building CXX object CMakeFiles\untitled1.dir\untitled1_autogen\EWIEGA46WW\qrc_qml.cpp.obj
      [5/6 2.1/sec] Building CXX object CMakeFiles\untitled1.dir\main.cpp.obj
      [6/6 1.3/sec] Linking CXX executable untitled1.exe
      FAILED: untitled1.exe 
      cmd.exe /C "cd . && C:\Qt\Tools\CMake_64\bin\cmake.exe -E vs_link_exe --intdir=CMakeFiles\untitled1.dir --rc=C:\PROGRA~2\WI3CF2~1\10\bin\100190~1.0\x64\rc.exe --mt=C:\PROGRA~2\WI3CF2~1\10\bin\100190~1.0\x64\mt.exe --manifests -- C:\PROGRA~1\MICROS~1\2022\COMMUN~1\VC\Tools\MSVC\1433~1.316\bin\Hostx64\x64\link.exe /nologo @CMakeFiles\untitled1.rsp /out:untitled1.exe /implib:untitled1.lib /pdb:untitled1.pdb /version:0.0 /machine:x64 /INCREMENTAL:NO /subsystem:windows -DYNAMICBASE -NXCOMPAT -LARGEADDRESSAWARE -OPT:REF -OPT:ICF -GUARD:CF && cd ."
      LINK: command "C:\PROGRA~1\MICROS~1\2022\COMMUN~1\VC\Tools\MSVC\1433~1.316\bin\Hostx64\x64\link.exe /nologo @CMakeFiles\untitled1.rsp /out:untitled1.exe /implib:untitled1.lib /pdb:untitled1.pdb /version:0.0 /machine:x64 /INCREMENTAL:NO /subsystem:windows -DYNAMICBASE -NXCOMPAT -LARGEADDRESSAWARE -OPT:REF -OPT:ICF -GUARD:CF /MANIFEST /MANIFESTFILE:untitled1.exe.manifest" failed (exit code 1319) with the following output:
      main.cpp.obj : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in QGifPlugin_init.cpp.obj
       Creating library untitled1.lib and object untitled1.exp
      LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library
      untitled1.exe : fatal error LNK1319: 1 mismatches detected
      ninja: build stopped: subcommand failed.
      08:47:52: The process "C:\Qt\Tools\CMake_64\bin\cmake.exe" exited with code 1.
      Error while building/deploying project untitled1 (kit: Qt 6.3.2 Release Static)
      The kit Qt 6.3.2 Release Static has configuration issues which might be the root cause for this problem.
      When executing step "Build

      Attachments

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

        Activity

          People

            qtbuildsystem Qt Build System Team
            homdx Homdx Homdx
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes