bluez编译移植(3)
时间:2025-07-09
时间:2025-07-09
我自己的bluez编译
make[1]: *** [all-recursive] error 1
make[1]: Leaving directory `/3.3.2/dbus-1.0.2'
make: *** [all] error 2
在开发板上不需要X Server. configure直接屏蔽掉。
[mystic@moolenaar]$ ./configure --host=arm-linux --prefix=/bluez/dbus --cache-file=arm-linux.cache --without-x
文件编译完之后,进入到--prefix指定的目录/Bluetooth/dbus的lib下,把里面的所有动态库都拷贝到linux的根目录/usr/lib下,记得用cp的时候加上-av参数。还有把lib/pkgconfig下的dbus-1.pc拷贝到/usr/lib/pkgconfig。拷贝这些文件是为了后面的bluez编译的需要。
Glib移植文档
1.进入glib的目录 运行./configure --host=arm-linux
--prefix=/bluetooth/glib
2.出现错误can not run test program while cross compiling,处理方法和上面的dbus一样。
vim arm-linux.cache,里面输入如下内容:
ac_cv_type_long_long=yes
glib_cv_stack_grows=no
glib_cv_uscore=no
上一篇:磁粉检测通用工艺守则