Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt 6.2.4 build fails on MSVC 2022 x64
Forum Updated to NodeBB v4.3 + New Features

Qt 6.2.4 build fails on MSVC 2022 x64

Scheduled Pinned Locked Moved Solved Installation and Deployment
3 Posts 2 Posters 877 Views
  • 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.
  • A Offline
    A Offline
    Akapaka
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • Christian EhrlicherC Online
      Christian EhrlicherC Online
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Maybe similar to https://bugreports.qt.io/browse/QTBUG-97826?jql=text ~ "experimental coroutine"

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Akapaka
        wrote on last edited by
        #3

        Updating SDK helped: https://developer.microsoft.com/en-us/windows/downloads/windows-sdk/

        1 Reply Last reply
        0

        • Login

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