Error trying to add Adding Qt Quick Designer Components to Qt Installation
-
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)
-
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)
@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/")
-
-
@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/")
@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.
-
-
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.
-
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.
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.
-
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.
-
@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?
@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. -
@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.@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
-
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.
-