我正在尝试使用BlueZ在Linux上使用BlueZ进行蓝牙项目,并且我正在学习指导教程,但它已经有好几年了,我认为它是库现已弃用(libbluetooth1-dev)。
Here是教程,该部分的编译行需要库bluetooth
,我相信你可以从本教程的this页面中获得,但运行apt-在该页面上获取命令会导致此错误:
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
非常感谢任何帮助。
答案 0 :(得分:0)
在找到another stackoverflow question之后管理我的情况进行排序 - 我需要运行apt-get install libbluetooth-dev
(不是教程所说的libbluetooth1-dev
),然后按照指示进行编译。 apt-get安装了libbluetooth-dev
和libbluetooth3
,这是libbluetooth的当前版本。