Where is the bluetooth/bluetooth.h located in Linu

2019-02-05 13:35发布

I want to build a c file based on BlueZ but seems no bluetooth.h file in my system.

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

I am sure the bluetooth dongle is running correctly and I have built Bluez successfully.

Update

For my case, I find the bluetooth.h in /user/include/bluetooth folder

1条回答
该账号已被封号
2楼-- · 2019-02-05 13:46

You need to install libbluetooth-dev package for compiling your code

sudo apt-get install libbluetooth-dev

That should install the bluetooth header files.

查看更多
登录 后发表回答