Linux:交叉编译dbus

1、环境准备

sudo apt-get install autoconf libexpat1-dev

2、先编译expat

编译dbus需要依赖expat相关库,所以需要先编译expat。

下载地址:https://github.com/libexpat/libexpat/releases

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

下载地址:https://www.freedesktop.org/wiki/Software/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
上一篇:文本框DataObjectPastingEventHandler无法正常工作


下一篇:caffe学习系列(1):图像数据转换成db(leveldb/lmdb)文件