繁体   English   中英

使用BlueZ将libbluetooth1-dev替换为C编程的是什么?

[英]What replaced libbluetooth1-dev for C programming using BlueZ?

我正在尝试使用BlueZ在Linux上使用BlueZ进行蓝牙项目,我正在学习指导教程,但它已经有几年了,我认为它使用的库现已弃用( libbluetooth1-dev )。

是教程,该部分的编译行需要库bluetooth ,我相信你可以从执行教程的这一页获得,但是在该页面上运行apt-get命令会导致此错误:

Package bluez-utils is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  bluez

E: Unable to locate package libbluetooth1-dev
E: Package 'bluez-utils' has no installation candidate

任何帮助将不胜感激。

在找到另一个stackoverflow问题之后管理我的情况 - 我需要运行apt-get install libbluetooth-dev (不是libbluetooth1-dev如教程所说),然后按照指示编译。 apt-get安装了libbluetooth-devlibbluetooth3 ,这是libbluetooth3的当前版本。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM