BlueZ移植
来源:互联网 发布:mac 拼音输入法 编辑:程序博客网 时间:2024/05/15 19:43
C库:libuClibc-0.9.30
工具链:$(CROSS)
移植的软件版本:bluez-libs-3.36 bluez-utils-3.36 dbus-1.3.0 libxml2-2.6.32 libusb-0.1.12 glib-2.16.5 libiconv-1.12
依赖关系:
blueZ-libs--\
libxml2->dbus--\ 》BlueZ
libusb----------》blueZ-utils-/
iconv->glib(裁剪后可不用)----/
1.blueZ-libs编译:
./configure --prefix=/nfs/blueZ_root --host=$(CROSS)
make;make install
2.libxml2编译:
./configure --prefix=/nfs/blueZ_root --host=$(CROSS)
make;make install
3.dbus编译:
./configure --prefix=/nfs/blueZ_root --host=$(CROSS) --disable-inotify --disable-test --with-xml=libxml --enable-dnotify --with-x=no CFLAGS="-L/nfs/blueZ_root/lib -I/nfs/blueZ_root/include"
注意要修改config.h中的全局定义
DBUS_SYSTEM_BUS_DEFAULT_ADDRESS: unix:path=/var/run/dbus/system_bus_socket
DBUS_SYSTEM_SOCKET:/var/run/dbus/system_bus_socket
4.libusb编译:
./configure --prefix=/nfs/blueZ_root --host=$(CROSS) --disable-debug
make;make install
5.iconv编译(裁剪后可以不编译):
./configure --prefix=/nfs/blueZ_root --host=$(CROSS)
6.glib编译(裁剪后可不编译):
echo ac_cv_type_long_long=yes>$(CROSS).cache
echo glib_cv_stack_grows=no>>$(CROSS).cache
echo glib_cv_uscore=no>>$(CROSS).cache
echo c_cv_func_posix_getpwuid_r=yes>>$(CROSS).cache
echo ac_cv_func_posix_getgrgid_r=yes>>$(CROSS).cache
echo ac_cv_func_posix_getpwuid_r=yes>>$(CROSS).cache
./configure --prefix=/nfs/blueZ_root --host=$(CROSS) CFLAGS="-I/nfs/blueZ_root/include -L/nfs/blueZ_root/lib" --cache-file=$(CROSS).cache --disable-debug
7.blueZ-utils编译:
export PKG_CONFIG_PATH="/nfs/blueZ_root/lib/pkgconfig"
./configure --prefix=/nfs/blueZ_root --host=$(CROSS) CFLAGS="-I/nfs/blueZ_root/include -L/nfs/blueZ_root/lib" --disable-glib --enable-usb --enable-hidd --enable-initscripts --enable-hid2hci --disable-audio --disable-alsa --disable-gstreamer
修改config.h中的全局定义:
CONFIGDIR "/etc/bluetooth"
SERVICEDIR "/usr/local/lib/bluetooth"
STORAGEDIR "/var/lib/bluetooth"
make; make install
- BlueZ移植
- YC2440-F移植blueZ
- YC2440-F移植blueZ
- Bluez移植到mini2440
- Bluez的移植
- BlueZ协议的移植
- 蓝牙BlueZ的移植
- YC2440-F移植blueZ
- BlueZ移植与配置
- bluez-5.2移植
- Bluez移植到mini2440 .
- BlueZ移植与配置
- 移植Bluez-4.1
- linux下bluez的移植
- ARM USB蓝牙,Bluez 移植。
- BlueZ移植——ARM9
- ARM bluez协议栈移植
- arm bluez 移植(测试)
- Android 控件seekbar进度条、ratingbar星星评分条
- Eclipse+Tomcat远程调试配置
- poj j2031(几何+最小生成树)
- 怎么学好JAVA技术
- 英特尔对ARM:芯片大战(2)
- BlueZ移植
- Android+之小球跟着手指动
- MPEG2/TS 获取Video PID
- VMware下安装Iphone开发环境(mac10.5.5+iphone sdk 3.0)
- Spy++原理初探
- Android之响应的系统设置的事件
- Nmap 用法
- Android 多点触摸
- Lua 基本语法快速入门