1、环境准备
sudo apt-get install autoconf libexpat1-dev
2、先编译expat
dbus需要依赖expat相关库,所以需要先编译expat。
下载地址:
tar xjvf expat-2.2.10.tar.bz2
cd expat-2.2.10/
./configure --prefix=$PWD/tmp --host=arm-linux-gnueabihf CC=arm-linux-gnueabihf-gcc
make
make install
3、编译dbus
下载地址:
tar xjvf dbus-dbus-1.12.tar.bz2
cd dbus-dbus-1.12/
./autogen.sh
./configure --prefix=$PWD/tmp --host=arm-linux-gnueabihf CC=arm-linux-gnueabihf-gcc \
CFLAGS=-I$PWD/../expat-2.2.10/tmp/include \
LDFLAGS=-L$PWD/../expat-2.2.10/tmp/lib
make
make install
阅读(957) | 评论(0) | 转发(0) |