因为工作的需要,最近在看编码/解码相关的东西。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: 警告: 从类型为‘mtime_t’的函数调用转换到不匹配的类型‘double’
mod.c:370: 错误: 隐式声明函数‘ModPlug_NumSampl

本文记录了在Ubuntu上编译VLC-1.0.5过程中遇到的问题,包括libmad、libavcodec等库的缺失,以及编译后的运行时错误,如接口模块匹配失败、共享库加载错误等,并提供了相应的解决办法。
最低0.47元/天 解锁文章
1658

被折叠的 条评论
为什么被折叠?



