在ubuntu上编译BlueZ:配置错误

在ubuntu上编译BlueZ:配置错误,ubuntu,bluez,Ubuntu,Bluez,我试着为ubuntu 18.04编译bluez,从下载最新版本5.50 配置命令: 失败,并显示以下消息: ... checking for ELL... no configure: error: ell library >= 0.3 is required 我忽略了什么是ELL以及为什么要使用它,但真正的问题是缺少用于摆脱此错误的依赖项 我认为您需要安装嵌入式Linux库 可能是Microsoft嵌入式学习库,但不太可能 如果您来到这里,一个原因应该是您需要启用mesh协议的bluez

我试着为ubuntu 18.04编译bluez,从下载最新版本5.50

配置命令:

失败,并显示以下消息:

...
checking for ELL... no
configure: error: ell library >= 0.3 is required

我忽略了什么是ELL以及为什么要使用它,但真正的问题是缺少用于摆脱此错误的依赖项

我认为您需要安装嵌入式Linux库

可能是Microsoft嵌入式学习库,但不太可能


如果您来到这里,一个原因应该是您需要启用mesh协议的bluez

这是我在Ubuntu18.04和Bluez5.50上使用的配方

构建并安装ELL 我没有找到ELL的打包版本,因此我从下载了最新的ELL版本

构建并安装Bluez bluez可从下载

注1:如果您需要hcitool,请使用-启用已弃用,因为它在recente bluez版本中已弃用

注2:在运行meshctl之前,请确保蓝牙服务正在运行:

> systemctl status bluetooth

# if not running:
> systemctl start bluetooth

# if start fails with
# Failed to start bluetooth.service: Unit bluetooth.service is masked.
> systemctl unmask bluetooth
非常感谢,从源代码下载和编译。
> tar xvf ~/Downloads/ell-0.6.tar.gz
> cd ell-0.6
> ./configure --prefix=/usr
> make
> sudo make install
> tar xvf ~/Downloads/bluez-5.50.tar.xz
> cd bluez-5.50
# install required dependencies
> sudo apt install libdbus-1-dev libudev-dev libical-dev libreadline-dev libjson-c-dev
> ./configure --prefix=/usr --mandir=/usr/share/man --sysconfdir=/etc --localstatedir=/var --enable-mesh --enable-deprecated
> make
> sudo make install
> systemctl status bluetooth

# if not running:
> systemctl start bluetooth

# if start fails with
# Failed to start bluetooth.service: Unit bluetooth.service is masked.
> systemctl unmask bluetooth