当前位置: 首页 > 工具软件 > faac > 使用案例 >

faac linux,linux下编译faac库

云卓
2023-12-01

编译faac库

下载地址:

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

 类似资料: