簡體   English   中英

構建 qtconnectivity bluez 缺失

[英]Building qtconnectivity bluez missing

我正在嘗試從源代碼版本 5.12.3 為我的主機系統(Ubuntu 18.04 VM)構建 qtconnectivity。 當我嘗試在項目文件上運行 qmake 時,出現此錯誤:

Project ERROR: Could not find feature bluez.

我安裝了所有該死的 bluez package,但是 bluetoothd 守護程序沒有運行,我想這是問題所在。 這是我已安裝的藍牙相關軟件包的列表:

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 package 才能在編譯中使用庫。

這是 qtconnectivity 使用的測試: https://github.com/qt/qtconnectivity/blob/dev/config.tests/bluez/main.cpp 您需要一個包含bluetooth/bluetooth.h的 package 。

在 package 內容中按文件名搜索顯示libbluetooth-dev

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM