分类: LINUX
2011-06-23 17:59:39
A.交叉编译D-Bus.
(1).download
[1] dbus-1.2.24.tar.gz
[2].expat-2.0.1.tar.gz
(2).install
[1] .expat
tar zxvf expat-2.0.1.tar.gz
cd expat-2.0.1/
./configure --host=arm-linux --prefix=/home/zhxt/project/expat4arm/ CC=arm-linux-gcc
make;make install
[2] .dbus
tar zxvf dbus-1.2.24.tar.gz
cd dbus-1.2.24
./configure --prefix=/usr/local/dbus/ --host=arm-linux --with-x=no ac_cv_have_abstract_sockets=yes "CC=arm-linux-gcc -I/usr/local/expat/include -L/usr/local/expat/lib"
make && make install
B.交叉编译Qt
<1>. configure with " -dbus " or " -dbus-linked "
<2>. 包含dbus的两个.h文件和一个lib文件, 在lib文件后添加 -ldbus-1,格式如下:
-dbus -I/usr/local/dbus/include/dbus-1.0 -I/usr/local/dbus/lib/dbus-1.0/include -L/usr/local/dbus/lib -ldbus-1
注:在qte-arm configure/make成功后,最好也将tools/qdbus/qdbus编译并安装,编译成功后的qdbus会为ARM下D-Bus的调试工作带来极大的便利。