我想基于BlueZ构建一个c文件,但是在我的系统中似乎没有bluetooth.h文件。
fatal error: bluetooth/bluetooth.h: No such file or directory
我确定蓝牙加密狗正在正确运行,并且我已经成功构建了Bluez。
更新
对于我来说,我在/ user / include / bluetooth文件夹中找到了bluetooth.h
您需要安装libbluetooth-dev软件包才能编译代码
sudo apt-get install libbluetooth-dev
应该安装蓝牙头文件。
对于Fedora,您可以使用:
sudo dnf install bluez-libs-devel