Dbus 配置问题

用户尝试配置Dbus并指定了libxml2的路径,但配置失败,提示找不到expat.h文件和libxml。博主通过更新configure脚本尝试解决问题。

Dbus 配置问题

楼层直达
 

UID:84302

  • 注册时间2009-09-04
  • 最后登录2012-04-01
  • 在线时间25小时
  • 发帖19
  • 搜Ta的帖子
  • 精华0
  • 金钱210
  • 威望31
  • 贡献值0
  • 交易币0
  • 好评度21
访问TA的空间 加好友 用道具
级别: 新手上路
只看楼主 更多操作 楼主   发表于: 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 包含进来了吧!为什么还会出错啊?
高手帮忙解决下!谢谢
本帖最近评分记录: 条评分
 

UID:84302

  • 注册时间2009-09-04
  • 最后登录2012-04-01
  • 在线时间25小时
  • 发帖19
  • 搜Ta的帖子
  • 精华0
  • 金钱210
  • 威望31
  • 贡献值0
  • 交易币0
  • 好评度21
访问TA的空间 加好友 用道具
级别: 新手上路
只看该作者 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 的库和头文件! 谢谢!!
本帖最近评分记录: 条评分
 
 
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值