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

[REG 6.2.3-> 6.3.0] qtconnectivity fails on namespace build on MSVC2019 x64

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • 6.3.0 RC
    • 6.3.0 Beta1, 6.3.0 Beta2
    • Win10_21H2 x64 vm branch 6.3

    Description

      Extract Qt6.3.0 beta1 sources, 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
      

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

      [6465/9465] 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_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>'
      

      Insource, shadow and static builds work, problems only in namespace build.

      Fails also in alpha.

      Attachments

        1. 630_namespace_msvc.txt
          114 kB
          Johanna Äijälä
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vuokko Juha Vuolle
            joaijala Johanna Äijälä
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes