交叉编译dbus-1.0.2
时间:2011-04-01 来源:邵国宝
1. 解压
2. 执行
./configure --host=arm-linux --prefix=/root/bluez_install/dbus-1.0.2 CC=arm-linux-gcc --cache-file=arm-linux.cache --without-x
提示没找到XML库
解决办法:
设置环境变量export PKG_CONFIG_PATH=/usr/lib/pkgconfig
3. make
报错:
make[3]: *** [dbus-sysdeps-unix.lo] 错误 1
make[3]:正在离开目录 `/root/桌面/Qt/bluez源/dbus-1.0.2/dbus'
make[2]: *** [all] 错误 2make[2]:正在离开目录 `/root/桌面/Qt/bluez源/dbus-1.0.2/dbus'
make[1]: *** [all-recursive] 错误 1
make[1]:正在离开目录 `/root/桌面/Qt/bluez源/dbus-1.0.2'make: *** [all] 错误 2
解决办法:打开dbus/dbus-sysdeps-unix.c
添加:
struct ucred
{
pid_t pid; /* PID of sending process. */
uid_t uid; /* UID of sending process. */
gid_t gid; /* GID of sending process. */
};
相关阅读 更多 +