在linux上安装FAAC,收到错误

时间:2010-12-01 00:42:45

标签: linux ubuntu ffmpeg video-processing

我正在尝试在linux上安装FAAC。我收到了错误。

我用它来安装。

cd /usr/src
wget http://sourceforge.net/projects/faac/files/faac-src/faac-1.28/faac-1.28.tar.bz2/download
tar -xvjf faac-1.28.tar.bz2
cd faac-1.28
./configure
make
make install

一旦我尝试制作它,我就会收到错误

mpeg4ip.h:126: error: new declaration ‘char* strcasestr(const char*, const char*)’
/usr/include/string.h:369: error: ambiguates old declaration ‘const char* strcasestr(const char*, const char*)’
make[3]: *** [3gp.o] Error 1
make[3]: Leaving directory `/usr/src/faac-1.28/common/mp4v2'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/faac-1.28/common'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/faac-1.28'
make: *** [all] Error 2

我在线阅读,它说它是在干扰某些东西,我必须找到一个文件并进行编辑。

如何修复此安装以便正确安装。

2 个答案:

答案 0 :(得分:36)

从common / mp4v2文件夹中的mpeg4ip.h中删除包含strcasestr的第126行,作为临时解决方法。当glibc的strcasestr(#define _GNU_SOURCE 1)已经包含它时,它似乎没有正确地排除它自己的原型。

顺便说一句:在拥有自己的AAC代码的过程中,ffmpeg是不是因为不再需要faac / faad作为依赖...

答案 1 :(得分:0)

Ubuntu 12.04 - 内核3.5x到3.8.0-32-generic

第1步:

apt-get -y remove gstreamer0.10-plugins-bad
apt-get -y install libfaad-dev libfaac-dev faac faad

第2步:

cd /var/tmp

wget http://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-0.10.23.tar.gz
tar xvfz gst-plugins-bad-0.10.23.tar.gz
cd gst-plugins-bad-0.10.23/
./autogen.sh
./configure

configure: *** Plug-ins with dependencies that will be built:
    decklink
    dvb
    faac
    faad
    fbdevsink
    gsettings
    linsys
    shm
    vcdsrc
    vp8

make

Making all in faac
make[3]: Entering directory `/var/tmp/gst-plugins-bad-0.10.23/ext/faac'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/var/tmp/gst-plugins-bad-0.10.23/ext/faac'

Making all in faad
make[3]: Entering directory `/var/tmp/gst-plugins-bad-0.10.23/ext/faad'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/var/tmp/gst-plugins-bad-0.10.23/ext/faad'

Making all in gsettings

make install

第3步:验证

gst-inspect-0.10 faac | grep Version
  Version:      0.10.21

gst-inspect-0.10 faad | grep Version
  Version:      0.10.23

编辑:deb包

http://labkom.stikom.edu/ubuntu/pool/universe/g/gst-plugins-bad0.10/