【发布时间】:2015-11-02 08:59:05
【问题描述】:
我正在尝试从enter link description herehttp://dranger.com/ffmpeg/tutorial01.html 编译教程 01 从这里复制粘贴代码:http://dranger.com/ffmpeg/tutorial01.c 尝试编译(在 linux 上),就像教程说的那样:
gcc -o tutorial01 tutorial01.c -lavformat -lavcodec -lswscale -lz
得到一个错误
: /usr/bin/ld: /tmp/ccIT5t82.o: undefined reference to symbol 'av_malloc@@LIBAVUTIL_51'
/usr/lib/i386-linux-gnu/libavutil.so.51: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
有什么建议吗?
【问题讨论】: