远程编译 BlueZ ARM交叉编译环境配置(-)----PASS
来源:互联网 发布:js模拟按键f11 编辑:程序博客网 时间:2024/06/09 14:40
(Ref.:http://www.itnose.net/detail/6166988.html )
最终在211/212 server中验证完毕。
tar.gz :tar -xzvf
1.Compile zlib
wget http://zlib.net/zlib-1.2.8.tar.gz
配置:./configure --prefix=/mnt/fileroot/vlsi.sh/Boatman/bluez_install
然后手动修改Makefile如下:
修改Makefile:
CC=arm-none-linux-gnueabi-gcc
LDSHARED=arm-none-linux-gnueabi-gcc -shared -Wl,-soname,libz.so.1,--version-script,zlib.map
CPP=arm-none-linux-gnueabi-gcc-E
AR=arm-none-linux-gnueabi-ar
RANLIB=arm-none-linux-gnueabi-ranlib
编译:
make
make install
2. libffi-3.0.13
源码:wget ftp://sourceware.org/pub/libffi/libffi-3.0.13.tar.gz
配置:./configure --host=arm-none-linux-gnueabi --prefix=/mnt/fileroot/vlsi.sh/Boatman/bluez_install
编译:
make
make install
3.glib
wget http://ftp.gnome.org/pub/gnome/sources/glib/2.40/glib-2.40.0.tar.xz
配置:./configure --host=arm-none-linux-gnueabi --prefix=/home/boatman/my_install/bluez5/PKG_CONFIG_PATH=/home/boatman/my_install/bluez5/lib/pkgconfig glib_cv_stack_grows=no glib_cv_uscore=yes ac_cv_func_posix_getpwuid_r=yes ac_cv_func_posix_getgrgid_r=yes
./configure --host=arm-none-linux-gnueabi --prefix=/home/boatman/my_install/bluez5/ --cache-file=arm-linux.cache
(
#echo ac_cv_type_long_long=yes>arm-linux.cache
#echo glib_cv_stack_grows=no>>arm-linux.cache
#echo glib_cv_uscore=no>>arm-linux.cache
#echo ac_cv_func_posix_getpwuid_r=yes>>arm-linux.cache
#echo ac_cv_have_abstract_sockets=yes >> arm-linux.cache
)
using 2.28. (downloaded before)
./configure --host=arm-none-linux-gnueabi --prefix=/home/boatman/my_install/bluez5/ --cache-file=arm-linux.cache
./configure --host=arm-none-linux-gnueabi --prefix=/home/boatman/my_install/bluez5/PKG_CONFIG_PATH=/home/boatman/my_install/bluez5/lib/pkgconfig glib_cv_stack_grows=no glib_cv_uscore=yes ac_cv_func_posix_getpwuid_r=yes ac_cv_func_posix_getgrgid_r=yes
编译:
2.46.2
./configure --host=arm-none-linux-gnueabi --prefix=/mnt/fileroot/vlsi.sh/Boatman/bluez_install/ PKG_CONFIG_PATH=/mnt/fileroot/vlsi.sh/Boatman/bluez_install/lib/pkgconfig glib_cv_stack_grows=no glib_cv_uscore=yes ac_cv_func_posix_getpwuid_r=yes ac_cv_func_posix_getgrgid_r=yes
make
make install
4. D-Bus
D-Bus daemon会需要expat XML parser 库,所以这里需要先编译expat库。如果不安装会出现下面的错误:
checking for XML_ParserCreate_MM in -lexpat... noconfigure: error: Explicitly requested expat but expat not found
步骤如下
4. expat-2.1.0
源码:wget http://sourceforge.net/projects/expat/files/expat/2.1.0/expat-2.1.0.tar.gz
配置:./configure --host=arm-none-linux-gnueabi --prefix=/mnt/fileroot/vlsi.sh/Boatman/bluez_install/
编译:
make
make install
5. DBUS
源码:wget http://dbus.freedesktop.org/releases/dbus/dbus-1.10.4.tar.gz
配置:./configure CFLAGS=-I/mnt/fileroot/vlsi.sh/Boatman/bluez_install/include LDFLAGS=-L/mnt/fileroot/vlsi.sh/Boatman/bluez_install/lib --prefix=/mnt/fileroot/vlsi.sh/Boatman/bluez_install/ --host=arm-none-linux-gnueabi --enable-abstract-sockets
编译:
make
make install
6. ncurses-5.9
源码:wget http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.9.tar.gz
配置:./configure --host=arm-none-linux-gnueabi --prefix=/mnt/fileroot/vlsi.sh/Boatman/bluez_install/CXX="arm-none-linux-gnueabi-g++" --with-shared --without-cxx-binding
(--with-shared, 如果设置shared, 必须readline编译的时候指定SHLIBS_LIBS,仅仅是猜想,没经过验证)
编译:
make
make install
PS: 如果在ubuntu15.10 版本上安装本工具,必须降级gcc至4.9版本才可以 (https://github.com/c9/core/issues/162)
sudo apt-get install gcc-4.9 gcc-4.9-basesudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 10
7. readline
源码:wget ftp://ftp.cwru.edu/pub/bash/readline-6.3.tar.gz
配置:./configure --host=arm-none-linux-gnueabi --prefix=/mnt/fileroot/vlsi.sh/Boatman/bluez_install/ bash_cv_wcwidth_broken=yes
./configure --host=arm-none-linux-gnueabi --prefix=/mnt/fileroot/vlsi.sh/Boatman/bluez_install/--libdir=/mnt/fileroot/vlsi.sh/Boatman/bluez_install/lib bash_cv_wcwidth_broken=yes
./configure --host=arm-none-linux-gnueabi --prefix=/mnt/fileroot/vlsi.sh/Boatman/bluez_install/ CFLAGS=-I/mnt/fileroot/vlsi.sh/Boatman/bluez_install/include LDFLAGS=-L/mnt/fileroot/vlsi.sh/Boatman/bluez_install/lib bash_cv_wcwidth_broken=yes
编译:
make SHLIBS_LIBS=-lncurses
make install
8. Bluez-5.36
wget http://www.kernel.org/pub/linux/bluetooth/bluez-5.36.tar.xz
wget http://www.kernel.org/pub/linux/bluetooth/bluez-5.36.tar.xz
./configure --host=arm-none-linux-gnueabi --prefix=/mnt/fileroot/vlsi.sh/Boatman/bluez_install/PKG_CONFIG_PATH=/mnt/fileroot/vlsi.sh/Boatman/bluez_install/lib/pkgconfig CC="arm-none-linux-gnueabi-gcc -L/mnt/fileroot/vlsi.sh/Boatman/bluez_install/lib -I/mnt/fileroot/vlsi.sh/Boatman/bluez_install/include" --disable-systemd --disable-udev --disable-cups --disable-obex --enable-library
make 会出错,所以
修改Makefile
在含有-lreadline地方后面,加上“-lncurses”
make ;
make install;
0 0
- 远程编译 BlueZ ARM交叉编译环境配置(-)----PASS
- Bluez交叉编译移植到arm linux
- arm上交叉编译蓝牙bluez
- arm 交叉编译环境
- ARM交叉编译环境
- ARM交叉编译环境
- arm-linux交叉编译环境的配置
- 配置 arm-linux-gcc 交叉编译环境
- Ubuntu下ARM交叉编译环境配置
- ubuntu下arm交叉编译环境配置
- Arm-Linux(树莓派)交叉编译环境的配置
- BlueZ的交叉编译
- 交叉编译bluez-4.95
- BlueZ交叉编译
- 【ARM】交叉编译 bluez-4.95 步骤及使用方法
- blueZ-5.37 交叉编译可以在arm上运行
- 安装交叉编译环境(ARM处理器)
- Ubuntu12.04环境下配置ARM交叉编译环境
- RTSP/SDP内容分析
- hbase全表遍历的数据总是少很多
- 【BZOJ1059】[ZJOI2007]矩阵游戏【二分图匹配】
- linux ntp 同步windows 时间服务器
- Unity动态对象优化
- 远程编译 BlueZ ARM交叉编译环境配置(-)----PASS
- cocos2dx实现象棋之运动
- poj 1151 Atlantis && codeforces #337 D. Vika and Segments (线段树+扫描线)(求面积并)
- 【Linux】——搭建nexus
- GPS、Wifi等各种手机定位方式的含义及原理详解
- 1063. Set Similarity (25)
- 利用VS制作软件安装包的步骤
- Java数据结构----树--二叉查找(搜索或排序)树BST
- Android启动过程分析——init.c(二)