VLC编译

http://blog.csdn.net/hdh4638/article/details/7602321

 1 下载代码

ki.videolan.org/VLC_Source_code

git colone git://git.videolan.org/vlc.git

 

2 编译

http://wiki.videolan.org/UnixCompile

A 编译工具检测

 

% sudo apt-get install git libtool build-essential pkg-config autoconf

autoconf 已经是最新的版本了。
git 已经是最新的版本了。
libtool 已经是最新的版本了。
pkg-config 已经是最新的版本了。
将会安装下列额外的软件包:
  dpkg-dev fakeroot g++ g++-4.6 libalgorithm-diff-perl
  libalgorithm-diff-xs-perl libalgorithm-merge-perl libdpkg-perl
  libstdc++6-4.6-dev libtimedate-perl

 B 第三方依赖库下载

 

//下载

$ sudo apt-get build-dep vlc

hdhuang@hdh-UBT:~/Android/git$ sudo apt-get build-dep vlc
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
下列软件包将被【卸载】:
  libjack-jackd2-0
下列【新】软件包将被安装:
  autopoint debhelper dh-apparmor dh-autoreconf dh-buildinfo gettext
  gir1.2-rsvg-2.0 html2text intltool-debian liba52-0.7.4-dev libaa1-dev
  libass-dev libass4 libatk1.0-dev libavc1394-dev libavcodec-dev
  libavformat-dev libavutil-dev libbluray-dev libbluray1
  libcairo-script-interpreter2 libcairo2-dev libcddb2 libcddb2-dev libcdio-dev
  libdc1394-22 libdc1394-22-dev libdca-dev libdca0 libdirac-decoder0
  libdirac-dev libdirac-encoder0 libdvbpsi-dev libdvbpsi7 libdvdnav-dev
  libdvdread-dev libebml-dev libebml3 libenca-dev libenca0 libexpat1-dev
  libfaad-dev libfaad2 libflac-dev libfluidsynth-dev libfluidsynth1
  libfontconfig1-dev libfreetype6-dev libfribidi-dev libgcrypt11-dev
  libgdk-pixbuf2.0-dev libgettextpo0 libggi2 libggi2-dev libgii1 libgii1-dev
  libgnutls-dev libgnutls-openssl27 libgnutlsxx27 libgpg-error-dev
  libgtk2.0-dev libiso9660-8 libiso9660-dev libjack-dev libjack0 libjpeg-dev
  libjpeg-turbo8-dev libjpeg8-dev libkate-dev libkate1 liblircclient-dev
  liblivemedia-dev liblua5.1-0-dev libmad0-dev libmatroska-dev libmatroska5
  libmodplug-dev libmodplug1 libmpcdec-dev libmpcdec6 libmpeg2-4-dev
  libmtp-dev libncursesw5-dev libnotify-dev libogg-dev liborc-0.4-dev
  libp11-kit-dev libpango1.0-dev libpixman-1-dev libpostproc-dev libproxy-dev
  libqt4-designer libqt4-dev libqt4-help libqt4-qt3support libqt4-scripttools
  libqt4-test libraw1394-dev libreadline-dev libreadline6-dev
  libresid-builder-dev libresid-builder0c2a librsvg2-bin librsvg2-dev
  libsamplerate0-dev libschroedinger-dev libsdl-image1.2 libsdl-image1.2-dev
  libshout3-dev libsidplay2 libsidplay2-dev libsmbclient-dev libsndfile1-dev
  libspeex-dev libspeexdsp-dev libsvga1 libsvga1-dev libswscale-dev
  libtag1-dev libtar-dev libtar0 libtasn1-3-dev libtheora-dev libtiff4-dev
  libtiffxx0c2 libtwolame-dev libudev-dev libunistring0 libupnp-dev libupnp3
  libupnp3-dev libusb-1.0-0-dev libv4l-dev libva-dev libva-egl1 libva-glx1
  libva-tpi1 libva-x11-1 libvcdinfo-dev libvcdinfo0 libvorbis-dev
  libx11-xcb-dev libx264-dev libxcb-composite0 libxcb-composite0-dev
  libxcb-keysyms1 libxcb-keysyms1-dev libxcb-randr0 libxcb-randr0-dev
  libxcb-render0-dev libxcb-shape0-dev libxcb-shm0-dev libxcb-xfixes0
  libxcb-xfixes0-dev libxcb-xv0 libxcb-xv0-dev libxcomposite-dev
  libxcursor-dev libxdamage-dev libxfixes-dev libxft-dev libxi-dev
  libxinerama-dev libxml2-dev libxml2-utils libxpm-dev libxrandr-dev
  libxrender-dev libxxf86dga-dev libxxf86vm-dev libzvbi-common libzvbi-dev
  libzvbi0 lua5.1 po-debconf qt4-linguist-tools qt4-qmake
  x11proto-composite-dev x11proto-damage-dev x11proto-fixes-dev
  x11proto-randr-dev x11proto-render-dev x11proto-xf86dga-dev
  x11proto-xf86vidmode-dev x11proto-xinerama-dev
下列软件包将被升级:
  libqt4-dbus libqt4-declarative libqt4-network libqt4-opengl libqt4-script
  libqt4-sql libqt4-sql-sqlite libqt4-svg libqt4-xml libqt4-xmlpatterns
  libqtcore4 libqtgui4 libsmbclient libtasn1-3 libxml2 qdbus
升级了 16 个软件包,新安装了 185 个软件包,要卸载 1 个软件包,有 158 个软件包未被升级。
需要下载 59.2 MB 的软件包。
解压缩后会消耗掉 164 MB 的额外空间。
您希望继续执行吗?[Y/n]y

 

这些软件包下载安装到哪里去了?

第二种方法,先下载依赖库,然后在contril里面编译:

# apt-get install subversion yasm cvs cmake

//编译
% cd contrib
% mkdir native
% cd native
% ../bootstrap
% make

C   编译

 

This is an example of a typical VLC configure line:

//配置

% ./configure --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=/usr/lib/live \
 --enable-caca --enable-skins --enable-skins2 --enable-alsa --enable-qt4 --enable-ncurses
//编译
% make



 D  运行
# ./vlc
^Chdhuang@hdh-UBT:~/Android/git/vlc$ ./vlc
VLC media player 2.1.0-git Rincewind (revision 1.3.0-git-2642-gf47133c)
 

so  easy。
posted @ 2014-07-31 20:59  @菜鸟爱学习@  阅读(865)  评论(0编辑  收藏  举报