Qt 6.2.4 build fails on MSVC 2022 x64
Solved
Installation and Deployment
-
Compiler version: Microsoft (R) C/C++ Optimizing Compiler Version 19.31.31104 for x64
Configure command: configure -release -c++std c++20 -prefix C:\Qt\Release
Build command: cmake --build .
Result:[...] [ 72%] Building CXX object qtconnectivity/src/bluetooth/CMakeFiles/Bluetooth.dir/qlowenergyservicedata.cpp.obj qlowenergyservicedata.cpp [ 72%] Building CXX object qtconnectivity/src/bluetooth/CMakeFiles/Bluetooth.dir/qlowenergyserviceprivate.cpp.obj qlowenergyserviceprivate.cpp [ 72%] Building CXX object qtconnectivity/src/bluetooth/CMakeFiles/Bluetooth.dir/qbluetoothdevicediscoveryagent_winrt.cpp.obj qbluetoothdevicediscoveryagent_winrt.cpp C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.31.31103\include\experimental/coroutine(37): fatal error C1189: #error: The <experimental/coroutine> and <experimental/resumable> headers are only supported with /await and implement pre-C++20 coroutine support. Use <coroutine> for standard C++20 coroutines. NMAKE : fatal error U1077: '"C:\Program Files\CMake\bin\cmake.exe"' : return code '0x2' Stop. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.31.31103\bin\HostX64\x64\nmake.exe"' : return code '0x2' Stop. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.31.31103\bin\HostX64\x64\nmake.exe"' : return code '0x2' Stop.
Is there something that I am doing wrong? Is it possible to skip building bluetooth module? I don't need it that much.
-
-
Updating SDK helped: https://developer.microsoft.com/en-us/windows/downloads/windows-sdk/