linux下编译faac库

编译faac库

下载地址:

http://www.audiocoding.com/downloads.html

tar zxvf faac-1.28.tar.gz

cd faac-1.28/

configure --prefix=/usr

make,出现以下错误:


if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include   -Wall -g -O2 -MT 3gp.o -MD -MP -MF ".deps/3gp.Tpo" -c -o 3gp.o 3gp.cpp; \
 then mv -f ".deps/3gp.Tpo" ".deps/3gp.Po"; else rm -f ".deps/3gp.Tpo"; exit 1; fi
In file included from mp4common.h:29,
                 from 3gp.cpp:28:
mpeg4ip.h:126: error: new declaration ‘char* strcasestr(const char*, const char*)’
/usr/include/string.h:367: error: ambiguates old declaration ‘const char* strcasestr(const char*, const char*)’

make[3]: *** [3gp.o] Error 1
make[3]: Leaving directory `/home/mobley/Tools/lib/faac-1.28/common/mp4v2'

解决方法:

vi common/mp4v2/mpeg4ip.h,

删除126行 char *strcasestr(const char *haystack, const char *needle);

再make,通过。

make install

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值