Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Конфигурация и сборка Qt6 + Visual Studio 2019 для Windows 10



  • При сборке static Qt библиотеки получаю ошибку, пожалуйста подскажите, как решить эту ошибку.
    Описание ниже по тексту.

    Конфигурация выполняется успешно в соответствии с инструкцией https://doc.qt.io/qt-6/windows-building.html
    строка для конфигурирования ..\6.1.2\src\configure.bat -prefix C:\Qt\static -release -static -platform win32-msvc -no-opengl -no-dbus

    При сборке выдает ошибку ninja: build stopped: subcommand failed.
    Команда сборки
    [5551/6663] C:\PROGRA~2\MIB055~1\2019\ENTERP~1\VC\Tools\MSVC\1428~1.299\bin\Hostx64\x64\cl.exe /nologo /TP -DQT_ASCII_CAST_WARNINGS -DQT_BUILDING_QT -DQT_BUILD_QUICK3DUTILS_LIB -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DQT_GUI_LIB -DQT_MOC_COMPAT -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_USE_QSTRINGBUILDER -DUNICODE -DWIN32 -DWIN64 -D_CRT_SECURE_NO_WARNINGS -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_USE_MATH_DEFINES -D_WIN64 -IC:\Qt\6.1.2\Src\qtquick3d\src\utils\Quick3DUtils_autogen\include -IC:\Qt\6.1.2\Src\qtbase\include -IC:\Qt\6.1.2\Src\qtbase\include\QtQuick3DUtils -IC:\Qt\6.1.2\Src\qtquick3d\src\utils -IC:\Qt\6.1.2\Src\qtbase\include\QtQuick3DUtils\6.1.2 -IC:\Qt\6.1.2\Src\qtbase\include\QtQuick3DUtils\6.1.2\QtQuick3DUtils -IC:\Qt\6.1.2\Src\qtbase\include\QtCore -IC:\Qt\6.1.2\Src\qtbase\mkspecs\win32-msvc -IC:\Qt\6.1.2\Src\qtbase\include\QtGui -IC:\Qt\6.1.2\Src\qtbase\src\corelib -IC:\Qt\6.1.2\Src\qtbase\include\QtCore\6.1.2 -IC:\Qt\6.1.2\Src\qtbase\include\QtCore\6.1.2\QtCore -IC:\Qt\6.1.2\Src\qtbase\src\gui -IC:\Qt\6.1.2\Src\qtbase\include\QtGui\6.1.2 -IC:\Qt\6.1.2\Src\qtbase\include\QtGui\6.1.2\QtGui /DWIN32 /D_WINDOWS /GR /DNDEBUG -O2 -MD /W3 /wd4530 /wd4577 -Zc:__cplusplus -permissive- -utf-8 -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:externConstexpr -Zc:wchar_t -guard:cf -std:c++17 /YuC:/Qt/6.1.2/Src/qtquick3d/src/utils/CMakeFiles/Quick3DUtils.dir/cmake_pch.hxx /FpC:/Qt/6.1.2/Src/qtquick3d/src/utils/CMakeFiles/Quick3DUtils.dir/./cmake_pch.cxx.pch /FIC:/Qt/6.1.2/Src/qtquick3d/src/utils/CMakeFiles/Quick3DUtils.dir/cmake_pch.hxx /showIncludes /Foqtquick3d\src\utils\CMakeFiles\Quick3DUtils.dir\qqsbcollection.cpp.obj /Fdqtbase\lib\Qt6Quick3DUtils.pdb /FS -c C:\Qt\6.1.2\Src\qtquick3d\src\utils\qqsbcollection.cpp

    после этого выполняем команды по построению и установки библиотек
    cmake --build ..\6.1.2\Src --parallel
    cmake --install ..\6.1.2\Src



  • Проблему первоначальной сборки решил отключив большую часть. Вот строка для конфигурирования
    configure.bat -static -release -platform win32-msvc -no-opengl -prefix "C:\Qt\Qt6.1.2_static" -opensource -confirm-license -make libs -nomake tools -nomake examples -nomake tests -skip qt3d -skip qtandroidextras -skip qtcanvas3d -skip qtcharts -skip qtconnectivity -skip qtdatavis3d -skip qtdeclarative -skip qtdoc -skip qtgamepad -skip qtgraphicaleffects -skip qtimageformats -skip qtlocation -skip qtmacextras -skip qtmultimedia -skip qtnetworkauth -skip qtpurchasing -skip qtquickcontrols -skip qtquickcontrols2 -skip qtscript -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtserialport -skip qtspeech -skip qtsvg -skip qttools -skip qttranslations -skip qtvirtualkeyboard -skip qtwayland -skip qtwebchannel -skip qtwebengine -skip qtwebsockets -skip qtwebview -skip qtwinextras -skip qtx11extras -skip qtxmlpatterns -no-feature-texthtmlparser -no-feature-textodfwriter -no-feature-concurrent -no-feature-effects -no-feature-sharedmemory -no-feature-systemsemaphore -no-feature-im -no-feature-process -no-feature-dom -no-feature-filesystemmodel -no-feature-filesystemwatcher -no-feature-graphicsview -no-feature-graphicseffect -no-feature-sizegrip -no-feature-calendarwidget -no-feature-printpreviewwidget -no-feature-keysequenceedit -no-feature-colordialog -no-feature-filedialog -no-feature-fontdialog -no-feature-progressdialog -no-feature-inputdialog -no-feature-errormessage -no-feature-wizard -no-feature-datawidgetmapper -no-feature-imageformat_bmp -no-feature-imageformat_ppm -no-feature-imageformat_xbm -no-feature-imageformat_png -no-feature-imageformat_jpeg -no-feature-image_heuristic_mask -no-feature-image_text -no-feature-colornames -no-feature-cups -no-feature-freetype -no-feature-translation -no-feature-udpsocket -no-feature-networkproxy -no-feature-socks5 -no-feature-networkdiskcache -no-feature-completer -no-feature-fscompleter -no-feature-desktopservices -no-feature-mimetype -no-feature-systemtrayicon -no-feature-undocommand -no-feature-undostack -no-feature-undogroup -no-feature-undoview -no-feature-statemachine -no-feature-gestures -no-feature-dbus -skip qt5compat -skip qtcoap -skip qtlottie -skip qtmqtt -skip qtopcua -skip qtquick3d -skip qtquicktimeline


Log in to reply