gpt4 book ai didi

c - Linux 中的 bluetooth/bluetooth.h 位于何处?

转载 作者:IT老高 更新时间:2023-10-28 12:38:35 28 4
gpt4 key购买 nike

我想基于 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

那应该安装蓝牙头文件。

关于c - Linux 中的 bluetooth/bluetooth.h 位于何处?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23436909/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com