源码安装vlc播放器

官方网站
ftp://ftp.videolan.org/pub/videolan/
http://www.underbit.com/products/mad
ftp://ftp.mars.org/pub/mpeg/
http://ffmpeg.org/download.html

一.安装编译依赖库
1.lua-devel
root@localhost:~#yum -y install lua-devel
2.libmad
root@localhost:src#wget ftp://ftp.mars.org/pub/mpeg/libmad-0.15.1b.tar.gz
默认安装时会提示不识别的参数,如下,请删除Makefile中的-fforce-mem
gcc: error: unrecognized command line option '-fforce-mem'
root@localhost:~#tar -xvf libmad-0.15.1b -C /usr/local/src
root@localhost:~#cd /usr/local/src/libmad-0.15.1b
root@localhost:libmad-0.15.1b#./configure && make -j4 && make install
3.ffmpeg(libavutil, libavcodec, libavformat, libavdevice, libavfilter, libavresample,     libswscale, libswresample, libpostproc)
root@localhost:~#wget http://ffmpeg.org/releases/ffmpeg-2.7.tar.bz2
root@localhost:~#tar -xvf ffmpeg-2.7.tar.bz2 -C /usr/local/src
root@localhost:~#cd /usr/local/src/ffmpeg-2.7
root@localhost:ffmpeg-2.7#./configure && make -j4 && make install

二.安装vlc
root@localhost:~#wget http://get.videolan.org/vlc/2.2.0/vlc-2.2.0.tar.xz

待续
posted @ 2015-06-30 20:44  李庆喜  阅读(550)  评论(0编辑  收藏  举报