linux交叉编译Windows版本的ffmpeg

主要参考http://www.cnblogs.com/haibindev/archive/2011/12/01/2270126.html

在我的机器上编译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了

转载于:https://www.cnblogs.com/yuandaozhe/p/5783653.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值