1. 下载dbus和expat源码
dbus: http://dbus.freedesktop.org/releases/dbus/
expat: http://sourceforge.net/projects/expat/
2. 交叉编译expat
#./configure --host=armv6-rpi-linux-gnueabi --prefix=/opt/Rasp/expat
#make
#make install
3. 交叉编译dbus
#./configure --host=armv6-rpi-linux-gnueabi --prefix=/opt/Rasp/dbus CFLAGS=-I/opt/Rasp/expat/include LDFLAGS=-L/opt/Rasp/expat/lib
#make
#make install
来源:CSDN
作者:奋斗的IT青年
链接:https://blog.csdn.net/Charein/article/details/36634857