1.安装依赖包
#sudo apt-get build-dep vlc
#sudo apt-get install libtool build-essential autoconf automake git-core libxcb-shm0-dev libxcb-xv0-dev libxcb-keysyms1-dev libx11-xcb-dev libcppunit-dev python-dev libboost-all-dev libdbus-1-dev libmad0-dev libavcodec-dev libavformat-dev libswscale-dev liba52-dev libxcb1-dev libxcb-shm0-dev libxcb-xv0-dev libx11-xcb-dev libqt4-dev libgcrypt-dev checkinstall nasm yasm libasm-dev
/*sudo apt-get install cmake ffmpeg libcdparanoia-dev libcdio-paranoia-dev libcdio-cdda-dev qt4-dev-tools qt4-qmake*/删除原有安装包:#sudo apt-get remove vlc vlc-data vlc-nox libvlc2 libvlccore2 mozilla-plugin-vlc vlc-plugin-jack vlc-plugin-pulse x264
#sudo apt-get update
2.用Git下载源码
#git clone git://git.videolan.org/vlc.git
3.编译vlc,首先看源目录下的readme和install帮助文件,对编译过程有个了解,然后开始编译:
cd ~/vlc/
./bootstrap
//live555(可选)
#cd ~/vlc/extras
#wget http://www.live555.com/liveMedia/public/live555-latest.tar.gz #tar -xvzf live555-latest.tar.gz
#cd live
#sh genMakefiles linux;make
//x264(可选)
#cd ~/vlc/extras
#git clone git://git.videolan.org/x264.git x264-trunk
#cd x264-trunk; ./configure --prefix=/usr/local/share/vlc/x264; make
//ffmpeg(强制)
#cd vlc/extras
#git clone git://git.videolan.org/ffmpeg.git ffmpeg
#cd ffmpeg
#./configure --prefix=/usr/local/share/vlc/ffmpeg --enable-gpl --enable-pthreads --enable-libmp3lame --enable-libfaac --enable-nonfree
#make
#./configure --prefix=/usr/local/share/vlc --enable-run-as-root --enable-debug --enable-x11 --enable-xvideo --enable-sdl --enable-avcodec --enable-avformat --enable-swscale --enable-mad --enable-libdvbpsi --enable-a52 --enable-libmpeg2 --enable-dvdnav --enable-faad --enable-vorbis --enable-ogg --enable-theora --enable-faac --enable-mkv --enable-freetype --enable-fribidi --enable-speex --enable-flac --enable-live555 --with-live555-tree=~/vlc/extras/live --enable-x264 --with-x264-tree=~/vlc/extras/x264-trunk --with-ffmpeg-mp3lame --with-ffmpeg-faac --enable-caca --enable-skins --enable-skins2 --enable-alsa --enable-qt4 --enable-ncurses --enable-release --disable-nls --disable-optimizations --disable-gtk --disable-kde --disable-lua --disable-postproc --disable-glx --disable-cddax --disable-vcdx
安装时若出现error可用新立得来安装相关依赖包
#make
#make install
参考:
http://wiki.videolan.org/User:J-b
http://forum.ubuntu.com.cn/viewtopic.php?f=74&t=280513&sid=f9df9e80aa0e27a416f4da4f8763745d&start=0