系统相关
首页 > 系统相关> > Linux:交叉编译dbus

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

标签:tmp,tar,dbus,expat,编译,Linux,2.2,arm
来源: https://blog.csdn.net/weixin_44498318/article/details/113056850