pad*_*uma 9 compiling bluetooth dbus 12.04 software-installation
我正在尝试在 Ubuntu 12.04 上安装 bluez 5.2 库。在运行时./configure
,我收到 GLib2.0 的错误,我可以通过使用sudo apt get-install
GLib2来解决。现在我收到错误"configure: error: D-Bus >= 1.6 is required"
。我已经下载并安装了 DBUS 1.8.6。但我仍然收到同样的错误。当签入/etc
文件夹时,我仍然找到 dbus-1。有没有安装错误?
小智 8
安装 Bluez 编译所需的头文件和库:
sudo apt install libdbus-1-dev libudev-dev libical-dev libreadline-dev
Run Code Online (Sandbox Code Playgroud)
更多信息:https : //codeyarns.com/2017/06/05/how-to-build-and-install-bluez/
小智 -1
解决了这个问题。首先我跑了
sh -x ./configure 2>errors.txt
Run Code Online (Sandbox Code Playgroud)
显示errors.txt
了哪个命令失败了
/usr/bin/pkg-config --short-errors --print-errors --cflag --libs 'dbus-1 >= 1.6'
Run Code Online (Sandbox Code Playgroud)
经过进一步挖掘后,似乎文件dbus-1.pc
不在它应该在的地方
找到文件并复制到正确位置后
/usr/lib/pkgconfig/
Run Code Online (Sandbox Code Playgroud)
希望这可以帮助