cant't build qt6.8.1 from source on Windows 11
-
.\configure -prefix C:\Qt\6.8.1\msvc2022_64_static -release -static -static-runtime -submodules qtbase
-- Configuring done (61.4s)
-- Generating done (1.2s)
-- Build files have been written to: D:/下载/qsD:\下载\qs>cmake --build . --parallel
[158/1904] Building CXX object qtbase\src\tools\bootstrap\CMakeFiles\Bootstrap.dir__\corelib\global\qfloat16.cpp.ob
FAILED: qtbase/src/tools/bootstrap/CMakeFiles/Bootstrap.dir///corelib/global/qfloat16.cpp.obj
"C:\PROGRA~1\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\1442~1.344\bin\Hostx64\x64\cl.exe" /nologo /TP -DHAVE_CONFIG_H -DNOMINMAX -DPCRE2_CODE_UNIT_WIDTH=16 -DPCRE2_DISABLE_JIT -DPCRE2_STATIC -DQT_BOOTSTRAPPED -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_FOREACH -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_QASCONST -DQT_NO_QEXCHANGE -DQT_NO_QSNPRINTF -DQT_TYPESAFE_FLAGS -DQT_USE_QSTRINGBUILDER -DQT_VERSION_MAJOR=6 -DQT_VERSION_MINOR=8 -DQT_VERSION_PATCH=1 -DQT_VERSION_STR="6.8.1" -DUNICODE -DWIN32 -DWIN64 -D_CRT_SECURE_NO_WARNINGS -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_WIN64 -ID:\下载\qs\qtbase\src\corelib\Core_autogen\include -ID:\下载\qs\qtbase\include -ID:\下载\qs\qtbase\include\QtCore -ID:\下载\qs\qtbase\src\corelib -ID:\下载\qs\qtbase\src\corelib\global -ID:\下载\qs\qtbase\src\corelib\kernel -ID:\下载\qs\qtbase\src\corelib..\3rdparty\tinycbor\src -ID:\下载\qs\qtbase\include\QtCore\6.8.1 -ID:\下载\qs\qtbase\include\QtCore\6.8.1\QtCore -ID:\下载\qs\qtbase\src\corelib..\3rdparty\double-conversion\double-conversion -ID:\下载\qs\qtbase\src\corelib..\3rdparty\double-conversion -ID:\下载\qs\qtbase\src\corelib.rcc -ID:\下载\qs\qtbase\mkspecs\win32-msvc -ID:\下载\qs\qtbase\include\QtZlib -ID:\下载\qs\qtbase\src\3rdparty\zlib -ID:\下载\qs\qtbase\src\3rdparty\pcre2\src -ID:\下载\qs\qtbase\src\tools\bootstrap....\corelib\global -ID:\下载\qs\qtbase\src\tools\bootstrap.. -ID:\下载\qs\qtbase\src\tools\bootstrap....\3rdparty\tinycbor\src -ID:\下载\qs\qtbase\src\tools\bootstrap....\3rdparty\pcre2\src /DWIN32 /D_WINDOWS /DNDEBUG -O2 -Ob3 -std:c++17 -MT /W3 -Zc:__cplusplus -permissive- -utf-8 -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:ternary -Zc:externConstexpr -Zc:wchar_t -bigobj -guard:cf -Gw /showIncludes /Foqtbase\src\tools\bootstrap\CMakeFiles\Bootstrap.dir__\corelib\global\qfloat16.cpp.obj /Fdqtbase\src\tools\bootstrap\Qt6Bootstrap.pdb /FS -c D:\下载\qs\qtbase\src\corelib\global\qfloat16.cpp
D:\下载\qs\qtbase\src\corelib\global\qfloat16.h(8): fatal error C1083: 无法打开包括文件: “QtCore/qcompare.h”: No such file or directory -
Don't do an in-source build.
-
@Christian-Ehrlicher i redo this in anohter dir, but still failed
D:\下载\qb>..\qs\configure -prefix C:\Qt\6.8.1\msvc2022_64_static -release -static -static-runtime -submodules qtbase -nomake tests