我想基于BlueZ构建一个c文件,但我的系统中似乎没有bluetooth.h文件。fatalerror:bluetooth/bluetooth.h:Nosuchfileordirectory我确定蓝牙加密狗运行正常,并且我已成功构建Bluez。更新就我而言,我在/user/include/bluetooth文件夹中找到了bluetooth.h 最佳答案 你需要安装libbluetooth-dev包来编译你的代码sudoapt-getinstalllibbluetooth-dev那应该安装蓝牙头文件。