AM335x下dbus-1.0.2源码ARM编译
1.解压:
tar zxvf dbus-1.0.2.tar.gz
2.设置环境变量:
export PKG_CONFIG_PATH=/usr/share/pkgconfi
echo ac_cv_have_abstract_sockets=yes>arm-linux.cache
3.生成配置文件
./configure --host=arm-linux --prefix=/usr/local/arm/dbus-1.0.2 CC=arm-arago-linux-gnueabi-gcc --cache-file=arm-linux.cache --without-x
4.修改程序
vi 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. */
};
5.编译:make
6.安装:make install
-----------------------下面是Qt dbus源码编译--------------------------
1.进入Qt源码库更改:
-dbus -dbus-linked -I/usr/local/arm/dbus-1.0.2/include/dbus-1.0 -I/usr/local/arm/dbus-1.0.2/lib/dbus-1.0/include -L/usr/local/arm/dbus-1.0.2/lib -ldbus-1 -lpthread -lrt
可以这样写ÿ
1.解压:
tar zxvf dbus-1.0.2.tar.gz
2.设置环境变量:
export PKG_CONFIG_PATH=/usr/share/pkgconfi
echo ac_cv_have_abstract_sockets=yes>arm-linux.cache
3.生成配置文件
./configure --host=arm-linux --prefix=/usr/local/arm/dbus-1.0.2 CC=arm-arago-linux-gnueabi-gcc --cache-file=arm-linux.cache --without-x
4.修改程序
vi 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. */
};
5.编译:make
6.安装:make install
-----------------------下面是Qt dbus源码编译--------------------------
1.进入Qt源码库更改:
-dbus -dbus-linked -I/usr/local/arm/dbus-1.0.2/include/dbus-1.0 -I/usr/local/arm/dbus-1.0.2/lib/dbus-1.0/include -L/usr/local/arm/dbus-1.0.2/lib -ldbus-1 -lpthread -lrt
可以这样写ÿ