《编译faac时出现错误:make[3]: *** [3gp.o] Error 1》要点:
本文介绍了编译faac时出现错误:make[3]: *** [3gp.o] Error 1,希望对您有用。如果有疑问,可以联系我们。
相关主题:服务器常见错误
这里安装的faac是1.28版,注意,若安装faac-1.29.4有如下错误:
make[2]: *** [libfaac_la-aacquant.lo] Error 63
make[2]: Leaving directory `/usr/local/src/faac-1.29.4/libfaac'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/faac-1.29.4'
make: *** [all] Error 2
echo '/usr/local/lib' >> /etc/ld.so.conf.d/local.conf
ldconfig -v
cd /user/local/src
wget http://downloads.sourceforge.net/project/faac/faac-src/faac-1.28/faac-1.28.tar.gz
tar xvf faac-1.28.tar.gz
cd faac-1.28
./configure
make && make install
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