建筑 qtconnectivity bluez 缺失
Building qtconnectivity bluez missing
我正在尝试从源代码(修订版 5.12.3(为我的主机系统(Ubuntu 18.04 VM(构建 qtconnectivity。 当我尝试在项目文件上运行qmake时,出现此错误:
Project ERROR: Could not find feature bluez.
我安装了每个该死的 bluez 软件包,但蓝牙守护程序没有运行,我想这就是问题所在。以下是我已安装的蓝牙相关软件包列表:
udo apt list --installed | grep 'bluez|bluetooth'
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
bluetooth/bionic-updates,bionic-updates,bionic-security,bionic-security,now 5.48-0ubuntu3.4 all [installed]
bluez/bionic-updates,bionic-security,now 5.48-0ubuntu3.4 amd64 [installed,automatic]
bluez-cups/bionic-updates,bionic-security,now 5.48-0ubuntu3.4 amd64 [installed,automatic]
bluez-obexd/bionic-updates,bionic-security,now 5.48-0ubuntu3.4 amd64 [installed,automatic]
bluez-tools/bionic,now 0.2.0~20140808-5build1 amd64 [installed]
gir1.2-gnomebluetooth-1.0/bionic-updates,now 3.28.0-2ubuntu0.2 amd64 [installed,automatic]
libbluetooth-dev/bionic-updates,bionic-security,now 5.48-0ubuntu3.4 amd64 [installed]
libbluetooth3/bionic-updates,bionic-security,now 5.48-0ubuntu3.4 amd64 [installed,automatic]
libbluetooth3-dbg/bionic-updates,bionic-security,now 5.48-0ubuntu3.4 amd64 [installed,auto-removable]
libgnome-bluetooth13/bionic-updates,now 3.28.0-2ubuntu0.2 amd64 [installed,automatic]
libqt5bluetooth5/bionic,now 5.9.5-0ubuntu1 amd64 [installed,auto-removable]
libqt5bluetooth5-bin/bionic,now 5.9.5-0ubuntu1 amd64 [installed,auto-removable]
有人知道如何解决此错误吗?
通常,您需要安装-dev
包才能在编译中使用库。
以下是 qtconnectivity 使用的测试:https://github.com/qt/qtconnectivity/blob/dev/config.tests/bluez/main.cpp。您需要一个包含bluetooth/bluetooth.h
的包。
在包内容中按文件名搜索会显示libbluetooth-dev
。
相关文章:
- 动态分配的聊天数组打印缺失的数据和空
- 建筑 qtconnectivity bluez 缺失
- 使用 XOR 逻辑查找缺失的数字
- 当没有括号缺失时,输入末尾的预期"}"
- 关贸设备服务关闭/处置缺失或未实现?
- 使用 istream 提取运算符进行 csv 解析:如何检测缺失的字段值?
- OpenCV 文件存储 - 错误:元素之间的解析错误 (icvYMLParseValue) 缺失
- QT 5.7 和 Bluez 5.47 连接设备的 SegemtationError
- C++ 查找未排序数组中第一个缺失的正值
- Allegro 5.2 TTF 插件在 Mac OSX 版本中缺失
- Visual C :如何找到哪个标准库包含缺失的外部符号
- _bitscanforward _bitscanforward64缺失(VS2017)活泼
- Bluez上的Linux下方的C 蓝牙耳机
- OpenCV CUDA 函数缺失 - 命名空间"cv:cuda"没有成员"resize"
- 从两个或多个不同的动态数组中查找缺失的 int 值
- 如何正确安装开源UEYE应用程序的缺失LIB
- 如何包括标准的C 库来完成缺失的库
- 如何修复CMAKE中缺失的库错误
- 如何从整数中提取缺失的数字
- 在包含正整数和负整数的向量中查找最低缺失的整数?