因为工作的需要,最近在看编码/解码相关的东西。videoLan是一项开源项目,是极好的研究编码/解码的对象。
于是下载源码,编译。一心以为很快就可以成功,没想到整了一天,都没有正常运行起来。但是编译过程中遇到的问题都记录
了一遍,贴出来给大家分享。
编译选项:
./configure --disable-nls --disable-mozilla --disable-postproc --disable-a52 --disable-qt4 --disable-skins2
问题1.configure: error: Could not find libmad on your system: you may get it from http://www.underbit.com/products/mad/. Alternatively you can use --disable-mad to disable the mad plugin.
问题2.configure: error: Could not find libavcodec or libavutil. Use --disable-avcodec to ignore this error.
解决方法: sudo apt-get install libavcodec-dev
问题3configure: error: Please install GL development package. Alternatively you can also configure with --disable-glx
解决方法:sudo apt-get install mesa-common-dev mesademos libgl1-mesa-dev libglu1-mesa-dev freeglut3-dev
问题4.configure: error: Could not find libmad on your system: you may get it from http://www.underbit.com/products/mad/. Alternatively you can use --disable-mad to disable the mad plugin.
问题5.configure: error: Could not find libpostproc. Use --disable-postproc to ignore this error.
问题6:mod.c: 在函数‘Control’中:
mod.c:321: 警