ALP Scratchbox 中的 sndfile 的问题

 

在sbox中编译 pulseaudio,需要libsndfile,于是下载 libsndfile-1.0.21,编译并默认安装(/usr/local/)

但是 pulseaudio, configure 仍然报错,

configure: error: Package requirements ( sndfile >= 1.0.20 ) were not met:

 

问题比较容易找到:

configure 脚本执行 pkg-config --exists --print-errors " sndfile >= 1.0.20 "

找不到 sndfile.pc,

因为它到 /usr/lib/pkgconfig 找,当然找不到

如果 cp /usr/local/lib/pkgconfig/sndfile.pc 到 /usr/lib/pkgconfig/

问题可以解决。

 

 

 

但是

pkg-config --exists --print-errors " sndfile >= 1.0.20 "

 

### error msg

Package sndfile was not found in the pkg-config search path.
Perhaps you should add the directory containing `sndfile.pc'
to the PKG_CONFIG_PATH environment variable
No package 'sndfile' found

###

的错误提示,似乎提示修改环境变量 PKG_CONFIG_PATH 可以帮助找到 pc 文件

 

这个连接 http://blog.csdn.net/bloghome/archive/2008/04/21/2312873.aspx 也是这么说的

 

但是,实际在sbox里面无效,./configure的时候,还是错误

 

唉,先不管了, cp /usr/local/lib/pkgconfig/sndfile.pc /usr/lib/pkgconfig/ 通过再说。

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值