• 10662阅读
  • 3回复

Dbus 配置问题 [复制链接]

上一主题 下一主题
离线ketiy2004
 

只看楼主 倒序阅读 楼主  发表于: 2010-06-09
官网说,dbus 依赖库,dependency is an XML parser (either libxml or expat) 其中之一,
我交叉编译了libxml2 ,存放的路径  /usr/local/arm/arm-2007q3/arm-none-linux-gnueabi/libxml2

我写了个 dbus-configure.sh 如下:

#!/bin/sh
echo ac_cv_have_abstract_sockets=yes>>arm-none-linux-gnueabi.cache
./configure \
--prefix=/home/tommy/omap/src/Dbus-build/ \
--host=arm-none-linux-gnueabi \
--target=arm-none-linux-gnueabi \
CC="/usr/local/arm/arm-2007q3/bin/arm-none-linux-gnueabi-gcc \
-I/usr/local/arm/arm-2007q3/arm-none-linux-gnueabi/libxml2/include/libxml2/libxml \
-L/usr/local/arm/arm-2007q3/arm-none-linux-gnueabi/libxml2/lib" \
--with-x=no \
--cache-file=arm-none-linux-gnueabi.cache \
av_cv_have_abstract_sockets=yes

echo "Dbus-configure end"

配置出错,提示为checking for XML_ParserCreate_MM in -lexpat... no
configure: error: Could not find expat.h, check config.log for failed attempts

我这样的话,应该有把libxml2 包含进来了吧!为什么还会出错啊?
高手帮忙解决下!谢谢
离线ketiy2004

只看该作者 1楼 发表于: 2010-06-09
#!/bin/sh
echo ac_cv_have_abstract_sockets=yes>>arm-none-linux-gnueabi.cache
./configure \
--prefix=/home/tommy/omap/src/Dbus-build/ \
--host=arm-none-linux-gnueabi \
--target=arm-none-linux-gnueabi \
CC="/usr/local/arm/arm-2007q3/bin/arm-none-linux-gnueabi-gcc \
-I/usr/local/arm/arm-2007q3/arm-none-linux-gnueabi/libxml2/include \
-L/usr/local/arm/arm-2007q3/arm-none-linux-gnueabi/libxml2/lib" \
--with-x=no \
--with-xml=libxml \
--cache-file=arm-none-linux-gnueabi.cache \
av_cv_have_bstract_sockets=yes
echo "Dbus-configure end"

这样配置,提示出错
checking for XML_ParserCreate_MM in -lexpat... no
checking for pkg-config... /usr/bin/pkg-config
checking for libxml-2.0 >= 2.6.0... configure: error: Explicitly requested libxml but libxml not found
这样应该比较明确是,libxml 的库找不到了吧!  
请教下,要怎么包进来之前交叉编译好的libxml2 的库和头文件! 谢谢!!
离线rr_tw
只看该作者 2楼 发表于: 2010-06-09
Re:Dbus 配置問題
依我之前的经验,dbus在embedded平台是没有提供支援的...
所以后来改采别种方式來做IPC

你可能要考慮別的方向,我已經走了一個月的冤枉路啊
中華民族,中華聯邦,這主意如何?
离线ketiy2004

只看该作者 3楼 发表于: 2010-06-09
谢谢楼上回复!

我参考了 http://www.qtcn.org/bbs/read.php?tid=22305&keyword=dbus
的帖子,按照他们的说法,好像是可以支持的!

我会认真的看下资料的!

那请问下,还有其他方式 让UI 跟其他应用程序通信的 IPC 么?
快速回复
限100 字节
 
上一个 下一个