首页| 论坛| 消息

标题:Dbus 配置问题
作者:ketiy2004
日期:2010-06-09 09:38
内容:

官网说,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 包含进来了吧!为什么还会出错啊?
高手帮忙解决下!谢谢


#1 [ketiy2004 06-09 14:43]
#!/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 的库和头文件! 谢谢!!
#2 Re:Dbus 配置問題 [rr_tw 06-09 14:45]
依我之前的经验,dbus在embedded平台是没有提供支援的...
所以后来改采别种方式來做IPC
你可能要考慮別的方向,我已經走了一個月的冤枉路啊
#3 [ketiy2004 06-09 14:51]
谢谢楼上回复!
我参考了 http://www.qtcn.org/bbs/read.php?tid=22305&keyword=dbus
的帖子,按照他们的说法,好像是可以支持的!
我会认真的看下资料的!
那请问下,还有其他方式 让UI 跟其他应用程序通信的 IPC 么?

回复 发表
主题 版块