Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-100827

qtconnectivity: namespace build fails on MSVC2019: "error C2027: use of undefined type 'PairingWorker'

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2: Important P2: Important
    • 6.3.0 RC
    • 6.2.3, 6.3.0 Beta2
    • Windows 10_21H2 x64
    • Windows

      Qt6.3.0 beta2 sources (3af2d458dd795f19c7c661f6e6b27e31c64c65b5). Configure:

      cmake 
      -DCMAKE_C_COMPILER=cl.exe -DCMAKE_CXX_COMPILER=cl.exe -GNinja 
      -DCMAKE_BUILD_TYPE=Release -DQT_BUILD_EXAMPLES=OFF -DBUILD_WITH_PCH=OFF 
      -DOPENSSL_ROOT_DIR=C:\openssl\include\.. -DFEATURE_system_zlib=OFF 
      -DPostgreSQL_ROOT=C:\Utils\postgresql\pgsql\lib\.. -DQT_BUILD_TESTS=OFF 
      -DQT_NAMESPACE=RTA C:\Users\qt\RTA\src-6.3.0 
      -DCMAKE_INSTALL_PREFIX:PATH=C:\Users\qt\RTA\src-6.3.0\qtbase
      

      Finishes fine, configure summary attached.

      Compile (cmake --build . --parallel), fails:

      [6427/9464] Building CXX object qtconnectivity\src\bluetooth\CMakeFiles\Bluetooth.dir\qbluetoothlocaldevice_winrt.cpp.obj
      FAILED: qtconnectivity/src/bluetooth/CMakeFiles/Bluetooth.dir/qbluetoothlocaldevice_winrt.cpp.obj 
      C:\PROGRA~2\MIB055~1\2019\PROFES~1\VC\Tools\MSVC\1429~1.301\bin\Hostx64\x64\cl.exe  /nologo /TP -DBluetooth_EXPORTS -DQT_ASCII_CAST_WARNINGS -DQT_BUILDING_QT -DQT_BUILD_BLUETOOTH_LIB -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DQT_MOC_COMPAT -DQT_NAMESPACE=RTA -DQT_NETWORK_LIB -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_FOREACH -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_USE_QSTRINGBUILDER -DQT_WINRT_BLUETOOTH -DUNICODE -DWIN32 -DWIN64 -D_CRT_SECURE_NO_WARNINGS -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_USE_MATH_DEFINES -D_WIN64 -D_WINDLL -IC:\Users\qt\RTA\src-6.3.0\qtconnectivity\src\bluetooth\Bluetooth_autogen\include -IC:\Users\qt\RTA\src-6.3.0\qtbase\include -IC:\Users\qt\RTA\src-6.3.0\qtbase\include\QtBluetooth -IC:\Users\qt\RTA\src-6.3.0\qtconnectivity\src\bluetooth -IC:\Users\qt\RTA\src-6.3.0\qtbase\include\QtBluetooth\6.3.0 -IC:\Users\qt\RTA\src-6.3.0\qtbase\include\QtBluetooth\6.3.0\QtBluetooth -IC:\Users\qt\RTA\src-6.3.0\qtbase\include\QtCore -IC:\Users\qt\RTA\src-6.3.0\qtbase\mkspecs\win32-msvc -IC:\Users\qt\RTA\src-6.3.0\qtbase\include\QtNetwork -IC:\Users\qt\RTA\src-6.3.0\qtbase\src\corelib -IC:\Users\qt\RTA\src-6.3.0\qtbase\include\QtCore\6.3.0 -IC:\Users\qt\RTA\src-6.3.0\qtbase\include\QtCore\6.3.0\QtCore -IC:\Users\qt\RTA\src-6.3.0\qtbase\src\network -IC:\Users\qt\RTA\src-6.3.0\qtbase\include\QtNetwork\6.3.0 -IC:\Users\qt\RTA\src-6.3.0\qtbase\include\QtNetwork\6.3.0\QtNetwork /DWIN32 /D_WINDOWS /DNDEBUG -O2 -MD /W3 /EHs-c- /wd4530 /wd4577 -Zc:__cplusplus -permissive- -utf-8 -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:externConstexpr -Zc:wchar_t -bigobj -guard:cf -std:c++17 /showIncludes /Foqtconnectivity\src\bluetooth\CMakeFiles\Bluetooth.dir\qbluetoothlocaldevice_winrt.cpp.obj /Fdqtconnectivity\src\bluetooth\CMakeFiles\Bluetooth.dir\ /FS -c C:\Users\qt\RTA\src-6.3.0\qtconnectivity\src\bluetooth\qbluetoothlocaldevice_winrt.cpp
      C:\Users\qt\RTA\src-6.3.0\qtconnectivity\src\bluetooth\qbluetoothlocaldevice_winrt.cpp(633): error C2027: use of undefined type 'PairingWorker'
      C:\Users\qt\RTA\src-6.3.0\qtconnectivity\src\bluetooth\qbluetoothlocaldevice_p.h(79): note: see declaration of 'PairingWorker'
      C:\Users\qt\RTA\src-6.3.0\qtconnectivity\src\bluetooth\qbluetoothlocaldevice_winrt.cpp(633): error C2039: 'pairAsync': is not a member of 'winrt::com_ptr<PairingWorker>'
      C:\Users\qt\RTA\src-6.3.0\qtconnectivity\src\bluetooth\qbluetoothlocaldevice_p.h(206): note: see declaration of 'winrt::com_ptr<PairingWorker>'
      [6428/9464] Building CXX object qtcharts\src\chartsqml2\CMakeFiles\ChartsQml.dir\declarativexyseries.cpp.obj
      

      Log attached (containing last 1000 lines of build log).

      Insource, shadow and static build works fine.

      Broken also in alpha.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            ablasche Alex Blasche
            joaijala Johanna Äijälä
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes