编译环境
ubuntu 16.04麒麟amd64,移植目标为三星6818的板子。
编译过程
1、按照我的习惯做一个make.sh,用来编译,内容如下:./configure --host=arm-linux --prefix=/usr/local/dbus-1.0.2-arm CC=~/9dx6818/x6818_linux_160719/buildroot/output/host/usr/bin/arm-cortex_a9-linux-gnueabi-gcc --cache-file=arm-linux.cache --without-x
make
上面的编译选项是网上流行的,但是--host这个选项编译的时候会出现警告,所以这个配置是否完全正确其实还有值得思考的地方,但是我也是拿来主要者,编译过了就再冇精力研究;--prefix这个选项只能配置为绝对路径,执行make install后会将编译成功都拷贝到这个目录;CC选择用于指定交叉编译公交链。
2、执行make.sh编译出错:checking abstract socket namespace... configure: error: cannot run test program while cross compiling
安装和配置pkgconfig:$ sudo apt-get install pkgcon
$ export PKG_CONFIG_PATH=/usr/lib/pkgconfig
$ echo ac_cv_have_abstract_sockets=yes>arm-linux.cache
重新执行make.sh编译。
3、又出现错误:n file included from dbus-sysde