在我的机器上编译libfaac的时候 出现问题了 输出如下
../libfaac/.libs/libfaac.a(frame.o):frame.c:(.text+0x1e7): undefined reference to `MaxBitrate‘
../libfaac/.libs/libfaac.a(frame.o):frame.c:(.text+0x60d): undefined reference to `GetSRIndex‘
../libfaac/.libs/libfaac.a(frame.o):frame.c:(.text+0x795): undefined reference to `GetMaxPredSfb‘
../libfaac/.libs/libfaac.a(frame.o):frame.c:(.text+0x7fe): undefined reference to `fft_initialize‘
../libfaac/.libs/libfaac.a(frame.o):frame.c:(.text+0x912): undefined reference to `fft_terminate‘
../libfaac/.libs/libfaac.a(frame.o):frame.c:(.text+0xaac): undefined reference to `GetChannelInfo‘
../libfaac/.libs/libfaac.a(frame.o):frame.c:(.text+0x138f): undefined reference to `MSEncode‘
../libfaac/.libs/libfaac.a(frame.o):frame.c:(.text+0x14f6): undefined reference to `MSReconstruct‘
../libfaac/.libs/libfaac.a(frame.o):frame.c:(.text+0x1637): undefined reference to `MSEncode‘
../libfaac/.libs/libfaac.a(frame.o):frame.c:(.text+0x164b): undefined reference to `MSReconstruct‘
../libfaac/.libs/libfaac.a(frame.o):frame.c:(.text+0x189f): undefined reference to `MSEncode‘
../libfaac/.libs/libfaac.a(frame.o):frame.c:(.text+0x18bb): undefined reference to `MSReconstruct‘
../libfaac/.libs/libfaac.a(psychkni.o):psychkni.c:(.text+0x4f9): undefined reference to `rfft‘
../libfaac/.libs/libfaac.a(filtbank.o):filtbank.c:(.text+0x342): undefined reference to `fft‘
../libfaac/.libs/libfaac.a(filtbank.o):filtbank.c:(.text+0x45e): undefined reference to `fft‘
../libfaac/.libs/libfaac.a(filtbank.o):filtbank.c:(.text+0x6b0): undefined reference to `ffti‘
../libfaac/.libs/libfaac.a(filtbank.o):filtbank.c:(.text+0x74e): undefined reference to `ffti‘
这个是因为原文漏掉一步 原文直接
./configure --host=i686-w64-mingw32 --prefix=/home/haibindev/opensdk --enable-static --disable-shared --with-mp4v2=no
实际上需要在libfaac的目录先运行./bootstrap
这时候如果提示有什么东西没有发现的话 就用sudo apt-get install 安装一下,然后make clean
接着运行上面的configure就能正常 make了
原文:http://www.cnblogs.com/yuandaozhe/p/5783653.html