ffmpeg 程序编译问题

QQ286540610 2012-11-09 05:38:06

环境ubuntu11.10
最新ffmpeg代码
svn co svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
./configure --enable-shared --enable-pthreads --disable-yasm
make && make install
安装了zlib1g-dev,libbz2-dev
编译测试程序:

#include "libavformat/avformat.h"
#include "libavcodec/avcodec.h"
#include "libavutil/avutil.h"
#include "stdio.h"
int main(int argc, char* argv[])
{
printf("going to av_register_all\n");
av_register_all();
return 0;
}



gcc -o ffmpeg_test ./ffmpeg_test.c -lavformat -lavcodec -lavutil -lz -lm -lpthread -lbz2

出现大量未定义错误,如下:
/usr/local/lib/libavcodec.a(alsdec.o): In function `decode_frame':
/home/cv/code_bank/ffmpeg/libavcodec/alsdec.c:1453: undefined reference to `av_get_bits_per_sample_fmt'
/usr/local/lib/libavcodec.a(alsdec.o): In function `decode_init':
/home/cv/code_bank/ffmpeg/libavcodec/alsdec.c:1716: undefined reference to `av_get_bits_per_sample_fmt'
/usr/local/lib/libavcodec.a(bink.o): In function `decode_init':
...
collect2: ld 返回 1

请问有哪位兄弟知道是怎么回事?
怎么解决?

谢谢!


...全文
184 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
sky123123 2012-11-15
  • 打赏
  • 举报
回复
QQ286540610 2012-11-12
  • 打赏
  • 举报
回复
安装了yasm包,问题神奇解决。 原因未明。

2,543

社区成员

发帖
与我相关
我的任务
社区描述
专题开发/技术/项目 多媒体/流媒体开发
社区管理员
  • 多媒体/流媒体开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧