gcc -DNIGHT demo.c -lalgnight -lavcodec -lavdevice -lavfilter -lavformat -lavutil -lswresample -lswscale -lz -lm -o app
./libffmpeg/lib/libavformat.a(matroskadec.o): In function `matroska_decode_buffer':
/root/ffmpeg-0.11/libavformat/matroskadec.c:1100: undefined reference to `BZ2_bzDecompressInit'
解决办法:
./libffmpeg/lib/libavformat.a(matroskadec.o): In function `matroska_decode_buffer':
/root/ffmpeg-0.11/libavformat/matroskadec.c:1100: undefined reference to `BZ2_bzDecompressInit'
解决办法:
参数后加上-lbz2
-lz 是对于zip的支持
-lm是对于数学函数的支持
转载地址:http://blog.csdn.net/cccallen/article/details/8440153