Ubuntu中编译安装vlc

阅读更多
vlc官方教程:
http://wiki.videolan.org/UnixCompile
git工程
http://wiki.videolan.org/Git

本次安装平台:

    [vmware ubuntu10.04]
    [vlc1.1.7]


1. 下载源码
vlc vlc-1.1.7.tar.bz2:
http://download.videolan.org/pub/videolan/vlc/
live555 live555-lastest.tar.gz
http://www.live555.com/liveMedia/public/
放在指定文件夹

2. 编译安装live555
进入live555-lastest.tar.gz所在文件夹
tar zxvf live555-lastest.tar.gz
cd live
./genMakefiles linux 
make
sudo cp -r live /usr/lib

3. 编译安装所需组件

sudo apt-get build-dep vlc



4. 编译安装vlc
tar jxvf vlc-1.1.7.tar.bz2

cd vlc-1.1.7

./bootstrap  

./configure --enable-x11 --enable-xvideo --disable-gtk --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=/usr/lib/live --enable-caca --enable-skins --enable-skins2 --enable-alsa --disable-kde --enable-qt4 --enable-ncurses --enable-release

./compile

sudo make install 


5. 编译时可能出现的问题
(1)configure: error: Could not find the LUA byte compiler.
sudo apt-get install liblua5.1-0-dev liblua50-dev liblualib50-dev



(2)No package 'xcb-shm' found
sudo apt-get install libx11-xcb-dev libxcb-shm0-dev libxcb-xv0


(3)安装后可能会出现vlc: error while loading shared libraries: libvlc.so.2: cannot open shared object file: No    such file or directory
使用 whereis libvlc.so.2可以查看到当前系统中已经装了libvlc.so.2,
解决:输入:sudo /sbin/ldconfig即可,重新进行配置。

6. 应该用到的开发包
sudo apt-get install build-essentia

sudo apt-get install libhal-dev libdbus-1-dev

sudo apt-get install libmad0-dev

sudo apt-get install libavcodec-dev

sudo apt-get install libavformat-dev

sudo apt-get install libswscale-dev

sudo apt-get install libpostproc-dev

sudo apt-get install liba52-dev

sudo apt-get install libfribidi-dev libqt4-dev

sudo apt-get install libgcrypt-dev

sudo apt-get install  libx11-xcb-dev

sudo apt-get install libxcb1 libxcb1-dev

sudo apt-get install lua4.0 lua5.1

你可能感兴趣的:(ubuntu,vlc)