Linux 中的 bluetooth/bluetooth.h 在哪里? [英] Where is the bluetooth/bluetooth.h located in Linux?
本文介绍了Linux 中的 bluetooth/bluetooth.h 在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想基于 BlueZ 构建一个 c 文件,但我的系统中似乎没有 bluetooth.h 文件.
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
我确定蓝牙适配器运行正常,并且我已经成功构建了 Bluez.
I am sure the bluetooth dongle is running correctly and I have built Bluez successfully.
更新
就我而言,我在/user/include/bluetooth 文件夹中找到了 bluetooth.h
For my case, I find the bluetooth.h in /user/include/bluetooth folder
推荐答案
编译代码需要安装libbluetooth-dev包
You need to install libbluetooth-dev package for compiling your code
sudo apt-get install libbluetooth-dev
那应该安装蓝牙头文件.
That should install the bluetooth header files.
这篇关于Linux 中的 bluetooth/bluetooth.h 在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文