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
可以这样写:
-dbus \
-dbus-linked \
-I/usr/local/arm/dbus-1.0.2/include/dbus-1.0 \
-I/usr/local/arm/dbus
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
可以这样写:
-dbus \
-dbus-linked \
-I/usr/local/arm/dbus-1.0.2/include/dbus-1.0 \
-I/usr/local/arm/dbus

这篇博客介绍了如何在AM335x平台下编译dbus-1.0.2源码以及Qt的dbus源码。首先解压并设置环境变量,然后使用configure生成配置文件并进行修改。接着进行编译和安装dbus。随后,针对Qt源码库,指定了编译参数以链接dbus,并展示了遇到的编译错误和解决方法。
最低0.47元/天 解锁文章
1571

被折叠的 条评论
为什么被折叠?



