什么取代了 libbluetooth1-dev 以使用 BlueZ 进行 C 编程?
What replaced libbluetooth1-dev for C programming using BlueZ?
我正尝试在 Linux 上使用 BlueZ 在 C 语言中开发一个蓝牙项目,我正在按照教程进行指导,但它已经有好几年了,我认为它使用的库是现已弃用 (libbluetooth1-dev).
Here is the tutorial, the compilation line in that section requires the library bluetooth
which I believe you would have got from performing this 教程页面,但是 运行 该页面上的 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
如有任何帮助,我们将不胜感激。
在找到 another Whosebug question 后设法解决了我的问题 - 我需要 运行 apt-get install libbluetooth-dev
(不是教程所说的 libbluetooth1-dev
)然后编译为指示。安装了 apt-get libbluetooth-dev
和 libbluetooth3
这是 libbluetooth 的当前版本。
我正尝试在 Linux 上使用 BlueZ 在 C 语言中开发一个蓝牙项目,我正在按照教程进行指导,但它已经有好几年了,我认为它使用的库是现已弃用 (libbluetooth1-dev).
Here is the tutorial, the compilation line in that section requires the library bluetooth
which I believe you would have got from performing this 教程页面,但是 运行 该页面上的 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
如有任何帮助,我们将不胜感激。
在找到 another Whosebug question 后设法解决了我的问题 - 我需要 运行 apt-get install libbluetooth-dev
(不是教程所说的 libbluetooth1-dev
)然后编译为指示。安装了 apt-get libbluetooth-dev
和 libbluetooth3
这是 libbluetooth 的当前版本。