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 [my stic@moolenaar]$
/configu re --host=arm-linu x --prefix =/blu etooth/dbu s --cache-file=arm-linu x
cache 参数解释:--prefix 指定编译好的文件存放的路径,默认会放到/u sr/bin下 --host 指定编译器的类型,这里指定为arm-linu x 交叉编译,默认