哪里蓝牙/ bluetooth.h位于Linux呢? [英] Where is the bluetooth/bluetooth.h located in Linux?

查看:2205
本文介绍了哪里蓝牙/ bluetooth.h位于Linux呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要建立基于一个的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.

更新

有关我的情况,我发现/用户bluetooth.h /有/蓝牙文件夹

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

推荐答案

您需要安装libbluetooth-dev软件包编译您的code

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

sudo apt-get install libbluetooth-dev

这应该安装蓝牙头文件。

That should install the bluetooth header files.

这篇关于哪里蓝牙/ bluetooth.h位于Linux呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆