交叉编译出现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=yesconfigure參數(分行,方便復制)
./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的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: tomcat 目录结构 web 目录结
- 下一篇: Perl Note