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

Static build fails on MinGW and MSVC2019, shadertools?

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 6.1.0 RC
    • 6.1.0 Beta3
    • Build System
    • Windows10 x64
    • Windows
    • ededf3914297aca62e1d257175305cab5dbf6da2 (qt/qtbase/dev) 6a5d90f7e8f88c5951d661c849cf6bfe04191ea1 (qt/qtbase/6.1.0) 0b283ec58adb38c8107cbf7bb28d6210755b595b (qt/qtbase/6.1)

    Description

      Qt6.1.0 beta3 src package.

      Configure:
      cmake -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DCMAKE_BUILD_TYPE=Release -DQT_BUILD_EXAMPLES=OFF -DOPENSSL_ROOT_DIR=C:\openssl\include\.. -DFEATURE_system_zlib=OFF -DFEATURE_system_tiff=OFF -DFEATURE_system_freetype=OFF -DFEATURE_system_jpeg=OFF -DPostgreSQL_ROOT=C:\Utils\postgresql\pgsql\lib\.. -DQT_BUILD_TESTS=OFF -DBUILD_SHARED_LIBS=OFF C:\Users\qt\RTA\src-6.1.0 -DCMAKE_INSTALL_PREFIX:PATH=C:\Users\qt\RTA\src-6.1.0\qtbase

      Finishes fine.

      Build: cmake --build . --parallel

      Fails with:

      FAILED: cmd.exe /C "cd . && C:\MINGW810\mingw64\bin\g++.exe -DNDEBUG -O2 -Wl,--gc-sections qtshadertools/tools/qsb/CMakeFiles/qsb.dir/qsb_autogen/mocs_compilation.cpp.obj qtshadertools/tools/qsb/CMakeFiles/qsb.dir/qsb.cpp.obj qtshadertools/tools/qsb/CMakeFiles/qsb.dir/qsb_plugin_imports_Qt__Gui.cpp.obj -o qtbase\bin\qsb.exe -Wl,--out-implib,qtshadertools\tools\qsb\libqsb.dll.a -Wl,--major-image-version,0,--minor-image-version,0  qtshadertools/tools/qsb/CMakeFiles/qsb_rc.dir/./qsb_resource.rc.obj  qtbase/lib/libQt6Core.a  qtbase/lib/libQt6Gui.a  qtbase/lib/libQt6Core.a  qtbase/plugins/platforms/libqminimal.a  qtbase/plugins/platforms/libqoffscreen.a  qtbase/plugins/platforms/libqwindows.a  qtbase/plugins/platforms/libqdirect2d.a  qtbase/plugins/imageformats/libqico.a  qtbase/plugins/imageformats/libqjpeg.a  qtbase/plugins/imageformats/libqgif.a  qtbase/plugins/generic/libqtuiotouchplugin.a  qtbase/lib/libQt6ShaderTools.a  qtbase/lib/libQt6BundledSpirv_Cross.a  qtbase/lib/libQt6BundledGlslang_Glslang.a  qtbase/lib/libQt6BundledGlslang_Spirv.a  qtbase/lib/libQt6BundledGlslang_Osdependent.a  qtbase/lib/libQt6BundledGlslang_Oglcompiler.a  qtbase/src/plugins/platforms/windows/CMakeFiles/QWindowsIntegrationPlugin_resources_1.dir/./.rcc/qrc_openglblacklists.cpp.obj  qtbase/lib/libQt6OpenGL.a  qtbase/src/plugins/platforms/windows/CMakeFiles/QWindowsIntegrationPlugin_resources_2.dir/./.rcc/qrc_cursors.cpp.obj  -ldwmapi  -limm32  -loleaut32  -lshlwapi  -lwinspool  -lwtsapi32  qtbase/src/plugins/platforms/direct2d/CMakeFiles/QWindowsDirect2DIntegrationPlugin_resources_1.dir/./.rcc/qrc_openglblacklists.cpp.obj  qtbase/src/plugins/platforms/direct2d/CMakeFiles/QWindowsDirect2DIntegrationPlugin_resources_2.dir/./.rcc/qrc_cursors.cpp.obj  qtbase/lib/libQt6Gui.a  qtbase/src/gui/CMakeFiles/Gui_resources_1.dir/./.rcc/qrc_qpdf.cpp.obj  -ld3d11  -ldxgi  -ldxguid  -lgdi32  qtbase/lib/libQt6BundledHarfbuzz.a  qtbase/lib/libQt6BundledFreetype.a  qtbase/lib/libQt6BundledLibpng.a  -ld2d1  -ldwrite  qtbase/lib/libQt6Network.a  qtbase/lib/libQt6Core.a  -lmpr  -luserenv  -ladvapi32  -lkernel32  -lnetapi32  -lole32  -lshell32  -luser32  -luuid  -lversion  -lwinmm  qtbase/lib/libQt6BundledPcre2.a  -ldnsapi  -liphlpapi  -lcrypt32  -lws2_32  -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32 && cd ."
      qtbase/plugins/platforms/libqdirect2d.a(mocs_compilation.cpp.obj):mocs_compilation.cpp:(.text$_ZN23QWindowsNativeInterface18qt_static_metacallEP7QObjectN11QMetaObject4CallEiPPv+0x0): multiple definition of `QWindowsNativeInterface::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)'
      
      

      Full log, build.ninja and configure.summary attached.

       

      Attachments

        1. 610_static_mingw_build_log.txt
          274 kB
          Johanna Äijälä
        2. 610_static_mingw_build.7z
          524 kB
          Johanna Äijälä
        3. 610_static_mingw_config.summary
          14 kB
          Johanna Äijälä
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            alexandru.croitor Alexandru Croitor
            joaijala Johanna Äijälä
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes