bluez编译移植
时间:2025-07-08
时间:2025-07-08
我自己的bluez编译
Dbus移植步骤
1.进入dbus的目录 运行./configure --host=arm-linux
--prefix=/bluetooth/dbus
2.出现错误can not run test program while cross compiling
[mystic@moolenaar]$ . checking for getpeereid... no
checking abstract socket namespace... configure: error: cannot run test program while cross compiling
See `config.log' for more details.
执行./configure时要在宿主系统中运行一些测试程序,因为是交叉编译所以这个测试是一定通不过的。不过没问题,我们可以在configure时指定cache-file文件来屏障掉测试程序,在下面编译glib包时会遇到同样的问题。
处理方法:
在源码包根目录下执行
[mystic@moolenaar]$ echo ac_cv_have_abstract_sockets=yes > arm-linux.cache
或者自己新建一个文件,vim arm-linux.cache
在里面输入:ac_cv_have_abstract_sockets=yes
上一篇:磁粉检测通用工艺守则