日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

交叉编译出现skipping incompatible_交叉编译bluez-5.50

發布時間:2025/3/15 编程问答 17 豆豆
生活随笔 收集整理的這篇文章主要介紹了 交叉编译出现skipping incompatible_交叉编译bluez-5.50 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

環境:ubuntu 14.04

目標:arm板

交叉編譯器:arm-poky-linux-gnueabi-gcc 5.3.0

configure參數

./configure --prefix=/home/用戶/arm/bluez/usr --mandir=/home/用戶/arm/bluez/usr/share/man --sysconfdir=/home/用戶/arm/bluez/etc --localstatedir=/home/用戶/arm/bluez/var --host=arm-none-linux --target=arm-none-linux --with-systemdsystemunitdir=/lib/systemd/system --with-systemduserunitdir=/usr/lib/systemd --with-udevdir=/lib/udev/ --enable-library --enable-static=yes --enable-shared=yes

configure參數(分行,方便復制)

./configure --prefix=/home/用戶/arm/bluez/usr --mandir=/home/用戶/arm/bluez/usr/share/man --sysconfdir=/home/用戶/arm/bluez/etc --localstatedir=/home/用戶/arm/bluez/var --host=arm-none-linux --target=arm-none-linux --with-systemdsystemunitdir=/lib/systemd/system --with-systemduserunitdir=/usr/lib/systemd --with-udevdir=/lib/udev/ --enable-library --enable-static=yes --enable-shared=yes

我編譯時的錯誤:

錯誤1:checking for GLIB... no

configure: error: GLib >= 2.28 is required

安裝命令:sudo apt-get install libglib2.0

///

錯誤2:checking for DBUS... no

configure: error: D-Bus >= 1.6 is required

安裝命令:sudo apt-get install libdbus-1-dev

///

錯誤3:checking for UDEV... no

configure: error: libudev >= 172 is required

安裝命令:sudo apt-get install libudev-dev

///

錯誤4:checking for ICAL... no

configure: error: libical is required

安裝命令:sudo apt-get install libical-dev

///

錯誤5:checking for readline/readline.h... no

configure: error: readline header files are required

安裝命令:sudo apt-get install libreadline-dev

///

在常規configure成功后,設置交叉編譯環境,我時直接加載交叉編譯環境的

source /opt/fsl-imx-fb/qt5/environment-setup-cortexa9hf-neon-poky-linux-gnueabi

重新用上面的命令configure,生成Makefile文件,之后

make

sudo make install

make install會報錯,修改系統文件失敗,而且是修改當前ubuntu14的配置文件,交叉編譯的生成文件都應該要復制到arm板的,不知道是不是有些配置不對的問題,不過由于arm板上已經有bluez5.3版本,所以我復制了5.5版本的文件覆蓋過去,并沒什么問題出現

bluez5.5支持以參數的方式直接調用bluetoothctl,比如:

bluetoothctl connect E3:28:E9:24:21:07

而bluez5.3則需要先執行bluetoothctl,然后再輸入命令,不過我后來發現可以用如下方式使用

輸入 echo -e "" | bluetoothctl 來自動化bluetoothctl命令

編譯出來的文件如圖:

?

?

?

參考:

https://blog.csdn.net/tonyfield2015/article/details/79668445

https://blog.csdn.net/wang_shuai_ww/article/details/41720605

https://blog.csdn.net/u010659887/article/details/85115625

總結

以上是生活随笔為你收集整理的交叉编译出现skipping incompatible_交叉编译bluez-5.50的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。