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

qtdeclarative build error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Done
    • Affects Version/s: 6.2.0 Alpha
    • Fix Version/s: 6.2.0 Beta1
    • Component/s: Build System
    • Labels:
      None
    • Platform/s:
      Windows

      Description

      Static build windows:

      Short Error:

      src\qml\qml_qmltyperegistrations.cpp(28): error C2375: 'qml_register_types_QtQml': redefinition; different linkage
      E:\vcpkg_folders\qt6-update\buildtrees\qtdeclarative\x64-windows-static-dbg\include\QtQml\6.2.0\QtQml\private\../../../../../../src/2.0-alpha1-826cf08248/src/qml/qtqmlglobal_p.h(62): note: see declaration of 'qml_register_types_QtQml'

      Full Error:

      FAILED: src/qml/CMakeFiles/Qml.dir/qml_qmltyperegistrations.cpp.obj 
      C:\PROGRA~2\MIB055~1\2019\COMMUN~1\VC\Tools\MSVC\1429~1.300\bin\Hostx64\x64\cl.exe /TP -DBUILDING_QT__ -DENABLE_ASSEMBLER_WX_EXCLUSIVE=1 -DENABLE_DFG_JIT=0 -DENABLE_DFG_JIT_UTILITY_METHODS=1 -DENABLE_JIT_CONSTANT_BLINDING=0 -DENABLE_LLINT=0 -DJS_EXPORT_PRIVATE="" -DNOMINMAX -DQT_ASCII_CAST_WARNINGS -DQT_BUILDING_QT -DQT_BUILD_QML_LIB -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DQT_MOC_COMPAT -DQT_NETWORK_LIB -DQT_NO_CAST_TO_ASCII -DQT_NO_EXCEPTIONS -DQT_NO_FOREACH -DQT_NO_INTEGER_EVENT_COORDINATES -DQT_NO_URL_CAST_FROM_STRING -DQT_USE_QSTRINGBUILDER -DUNICODE -DWIN32 -DWIN64 -DWTFInvokeCrashHook=qmlWTFInvokeCrashHook -DWTFReportAssertionFailure=qmlWTFReportAssertionFailure -DWTFReportAssertionFailureWithMessage=qmlWTFReportAssertionFailureWithMessage -DWTFReportBacktrace=qmlWTFReportBacktrace -DWTF_EXPORT_PRIVATE="" -DWTF_USE_UDIS86=0 -D_CRT_SECURE_NO_WARNINGS -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_USE_MATH_DEFINES -D_WIN64 -Isrc\qml\Qml_autogen\include -Iinclude -Iinclude\QtQml -IE:\vcpkg_folders\qt6-update\buildtrees\qtdeclarative\src\2.0-alpha1-826cf08248\src\qml -Isrc\qml -Isrc\qml\compiler -Isrc\qml\jsruntime -Isrc\qml\memory -Isrc\qml\qmldirparser -IE:\vcpkg_folders\qt6-update\buildtrees\qtdeclarative\src\2.0-alpha1-826cf08248\src\qml\..\3rdparty\masm -IE:\vcpkg_folders\qt6-update\buildtrees\qtdeclarative\src\2.0-alpha1-826cf08248\src\qml\..\3rdparty\masm\assembler -IE:\vcpkg_folders\qt6-update\buildtrees\qtdeclarative\src\2.0-alpha1-826cf08248\src\qml\..\3rdparty\masm\disassembler -IE:\vcpkg_folders\qt6-update\buildtrees\qtdeclarative\src\2.0-alpha1-826cf08248\src\qml\..\3rdparty\masm\disassembler\udis86 -IE:\vcpkg_folders\qt6-update\buildtrees\qtdeclarative\src\2.0-alpha1-826cf08248\src\qml\..\3rdparty\masm\jit -IE:\vcpkg_folders\qt6-update\buildtrees\qtdeclarative\src\2.0-alpha1-826cf08248\src\qml\..\3rdparty\masm\runtime -IE:\vcpkg_folders\qt6-update\buildtrees\qtdeclarative\src\2.0-alpha1-826cf08248\src\qml\..\3rdparty\masm\stubs -IE:\vcpkg_folders\qt6-update\buildtrees\qtdeclarative\src\2.0-alpha1-826cf08248\src\qml\..\3rdparty\masm\stubs\runtime -IE:\vcpkg_folders\qt6-update\buildtrees\qtdeclarative\src\2.0-alpha1-826cf08248\src\qml\..\3rdparty\masm\stubs\wtf -IE:\vcpkg_folders\qt6-update\buildtrees\qtdeclarative\src\2.0-alpha1-826cf08248\src\qml\..\3rdparty\masm\wtf -IE:\vcpkg_folders\qt6-update\buildtrees\qtdeclarative\src\2.0-alpha1-826cf08248\src\qml\.generated -IE:\vcpkg_folders\qt6-update\buildtrees\qtdeclarative\src\2.0-alpha1-826cf08248\src\qml\compiler -IE:\vcpkg_folders\qt6-update\buildtrees\qtdeclarative\src\2.0-alpha1-826cf08248\src\qml\debugger -IE:\vcpkg_folders\qt6-update\buildtrees\qtdeclarative\src\2.0-alpha1-826cf08248\src\qml\jsruntime -IE:\vcpkg_folders\qt6-update\buildtrees\qtdeclarative\src\2.0-alpha1-826cf08248\src\qml\memory -IE:\vcpkg_folders\qt6-update\buildtrees\qtdeclarative\src\2.0-alpha1-826cf08248\src\qml\qmldirparser -Iinclude\QtQml\6.2.0 -Iinclude\QtQml\6.2.0\QtQml -Isrc\qml\.generated\debug -Isrc\qml\jit -IE:\vcpkg_folders\qt6-update\buildtrees\qtdeclarative\src\2.0-alpha1-826cf08248\src\qml\jit -IE:\vcpkg_folders\qt6-update\buildtrees\qtdeclarative\src\2.0-alpha1-826cf08248\src\qml\animations -IE:\vcpkg_folders\qt6-update\installed\x64-windows-static\include\Qt6\QtCore\6.2.0 -IE:\vcpkg_folders\qt6-update\installed\x64-windows-static\include\Qt6\QtCore\6.2.0\QtCore -IE:\vcpkg_folders\qt6-update\installed\x64-windows-static\include\Qt6\QtCore -IE:\vcpkg_folders\qt6-update\installed\x64-windows-static\include\Qt6 -IE:\vcpkg_folders\qt6-update\installed\x64-windows-static\share\Qt6\mkspecs\win32-msvc -IE:\vcpkg_folders\qt6-update\installed\x64-windows-static\include\Qt6\QtNetwork /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /GR /MP /D_DEBUG /MTd /Z7 /RTC1 -MTd /W3 /wd4530 /wd4577 -Zc:__cplusplus -permissive- -utf-8 -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:externConstexpr -Zc:wchar_t -std:c++17 /bigobj /showIncludes /Fosrc\qml\CMakeFiles\Qml.dir\qml_qmltyperegistrations.cpp.obj /Fdlib\Qt6Qmld.pdb /FS -c src\qml\qml_qmltyperegistrations.cpp
      src\qml\qml_qmltyperegistrations.cpp(28): error C2375: 'qml_register_types_QtQml': redefinition; different linkage
      E:\vcpkg_folders\qt6-update\buildtrees\qtdeclarative\x64-windows-static-dbg\include\QtQml\6.2.0\QtQml\private\../../../../../../src/2.0-alpha1-826cf08248/src/qml/qtqmlglobal_p.h(62): note: see declaration of 'qml_register_types_QtQml'

        Attachments

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

          Activity

            People

            Assignee:
            qtbuildsystem Qt Build System Team
            Reporter:
            neumann-a Alexander Neumann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes