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

qbluetoothdevicediscoveryagent_winrt do not build

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 5.12.1
    • None
    • Windows Server 2016 with MSVC 2015
    • Windows

    Description

      We tried to upgrade from 5.11.2 to 5.12.1 and our CI fails with MSVC 2015.

      Looks like WinRT Bluetooth is enabled. But we did not enable it and it was disabled with Qt 5.11. Also we do not build for WinRT.

      Our target: "-platform win32-msvc2015"

      Checking for WinRT Bluetooth API... yes

      How can I disable that without skipping the whole qtconnectivity?

       

      14:47:09 qbluetoothutils_win.cpp
      14:47:13 qbluetoothdevicediscoveryagent_winrt.cpp
      14:47:17 .\qbluetoothdevicediscoveryagent_winrt.cpp(242): warning C4189: 'hr': local variable is initialized but not referenced
      14:47:17 .\qbluetoothdevicediscoveryagent_winrt.cpp(457): error C2065: 'IBluetoothLEDevice2': undeclared identifier
      14:47:17 .\qbluetoothdevicediscoveryagent_winrt.cpp(457): error C2923: 'Microsoft::WRL::ComPtr': 'IBluetoothLEDevice2' is not a valid template type argument for parameter 'T'
      14:47:17 .\qbluetoothdevicediscoveryagent_winrt.cpp(457): error C2133: 'device2': unknown size
      14:47:17 .\qbluetoothdevicediscoveryagent_winrt.cpp(457): error C2512: 'Microsoft::WRL::ComPtr': no appropriate default constructor available
      14:47:17 C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\winrt\wrl\client.h(172): note: see declaration of 'Microsoft::WRL::ComPtr'
      14:47:17 .\qbluetoothdevicediscoveryagent_winrt.cpp(458): error C2672: 'Microsoft::WRL::ComPtr<ABI::Windows::Devices::Bluetooth::IBluetoothLEDevice>::As': no matching overloaded function found
      14:47:17 .\qbluetoothdevicediscoveryagent_winrt.cpp(458): error C2784: 'HRESULT Microsoft::WRL::ComPtr<ABI::Windows::Devices::Bluetooth::IBluetoothLEDevice>::As(Microsoft::WRL::ComPtr<U> *) throw() const': could not deduce template argument for 'Microsoft::WRL::ComPtr<U> *' from 'Microsoft::WRL::ComPtr *'
      14:47:17 C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\winrt\wrl\client.h(439): note: see declaration of 'Microsoft::WRL::ComPtr<ABI::Windows::Devices::Bluetooth::IBluetoothLEDevice>::As'
      14:47:17 .\qbluetoothdevicediscoveryagent_winrt.cpp(458): error C2784: 'HRESULT Microsoft::WRL::ComPtr<ABI::Windows::Devices::Bluetooth::IBluetoothLEDevice>::As(Microsoft::WRL::Details::ComPtrRef<Microsoft::WRL::ComPtr<U>>) throw() const': could not deduce template argument for 'Microsoft::WRL::Details::ComPtrRef<Microsoft::WRL::ComPtr<U>>' from 'Microsoft::WRL::ComPtr *'
      14:47:17 C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\winrt\wrl\client.h(432): note: see declaration of 'Microsoft::WRL::ComPtr<ABI::Windows::Devices::Bluetooth::IBluetoothLEDevice>::As'
      14:47:17 .\qbluetoothdevicediscoveryagent_winrt.cpp(461): error C2678: binary '->': no operator found which takes a left-hand operand of type 'Microsoft::WRL::ComPtr' (or there is no acceptable conversion)
      14:47:17 C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\winrt\wrl\client.h(341): note: could be 'T *Microsoft::WRL::ComPtr<T>::operator ->(void) throw() const'
      14:47:17 .\qbluetoothdevicediscoveryagent_winrt.cpp(461): note: while trying to match the argument list '(Microsoft::WRL::ComPtr)'
      14:47:17 .\qbluetoothdevicediscoveryagent_winrt.cpp(461): error C2039: 'get_DeviceInformation': is not a member of 'Microsoft::WRL::ComPtr'
      14:47:17 C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\winrt\wrl\client.h(172): note: see declaration of 'Microsoft::WRL::ComPtr'
      14:47:17 qbluetoothlocaldevice_p.cpp
      14:47:17 qbluetoothserver_winrt.cpp
      14:47:22 qbluetoothservicediscoveryagent_winrt.cpp
      14:47:27 qbluetoothserviceinfo_winrt.cpp
      14:47:31 .\qbluetoothserviceinfo_winrt.cpp(501): error C2065: 'IRfcommServiceProvider2': undeclared identifier
      14:47:31 .\qbluetoothserviceinfo_winrt.cpp(501): error C2923: 'Microsoft::WRL::ComPtr': 'IRfcommServiceProvider2' is not a valid template type argument for parameter 'T'
      14:47:31 .\qbluetoothserviceinfo_winrt.cpp(501): error C2133: 'serviceProvider2': unknown size
      14:47:31 .\qbluetoothserviceinfo_winrt.cpp(501): error C2512: 'Microsoft::WRL::ComPtr': no appropriate default constructor available
      14:47:31 c:\j\workspace\default_review_libs_win32_msvc\build\b\src\qt\qtbase\include\qtcore\../../src/corelib/kernel/qfunctions_winrt.h(154): note: see declaration of 'Microsoft::WRL::ComPtr'
      14:47:31 .\qbluetoothserviceinfo_winrt.cpp(502): error C2672: 'Microsoft::WRL::ComPtr<ABI::Windows::Devices::Bluetooth::Rfcomm::IRfcommServiceProvider>::As': no matching overloaded function found
      14:47:31 .\qbluetoothserviceinfo_winrt.cpp(502): error C2784: 'HRESULT Microsoft::WRL::ComPtr<ABI::Windows::Devices::Bluetooth::Rfcomm::IRfcommServiceProvider>::As(Microsoft::WRL::ComPtr<U> *) throw() const': could not deduce template argument for 'Microsoft::WRL::ComPtr<U> *' from 'Microsoft::WRL::ComPtr *'
      14:47:31 C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\winrt\wrl\client.h(439): note: see declaration of 'Microsoft::WRL::ComPtr<ABI::Windows::Devices::Bluetooth::Rfcomm::IRfcommServiceProvider>::As'
      14:47:31 .\qbluetoothserviceinfo_winrt.cpp(502): error C2784: 'HRESULT Microsoft::WRL::ComPtr<ABI::Windows::Devices::Bluetooth::Rfcomm::IRfcommServiceProvider>::As(Microsoft::WRL::Details::ComPtrRef<Microsoft::WRL::ComPtr<U>>) throw() const': could not deduce template argument for 'Microsoft::WRL::Details::ComPtrRef<Microsoft::WRL::ComPtr<U>>' from 'Microsoft::WRL::ComPtr *'
      14:47:31 C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\winrt\wrl\client.h(432): note: see declaration of 'Microsoft::WRL::ComPtr<ABI::Windows::Devices::Bluetooth::Rfcomm::IRfcommServiceProvider>::As'
      14:47:31 .\qbluetoothserviceinfo_winrt.cpp(508): warning C4624: 'QBluetoothServiceInfoPrivate::registerService::<lambda_671833cf2c7ad6ff27a397d89fd44af8>': destructor was implicitly defined as deleted
      14:47:31 .\qbluetoothserviceinfo_winrt.cpp(506): error C2678: binary '->': no operator found which takes a left-hand operand of type 'const Microsoft::WRL::ComPtr' (or there is no acceptable conversion)
      14:47:31 C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\winrt\wrl\client.h(341): note: could be 'T *Microsoft::WRL::ComPtr<T>::operator ->(void) throw() const'
      14:47:31 .\qbluetoothserviceinfo_winrt.cpp(506): note: while trying to match the argument list '(const Microsoft::WRL::ComPtr)'
      14:47:31 .\qbluetoothserviceinfo_winrt.cpp(506): error C2039: 'StartAdvertisingWithRadioDiscoverability': is not a member of 'Microsoft::WRL::ComPtr'
      14:47:31 c:\j\workspace\default_review_libs_win32_msvc\build\b\src\qt\qtbase\include\qtcore\../../src/corelib/kernel/qfunctions_winrt.h(154): note: see declaration of 'Microsoft::WRL::ComPtr'
      14:47:31 .\qbluetoothserviceinfo_winrt.cpp(506): error C2039: '__this': is not a member of 'Microsoft::WRL::ComPtr'
      14:47:31 c:\j\workspace\default_review_libs_win32_msvc\build\b\src\qt\qtbase\include\qtcore\../../src/corelib/kernel/qfunctions_winrt.h(154): note: see declaration of 'Microsoft::WRL::ComPtr'
      14:47:31 .\qbluetoothserviceinfo_winrt.cpp(508): fatal error C1903: unable to recover from previous error(s); stopping compilation
      14:47:31 qbluetoothsocket_winrt.cpp
      14:47:35 qlowenergycontroller_winrt.cpp

      Attachments

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

        Activity

          People

            owolff Oliver Wolff
            misery André Klitzing
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes