programing

Linux에서 블루투스/블루투스.h는 어디에 있습니까?

prostudy 2022. 6. 18. 09:21
반응형

Linux에서 블루투스/블루투스.h는 어디에 있습니까?

Bluetooth.h 파일을 Bluetooth로 작성하고 싶은데 시스템에 없는 것 같습니다.

fatal error: bluetooth/bluetooth.h: No such file or directory

Bluetooth 동글은 정상적으로 동작하고 있으며, Bluetooth는 정상적으로 구축되어 있습니다.

갱신하다

제 경우 /user/include/bluetooth 폴더에 bluetooth.h가 있습니다.

코드를 컴파일하려면 libbluetooth-dev 패키지를 설치해야 합니다.

sudo apt-get install libbluetooth-dev

그러면 Bluetooth 헤더 파일이 설치됩니다.

Fedora의 경우 다음을 사용할 수 있습니다.

sudo dnf install bluez-libs-devel

CentOS 7의 경우:

sudo yum install bluez-libs-devel

언급URL : https://stackoverflow.com/questions/23436909/where-is-the-bluetooth-bluetooth-h-located-in-linux

반응형