DREAMER

invalid use of incomplete type "class qbluetoothdevicediscoveryagent" 본문

프로그래밍/Embedded System

invalid use of incomplete type "class qbluetoothdevicediscoveryagent"

연소민 2023. 2. 8. 18:39
728x90

QT에서 제공하는 Bluetooth Scanner Example을 빌드하였으나 에러남.

 

invalid use of incomplete type "class qbluetoothdevicediscoveryagent"

 

단순히 include하지 못하는 문제였음.

https://stuff.mit.edu/afs/athena/software/texmaker_v5.0.2/qt57/doc/qtbluetooth/qbluetoothdevicediscoveryagent.html

위의 링크 참고하여 해당 파일 include 함.

 

 

예제 소스의 btscanner/device.h 내용 수정

  ---
  #include <qbluetoothglobal.h>
  #include <qbluetoothlocaldevice.h>
  

  QT_FORWARD_DECLARE_CLASS(QBluetoothDeviceDiscoveryAgent)
  QT_FORWARD_DECLARE_CLASS(QBluetoothDeviceInfo)
  
  
  
  
  +++
  #include <QBluetoothLocalDevice>
  #include <QBluetoothDeviceDiscoveryAgent>
728x90

'프로그래밍 > Embedded System' 카테고리의 다른 글

[Glossary] Embedded System Glossary  (0) 2023.03.21
Yocto Kernel - Jetson Nano  (0) 2022.12.08
Jetson Nano  (0) 2021.09.15
HDMI HPD란  (0) 2020.03.19
Comments