Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Error trying to add Adding Qt Quick Designer Components to Qt Installation
Forum Updated to NodeBB v4.3 + New Features

Error trying to add Adding Qt Quick Designer Components to Qt Installation

Scheduled Pinned Locked Moved Solved General and Desktop
14 Posts 3 Posters 1.3k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    CPPUIX
    wrote on last edited by
    #2

    What is the version of Qt installed on your Windows?

    M 1 Reply Last reply
    0
    • C CPPUIX

      What is the version of Qt installed on your Windows?

      M Offline
      M Offline
      mk_matt
      wrote on last edited by
      #3

      Hi @Abderrahmene_Rayene, it's version 6.4.2

      C 1 Reply Last reply
      0
      • M mk_matt

        Hi @Abderrahmene_Rayene, it's version 6.4.2

        C Offline
        C Offline
        CPPUIX
        wrote on last edited by
        #4

        @mk_matt Could you please post your CMakeLists.txt file? and anything else that you did by yourself, like custom commands and so on.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mk_matt
          wrote on last edited by
          #5

          If I used Visual Studio instead of Ninja, I get a different result. I got up to the build stage, but then I get errors during both build and install.

          Build:
          The log is too big to post, but the error I get is this:

          cl : command line error D8016: '/O2' and '/RTC1' command-line options are incompatible 
          

          Install:

          PS C:\build> cmake --install .
          -- Install configuration: "Release"
          -- Installing: C:/Qt/6.4.2/msvc2019_64/lib/metatypes/qt6quickultralitestudioextras_metatypes.json
          -- Installing: C:/Qt/6.4.2/msvc2019_64/lib/cmake/Qt6QuickUltraLiteStudioExtras/Qt6QuickUltraLiteStudioExtrasConfig.cmake
          -- Installing: C:/Qt/6.4.2/msvc2019_64/lib/cmake/Qt6QuickUltraLiteStudioExtras/Qt6QuickUltraLiteStudioExtrasConfigVersion.cmake
          -- Installing: C:/Qt/6.4.2/msvc2019_64/lib/cmake/Qt6QuickUltraLiteStudioExtras/Qt6QuickUltraLiteStudioExtrasConfigVersionImpl.cmake
          CMake Error at src/imports/compat/Extras/cmake_install.cmake:63 (file):
            file INSTALL cannot find "C:/build/bin/Qt6QuickUltraLiteStudioExtras.dll":
            No error.
          Call Stack (most recent call first):
            src/imports/compat/cmake_install.cmake:37 (include)
            src/imports/cmake_install.cmake:37 (include)
            src/cmake_install.cmake:37 (include)
            cmake_install.cmake:37 (include)
          
          C 1 Reply Last reply
          0
          • M mk_matt

            If I used Visual Studio instead of Ninja, I get a different result. I got up to the build stage, but then I get errors during both build and install.

            Build:
            The log is too big to post, but the error I get is this:

            cl : command line error D8016: '/O2' and '/RTC1' command-line options are incompatible 
            

            Install:

            PS C:\build> cmake --install .
            -- Install configuration: "Release"
            -- Installing: C:/Qt/6.4.2/msvc2019_64/lib/metatypes/qt6quickultralitestudioextras_metatypes.json
            -- Installing: C:/Qt/6.4.2/msvc2019_64/lib/cmake/Qt6QuickUltraLiteStudioExtras/Qt6QuickUltraLiteStudioExtrasConfig.cmake
            -- Installing: C:/Qt/6.4.2/msvc2019_64/lib/cmake/Qt6QuickUltraLiteStudioExtras/Qt6QuickUltraLiteStudioExtrasConfigVersion.cmake
            -- Installing: C:/Qt/6.4.2/msvc2019_64/lib/cmake/Qt6QuickUltraLiteStudioExtras/Qt6QuickUltraLiteStudioExtrasConfigVersionImpl.cmake
            CMake Error at src/imports/compat/Extras/cmake_install.cmake:63 (file):
              file INSTALL cannot find "C:/build/bin/Qt6QuickUltraLiteStudioExtras.dll":
              No error.
            Call Stack (most recent call first):
              src/imports/compat/cmake_install.cmake:37 (include)
              src/imports/cmake_install.cmake:37 (include)
              src/cmake_install.cmake:37 (include)
              cmake_install.cmake:37 (include)
            
            C Offline
            C Offline
            CPPUIX
            wrote on last edited by
            #6

            @mk_matt The first error is clearer than this one, CMake cannot find Qt6, so you need to to tell it where Qt6 is installed, you can find this in the documentation https://doc.qt.io/qt-6/cmake-get-started.html#build-a-c-gui-executable

            This is from the documentaion:
            "

            • Set the CMAKE_PREFIX_PATH environment variable to include the Qt 6 installation prefix.

            • Set the CMake cache variable CMAKE_PREFIX_PATH to include the Qt 6 installation prefix.
              "

            For example, add something like this to CMakeLists.txt:

            set(CMAKE_PREFIX_PATH "C:/Path/to/your/Qt/Installation/")

            M 1 Reply Last reply
            0
            • C CPPUIX

              @mk_matt The first error is clearer than this one, CMake cannot find Qt6, so you need to to tell it where Qt6 is installed, you can find this in the documentation https://doc.qt.io/qt-6/cmake-get-started.html#build-a-c-gui-executable

              This is from the documentaion:
              "

              • Set the CMAKE_PREFIX_PATH environment variable to include the Qt 6 installation prefix.

              • Set the CMake cache variable CMAKE_PREFIX_PATH to include the Qt 6 installation prefix.
                "

              For example, add something like this to CMakeLists.txt:

              set(CMAKE_PREFIX_PATH "C:/Path/to/your/Qt/Installation/")

              M Offline
              M Offline
              mk_matt
              wrote on last edited by mk_matt
              #7

              @Abderrahmene_Rayene

              If I set the environment variable CMAKE's own GUI finds the Qt6 install, but then fails to find a compiler when using Ninja.

              Running from the Visual Studio command line fails to find the Qt6 install, even with the environment variable - I get the same error as before. However, it finds the compiler ok (again using Ninja).

              Any thoughts on how I can troubleshoot further?

              Thanks for your help.

              1 Reply Last reply
              0
              • M Offline
                M Offline
                mk_matt
                wrote on last edited by
                #8

                I think I found part of the problem. When running from within Visual Studio it's using the x86 compiler and there's mis-match with the 64bit version of Qt6 - which results in the "could not find a configuration file for package "Qt6" that is compatible".

                Not sure why this is happening or how to fix it.

                M 1 Reply Last reply
                0
                • M mk_matt

                  I think I found part of the problem. When running from within Visual Studio it's using the x86 compiler and there's mis-match with the 64bit version of Qt6 - which results in the "could not find a configuration file for package "Qt6" that is compatible".

                  Not sure why this is happening or how to fix it.

                  M Offline
                  M Offline
                  mk_matt
                  wrote on last edited by
                  #9

                  I forced Visual Studio to use the x64 compiler and got it to generate successfully, but then it failed at the build stage:

                  C:\build>cmake --build .
                  [156/532] Building CXX object src\imports\compat\Extras\C...ickUltraLiteStudioExtras_autogen\mocs_compilation.cpp.obj
                  FAILED: src/imports/compat/Extras/CMakeFiles/QuickUltraLiteStudioExtras.dir/QuickUltraLiteStudioExtras_autogen/mocs_compilation.cpp.obj
                  C:\PROGRA~2\MICROS~3\2019\COMMUN~1\VC\Tools\MSVC\1429~1.301\bin\Hostx86\x64\cl.exe  /nologo /TP -DMINGW_HAS_SECURE_API=1 -DQT_ASCII_CAST_WARNINGS -DQT_BUILDING_QT -DQT_BUILD_QUICKULTRALITESTUDIOEXTRAS_LIB -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DEPRECATED_WARNINGS_SINCE=0x070000 -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DQT_MOC_COMPAT -DQT_NETWORK_LIB -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_QMLINTEGRATION_LIB -DQT_QML_LIB -DQT_USE_QSTRINGBUILDER -DQuickUltraLiteStudioExtras_EXPORTS -DUNICODE -DWIN32 -DWIN64 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_USE_MATH_DEFINES -D_WIN64 -IC:\build\src\imports\compat\Extras\QuickUltraLiteStudioExtras_autogen\include -IC:\Users\matthewtheuma\Documents\GitHub\qtquickdesigner-components\src\imports\compat\Extras -IC:\build\src\imports\compat\Extras -external:IC:\Qt\6.4.2\mingw_64\include\QtQml\6.4.2 -external:IC:\Qt\6.4.2\mingw_64\include\QtQml\6.4.2\QtQml -external:IC:\Qt\6.4.2\mingw_64\include\QtCore\6.4.2 -external:IC:\Qt\6.4.2\mingw_64\include\QtCore\6.4.2\QtCore -external:IC:\Qt\6.4.2\mingw_64\include\QtCore -external:IC:\Qt\6.4.2\mingw_64\include -external:IC:\Qt\6.4.2\mingw_64\mkspecs\win32-g++ -external:IC:\Qt\6.4.2\mingw_64\include\QtQml -external:IC:\Qt\6.4.2\mingw_64\include\QtQmlIntegration -external:IC:\Qt\6.4.2\mingw_64\include\QtNetwork -external:W0 /DWIN32 /D_WINDOWS /GR /Zi     /DNDEBUG -O2 -MD /W3 /EHs-c- /wd4530 /wd4577 -Wa,-mbig-obj -Wsuggest-override -std:c++17 /showIncludes /Fosrc\imports\compat\Extras\CMakeFiles\QuickUltraLiteStudioExtras.dir\QuickUltraLiteStudioExtras_autogen\mocs_compilation.cpp.obj /Fdsrc\imports\compat\Extras\CMakeFiles\QuickUltraLiteStudioExtras.dir\ /FS -c C:\build\src\imports\compat\Extras\QuickUltraLiteStudioExtras_autogen\mocs_compilation.cpp
                  cl : Command line error D8021 : invalid numeric argument '/Wa,-mbig-obj'
                  [160/532] Building CXX object src\imports\compat\Extras\C...r\quickultralitestudioextras_qmltyperegistrations.cpp.obj
                  FAILED: src/imports/compat/Extras/CMakeFiles/QuickUltraLiteStudioExtras.dir/quickultralitestudioextras_qmltyperegistrations.cpp.obj
                  C:\PROGRA~2\MICROS~3\2019\COMMUN~1\VC\Tools\MSVC\1429~1.301\bin\Hostx86\x64\cl.exe  /nologo /TP -DMINGW_HAS_SECURE_API=1 -DQT_ASCII_CAST_WARNINGS -DQT_BUILDING_QT -DQT_BUILD_QUICKULTRALITESTUDIOEXTRAS_LIB -DQT_CORE_LIB -DQT_DEPRECATED_W=1 -DQT_ASCII_CAST_WARNINGS -DQT_BUILDING_QT -DQT_BUILD_QUICKULTRALITESTUDIOEXTRAS_LIB -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DEPRECATED_WARNINGS_SINCE=0x070000 -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DQT_MOC_COMPAT -DQT_NETWORK_LIB -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_QMLINTEGRATION_LIB -DQT_QML_LIB -DQT_USE_QSTRINGBUILDER -DQuickUltraLiteStudioExtras_EXPORTS -DUNICODE -DWIN32 -DWIN64 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_USE_MATH_DEFINES -D_WIN64 -IC:\build\src\imports\compat\Extras\QuickUltraLiteStudioExtras_autogen\include -IC:\Users\matthewtheuma\Documents\GitHub\qtquickdesigner-components\src\imports\compat\Extras -IC:\build\src\imports\compat\Extras -external:IC:\Qt\6.4.2\mingw_64\include\QtQml\6.4.2 -external:IC:\Qt\6.4.2\mingw_64\include\QtQml\6.4.2\QtQml -external:IC:\Qt\6.4.2\mingw_64\include\QtCore\6.4.2 -external:IC:\Qt\6.4.2\mingw_64\include\QtCore\6.4.2\QtCore -external:IC:\Qt\6.4.2\mingw_64\include\QtCore -external:IC:\Qt\6.4.2\mingw_64\include -external:IC:\Qt\6.4.2\mingw_64\mkspecs\win32-g++ -external:IC:\Qt\6.4.2\mingw_64\include\QtQml -external:IC:\Qt\6.4.2\mingw_64\include\QtQmlIntegration -external:IC:\Qt\6.4.2\mingw_64\include\QtNetwork -external:W0 /DWIN32 /D_WINDOWS /GR /Zi     /DNDEBUG -O2 -MD /W3 /EHs-c- /wd4530 /wd4577 -Wa,-mbig-obj -Wsuggest-override -std:c++17 /bigobj /showIncludes /Fosrc\imports\compat\Extras\CMakeFiles\QuickUltraLiteStudioExtras.dir\quickultralitestudioextras_qmltyperegistrations.cpp.obj /Fdsrc\imports\compat\Extras\CMakeFiles\QuickUltraLiteStudioExtras.dir\ /FS -c C:\build\src\imports\compat\Extras\quickultralitestudioextras_qmltyperegistrations.cpp
                  cl : Command line error D8021 : invalid numeric argument '/Wa,-mbig-obj'
                  [161/532] Building CXX object src\imports\compat\Extras\C...Extras.dir\.rcc\qrc_qmake_QtQuickUltralite_Extras.cpp.obj
                  FAILED: src/imports/compat/Extras/CMakeFiles/QuickUltraLiteStudioExtras.dir/.rcc/qrc_qmake_QtQuickUltralite_Extras.cpp.obj
                  C:\PROGRA~2\MICROS~3\2019\COMMUN~1\VC\Tools\MSVC\1429~1.301\bin\Hostx86\x64\cl.exe  /nologo /TP -DMINGW_HAS_SECURE_API=1 -DQT_ASCII_CAST_WARNINGS -DQT_BUILDING_QT -DQT_BUILD_QUICKULTRALITESTUDIOEXTRAS_LIB -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DEPRECATED_WARNINGS_SINCE=0x070000 -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DQT_MOC_COMPAT -DQT_NETWORK_LIB -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_QMLINTEGRATION_LIB -DQT_QML_LIB -DQT_USE_QSTRINGBUILDER -DQuickUltraLiteStudioExtras_EXPORTS -DUNICODE -DWIN32 -DWIN64 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_USE_MATH_DEFINES -D_WIN64 -IC:\build\src\imports\compat\Extras\QuickUltraLiteStudioExtras_autogen\include -IC:\Users\matthewtheuma\Documents\GitHub\qtquickdesigner-components\src\imports\compat\Extras -IC:\build\src\imports\compat\Extras -external:IC:\Qt\6.4.2\mingw_64\include\QtQml\6.4.2 -external:IC:\Qt\6.4.2\mingw_64\include\QtQml\6.4.2\QtQml -external:IC:\Qt\6.4.2\mingw_64\include\QtCore\6.4.2 -external:IC:\Qt\6.4.2\mingw_64\include\QtCore\6.4.2\QtCore -external:IC:\Qt\6.4.2\mingw_64\include\QtCore -external:IC:\Qt\6.4.2\mingw_64\include -external:IC:\Qt\6.4.2\mingw_64\mkspecs\win32-g++ -external:IC:\Qt\6.4.2\mingw_64\include\QtQml -external:IC:\Qt\6.4.2\mingw_64\include\QtQmlIntegration -external:IC:\Qt\6.4.2\mingw_64\include\QtNetwork -external:W0 /DWIN32 /D_WINDOWS /GR /Zi     /DNDEBUG -O2 -MD /W3 /EHs-c- /wd4530 /wd4577 -Wa,-mbig-obj -Wsuggest-override -std:c++17 /showIncludes /Fosrc\imports\compat\Extras\CMakeFiles\QuickUltraLiteStudioExtras.dir\.rcc\qrc_qmake_QtQuickUltralite_Extras.cpp.obj /Fdsrc\imports\compat\Extras\CMakeFiles\QuickUltraLiteStudioExtras.dir\ /FS -c C:\build\src\imports\compat\Extras\.rcc\qrc_qmake_QtQuickUltralite_Extras.cpp
                  cl : Command line error D8021 : invalid numeric argument '/Wa,-mbig-obj'
                  [162/532] Building CXX object src\imports\compat\Extras\C...lcache\QuickUltraLiteStudioExtras_qmlcache_loader.cpp.obj
                  FAILED: src/imports/compat/Extras/CMakeFiles/QuickUltraLiteStudioExtras.dir/.rcc/qmlcache/QuickUltraLiteStudioExtras_qmlcache_loader.cpp.obj
                  C:\PROGRA~2\MICROS~3\2019\COMMUN~1\VC\Tools\MSVC\1429~1.301\bin\Hostx86\x64\cl.exe  /nologo /TP -DMINGW_HAS_SECURE_API=1 -DQT_ASCII_CAST_WARNINGS -DQT_BUILDING_QT -DQT_BUILD_QUICKULTRALITESTUDIOEXTRAS_LIB -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DEPRECATED_WARNINGS_SINCE=0x070000 -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DQT_MOC_COMPAT -DQT_NETWORK_LIB -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_QMLINTEGRATION_LIB -DQT_QML_LIB -DQT_USE_QSTRINGBUILDER -DQuickUltraLiteStudioExtras_EXPORTS -DUNICODE -DWIN32 -DWIN64 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_USE_MATH_DEFINES -D_WIN64 -IC:\build\src\imports\compat\Extras\QuickUltraLiteStudioExtras_autogen\include -IC:\Users\matthewtheuma\Documents\GitHub\qtquickdesigner-components\src\imports\compat\Extras -IC:\build\src\imports\compat\Extras -external:IC:\Qt\6.4.2\mingw_64\include\QtQml\6.4.2 -external:IC:\Qt\6.4.2\mingw_64\include\QtQml\6.4.2\QtQml -external:IC:\Qt\6.4.2\mingw_64\include\QtCore\6.4.2 -external:IC:\Qt\6.4.2\mingw_64\include\QtCore\6.4.2\QtCore -external:IC:\Qt\6.4.2\mingw_64\include\QtCore -external:IC:\Qt\6.4.2\mingw_64\include -external:IC:\Qt\6.4.2\mingw_64\mkspecs\win32-g++ -external:IC:\Qt\6.4.2\mingw_64\include\QtQml -external:IC:\Qt\6.4.2\mingw_64\include\QtQmlIntegration -external:IC:\Qt\6.4.2\mingw_64\include\QtNetwork -external:W0 /DWIN32 /D_WINDOWS /GR /Zi     /DNDEBUG -O2 -MD /W3 /EHs-c- /wd4530 /wd4577 -Wa,-mbig-obj -Wsuggest-override -std:c++17 /showIncludes /Fosrc\imports\compat\Extras\CMakeFiles\QuickUltraLiteStudioExtras.dir\.rcc\qmlcache\QuickUltraLiteStudioExtras_qmlcache_loader.cpp.obj /Fdsrc\imports\compat\Extras\CMakeFiles\QuickUltraLiteStudioExtras.dir\ /FS -c C:\build\src\imports\compat\Extras\.rcc\qmlcache\QuickUltraLiteStudioExtras_qmlcache_loader.cpp
                  cl : Command line error D8021 : invalid numeric argument '/Wa,-mbig-obj'
                  [177/532] Building RC object src\imports\compat\Extras\CM...udioExtras.dir\QuickUltraLiteStudioExtras_resource.rc.res
                  ninja: build stopped: subcommand failed.
                  
                  jsulmJ 1 Reply Last reply
                  0
                  • M mk_matt

                    I forced Visual Studio to use the x64 compiler and got it to generate successfully, but then it failed at the build stage:

                    C:\build>cmake --build .
                    [156/532] Building CXX object src\imports\compat\Extras\C...ickUltraLiteStudioExtras_autogen\mocs_compilation.cpp.obj
                    FAILED: src/imports/compat/Extras/CMakeFiles/QuickUltraLiteStudioExtras.dir/QuickUltraLiteStudioExtras_autogen/mocs_compilation.cpp.obj
                    C:\PROGRA~2\MICROS~3\2019\COMMUN~1\VC\Tools\MSVC\1429~1.301\bin\Hostx86\x64\cl.exe  /nologo /TP -DMINGW_HAS_SECURE_API=1 -DQT_ASCII_CAST_WARNINGS -DQT_BUILDING_QT -DQT_BUILD_QUICKULTRALITESTUDIOEXTRAS_LIB -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DEPRECATED_WARNINGS_SINCE=0x070000 -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DQT_MOC_COMPAT -DQT_NETWORK_LIB -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_QMLINTEGRATION_LIB -DQT_QML_LIB -DQT_USE_QSTRINGBUILDER -DQuickUltraLiteStudioExtras_EXPORTS -DUNICODE -DWIN32 -DWIN64 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_USE_MATH_DEFINES -D_WIN64 -IC:\build\src\imports\compat\Extras\QuickUltraLiteStudioExtras_autogen\include -IC:\Users\matthewtheuma\Documents\GitHub\qtquickdesigner-components\src\imports\compat\Extras -IC:\build\src\imports\compat\Extras -external:IC:\Qt\6.4.2\mingw_64\include\QtQml\6.4.2 -external:IC:\Qt\6.4.2\mingw_64\include\QtQml\6.4.2\QtQml -external:IC:\Qt\6.4.2\mingw_64\include\QtCore\6.4.2 -external:IC:\Qt\6.4.2\mingw_64\include\QtCore\6.4.2\QtCore -external:IC:\Qt\6.4.2\mingw_64\include\QtCore -external:IC:\Qt\6.4.2\mingw_64\include -external:IC:\Qt\6.4.2\mingw_64\mkspecs\win32-g++ -external:IC:\Qt\6.4.2\mingw_64\include\QtQml -external:IC:\Qt\6.4.2\mingw_64\include\QtQmlIntegration -external:IC:\Qt\6.4.2\mingw_64\include\QtNetwork -external:W0 /DWIN32 /D_WINDOWS /GR /Zi     /DNDEBUG -O2 -MD /W3 /EHs-c- /wd4530 /wd4577 -Wa,-mbig-obj -Wsuggest-override -std:c++17 /showIncludes /Fosrc\imports\compat\Extras\CMakeFiles\QuickUltraLiteStudioExtras.dir\QuickUltraLiteStudioExtras_autogen\mocs_compilation.cpp.obj /Fdsrc\imports\compat\Extras\CMakeFiles\QuickUltraLiteStudioExtras.dir\ /FS -c C:\build\src\imports\compat\Extras\QuickUltraLiteStudioExtras_autogen\mocs_compilation.cpp
                    cl : Command line error D8021 : invalid numeric argument '/Wa,-mbig-obj'
                    [160/532] Building CXX object src\imports\compat\Extras\C...r\quickultralitestudioextras_qmltyperegistrations.cpp.obj
                    FAILED: src/imports/compat/Extras/CMakeFiles/QuickUltraLiteStudioExtras.dir/quickultralitestudioextras_qmltyperegistrations.cpp.obj
                    C:\PROGRA~2\MICROS~3\2019\COMMUN~1\VC\Tools\MSVC\1429~1.301\bin\Hostx86\x64\cl.exe  /nologo /TP -DMINGW_HAS_SECURE_API=1 -DQT_ASCII_CAST_WARNINGS -DQT_BUILDING_QT -DQT_BUILD_QUICKULTRALITESTUDIOEXTRAS_LIB -DQT_CORE_LIB -DQT_DEPRECATED_W=1 -DQT_ASCII_CAST_WARNINGS -DQT_BUILDING_QT -DQT_BUILD_QUICKULTRALITESTUDIOEXTRAS_LIB -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DEPRECATED_WARNINGS_SINCE=0x070000 -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DQT_MOC_COMPAT -DQT_NETWORK_LIB -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_QMLINTEGRATION_LIB -DQT_QML_LIB -DQT_USE_QSTRINGBUILDER -DQuickUltraLiteStudioExtras_EXPORTS -DUNICODE -DWIN32 -DWIN64 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_USE_MATH_DEFINES -D_WIN64 -IC:\build\src\imports\compat\Extras\QuickUltraLiteStudioExtras_autogen\include -IC:\Users\matthewtheuma\Documents\GitHub\qtquickdesigner-components\src\imports\compat\Extras -IC:\build\src\imports\compat\Extras -external:IC:\Qt\6.4.2\mingw_64\include\QtQml\6.4.2 -external:IC:\Qt\6.4.2\mingw_64\include\QtQml\6.4.2\QtQml -external:IC:\Qt\6.4.2\mingw_64\include\QtCore\6.4.2 -external:IC:\Qt\6.4.2\mingw_64\include\QtCore\6.4.2\QtCore -external:IC:\Qt\6.4.2\mingw_64\include\QtCore -external:IC:\Qt\6.4.2\mingw_64\include -external:IC:\Qt\6.4.2\mingw_64\mkspecs\win32-g++ -external:IC:\Qt\6.4.2\mingw_64\include\QtQml -external:IC:\Qt\6.4.2\mingw_64\include\QtQmlIntegration -external:IC:\Qt\6.4.2\mingw_64\include\QtNetwork -external:W0 /DWIN32 /D_WINDOWS /GR /Zi     /DNDEBUG -O2 -MD /W3 /EHs-c- /wd4530 /wd4577 -Wa,-mbig-obj -Wsuggest-override -std:c++17 /bigobj /showIncludes /Fosrc\imports\compat\Extras\CMakeFiles\QuickUltraLiteStudioExtras.dir\quickultralitestudioextras_qmltyperegistrations.cpp.obj /Fdsrc\imports\compat\Extras\CMakeFiles\QuickUltraLiteStudioExtras.dir\ /FS -c C:\build\src\imports\compat\Extras\quickultralitestudioextras_qmltyperegistrations.cpp
                    cl : Command line error D8021 : invalid numeric argument '/Wa,-mbig-obj'
                    [161/532] Building CXX object src\imports\compat\Extras\C...Extras.dir\.rcc\qrc_qmake_QtQuickUltralite_Extras.cpp.obj
                    FAILED: src/imports/compat/Extras/CMakeFiles/QuickUltraLiteStudioExtras.dir/.rcc/qrc_qmake_QtQuickUltralite_Extras.cpp.obj
                    C:\PROGRA~2\MICROS~3\2019\COMMUN~1\VC\Tools\MSVC\1429~1.301\bin\Hostx86\x64\cl.exe  /nologo /TP -DMINGW_HAS_SECURE_API=1 -DQT_ASCII_CAST_WARNINGS -DQT_BUILDING_QT -DQT_BUILD_QUICKULTRALITESTUDIOEXTRAS_LIB -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DEPRECATED_WARNINGS_SINCE=0x070000 -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DQT_MOC_COMPAT -DQT_NETWORK_LIB -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_QMLINTEGRATION_LIB -DQT_QML_LIB -DQT_USE_QSTRINGBUILDER -DQuickUltraLiteStudioExtras_EXPORTS -DUNICODE -DWIN32 -DWIN64 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_USE_MATH_DEFINES -D_WIN64 -IC:\build\src\imports\compat\Extras\QuickUltraLiteStudioExtras_autogen\include -IC:\Users\matthewtheuma\Documents\GitHub\qtquickdesigner-components\src\imports\compat\Extras -IC:\build\src\imports\compat\Extras -external:IC:\Qt\6.4.2\mingw_64\include\QtQml\6.4.2 -external:IC:\Qt\6.4.2\mingw_64\include\QtQml\6.4.2\QtQml -external:IC:\Qt\6.4.2\mingw_64\include\QtCore\6.4.2 -external:IC:\Qt\6.4.2\mingw_64\include\QtCore\6.4.2\QtCore -external:IC:\Qt\6.4.2\mingw_64\include\QtCore -external:IC:\Qt\6.4.2\mingw_64\include -external:IC:\Qt\6.4.2\mingw_64\mkspecs\win32-g++ -external:IC:\Qt\6.4.2\mingw_64\include\QtQml -external:IC:\Qt\6.4.2\mingw_64\include\QtQmlIntegration -external:IC:\Qt\6.4.2\mingw_64\include\QtNetwork -external:W0 /DWIN32 /D_WINDOWS /GR /Zi     /DNDEBUG -O2 -MD /W3 /EHs-c- /wd4530 /wd4577 -Wa,-mbig-obj -Wsuggest-override -std:c++17 /showIncludes /Fosrc\imports\compat\Extras\CMakeFiles\QuickUltraLiteStudioExtras.dir\.rcc\qrc_qmake_QtQuickUltralite_Extras.cpp.obj /Fdsrc\imports\compat\Extras\CMakeFiles\QuickUltraLiteStudioExtras.dir\ /FS -c C:\build\src\imports\compat\Extras\.rcc\qrc_qmake_QtQuickUltralite_Extras.cpp
                    cl : Command line error D8021 : invalid numeric argument '/Wa,-mbig-obj'
                    [162/532] Building CXX object src\imports\compat\Extras\C...lcache\QuickUltraLiteStudioExtras_qmlcache_loader.cpp.obj
                    FAILED: src/imports/compat/Extras/CMakeFiles/QuickUltraLiteStudioExtras.dir/.rcc/qmlcache/QuickUltraLiteStudioExtras_qmlcache_loader.cpp.obj
                    C:\PROGRA~2\MICROS~3\2019\COMMUN~1\VC\Tools\MSVC\1429~1.301\bin\Hostx86\x64\cl.exe  /nologo /TP -DMINGW_HAS_SECURE_API=1 -DQT_ASCII_CAST_WARNINGS -DQT_BUILDING_QT -DQT_BUILD_QUICKULTRALITESTUDIOEXTRAS_LIB -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DEPRECATED_WARNINGS_SINCE=0x070000 -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DQT_MOC_COMPAT -DQT_NETWORK_LIB -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_QMLINTEGRATION_LIB -DQT_QML_LIB -DQT_USE_QSTRINGBUILDER -DQuickUltraLiteStudioExtras_EXPORTS -DUNICODE -DWIN32 -DWIN64 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_USE_MATH_DEFINES -D_WIN64 -IC:\build\src\imports\compat\Extras\QuickUltraLiteStudioExtras_autogen\include -IC:\Users\matthewtheuma\Documents\GitHub\qtquickdesigner-components\src\imports\compat\Extras -IC:\build\src\imports\compat\Extras -external:IC:\Qt\6.4.2\mingw_64\include\QtQml\6.4.2 -external:IC:\Qt\6.4.2\mingw_64\include\QtQml\6.4.2\QtQml -external:IC:\Qt\6.4.2\mingw_64\include\QtCore\6.4.2 -external:IC:\Qt\6.4.2\mingw_64\include\QtCore\6.4.2\QtCore -external:IC:\Qt\6.4.2\mingw_64\include\QtCore -external:IC:\Qt\6.4.2\mingw_64\include -external:IC:\Qt\6.4.2\mingw_64\mkspecs\win32-g++ -external:IC:\Qt\6.4.2\mingw_64\include\QtQml -external:IC:\Qt\6.4.2\mingw_64\include\QtQmlIntegration -external:IC:\Qt\6.4.2\mingw_64\include\QtNetwork -external:W0 /DWIN32 /D_WINDOWS /GR /Zi     /DNDEBUG -O2 -MD /W3 /EHs-c- /wd4530 /wd4577 -Wa,-mbig-obj -Wsuggest-override -std:c++17 /showIncludes /Fosrc\imports\compat\Extras\CMakeFiles\QuickUltraLiteStudioExtras.dir\.rcc\qmlcache\QuickUltraLiteStudioExtras_qmlcache_loader.cpp.obj /Fdsrc\imports\compat\Extras\CMakeFiles\QuickUltraLiteStudioExtras.dir\ /FS -c C:\build\src\imports\compat\Extras\.rcc\qmlcache\QuickUltraLiteStudioExtras_qmlcache_loader.cpp
                    cl : Command line error D8021 : invalid numeric argument '/Wa,-mbig-obj'
                    [177/532] Building RC object src\imports\compat\Extras\CM...udioExtras.dir\QuickUltraLiteStudioExtras_resource.rc.res
                    ninja: build stopped: subcommand failed.
                    
                    jsulmJ Offline
                    jsulmJ Offline
                    jsulm
                    Lifetime Qt Champion
                    wrote on last edited by
                    #10

                    @mk_matt Do you use the Visual Studio cmd (terminal) to build?

                    https://forum.qt.io/topic/113070/qt-code-of-conduct

                    M 1 Reply Last reply
                    0
                    • jsulmJ jsulm

                      @mk_matt Do you use the Visual Studio cmd (terminal) to build?

                      M Offline
                      M Offline
                      mk_matt
                      wrote on last edited by
                      #11

                      @jsulm I've tried using both the VS cmd terminal and the regular terminal and got the same results.

                      Is there any way for me to get more specific information about why it might be failing?

                      C 1 Reply Last reply
                      0
                      • M mk_matt

                        @jsulm I've tried using both the VS cmd terminal and the regular terminal and got the same results.

                        Is there any way for me to get more specific information about why it might be failing?

                        C Offline
                        C Offline
                        CPPUIX
                        wrote on last edited by
                        #12

                        @mk_matt you need to post your CMakeLists.txt file.
                        And this might help you clear things, try to build a normal project with CMake, if it works, then use CMakeLists.txt of the project that worked to help you figure out what's wrong with the other one.
                        Post them here as well to get more help.

                        M 1 Reply Last reply
                        0
                        • C CPPUIX

                          @mk_matt you need to post your CMakeLists.txt file.
                          And this might help you clear things, try to build a normal project with CMake, if it works, then use CMakeLists.txt of the project that worked to help you figure out what's wrong with the other one.
                          Post them here as well to get more help.

                          M Offline
                          M Offline
                          mk_matt
                          wrote on last edited by
                          #13

                          @Abderrahmene_Rayene Do you mean the CMakeLists.txt from the qtquickdesigner-components folder? If so, I'm using this one unmodified: https://code.qt.io/cgit/qt-labs/qtquickdesigner-components.git/tree/CMakeLists.txt

                          1 Reply Last reply
                          0
                          • M Offline
                            M Offline
                            mk_matt
                            wrote on last edited by mk_matt
                            #14

                            I found a solution to the problem.

                            I ended up installing msys2 and through that installing mingw-w64 GCC using these commands:

                            • pacman -S mingw-w64-ucrt-x86_64-gcc
                            • pacman -S --needed base-devel mingw-w64-x86_64-toolchain

                            This allowed me to build and install the Qt Quick Designer Components without any errors.

                            I was still having an error with Qt Creator recognising the modules, but reinstalling resolved that, so it's all working fine now.

                            Thanks.

                            1 Reply Last reply
                            1
                            • M mk_matt has marked this topic as solved on

                            • Login

                            • Login or register to search.
                            • First post
                              Last post
                            0
                            • Categories
                            • Recent
                            • Tags
                            • Popular
                            • Users
                            • Groups
                            • Search
                            • Get Qt Extensions
                            • Unsolved