【玩转VLC】--- ubuntu下编译vlc

1.安装vlc依赖的库

sudo apt-get build-dep vlc
下列【新】软件包将被安装:
  autoconf automake autopoint autotools-dev build-essential debhelper
  dh-apparmor dh-autoreconf dh-buildinfo dpkg-dev g++ gettext gir1.2-rsvg-2.0
  git git-man html2text intltool-debian liba52-0.7.4 liba52-0.7.4-dev
  libaa1-dev libasound2-dev libass-dev libass4 libatk1.0-dev
  libavahi-client-dev libavahi-common-dev libavc1394-dev libbluray-dev
  libbluray1 libcaca-dev libcairo-script-interpreter2 libcairo2-dev libcddb2
  libcddb2-dev libcdio-dev libcrystalhd-dev libcrystalhd3 libdbus-1-dev
  libdc1394-22-dev libdca-dev libdca0 libdirac-decoder0 libdirac-dev
  libdirac-encoder0 libdirectfb-1.2-9 libdirectfb-dev libdirectfb-extra
  libdpkg-perl libdrm-dev libdvbpsi-dev libdvbpsi7 libdvdnav-dev libdvdnav4
  libdvdread-dev libdvdread4 libebml-dev libebml3 libenca-dev libenca0
  liberror-perl libexpat1-dev libfaad-dev libfaad2 libflac-dev
  libfluidsynth-dev libfluidsynth1 libfontconfig1-dev libfreetype6-dev
  libfribidi-dev libgcrypt11-dev libgdk-pixbuf2.0-dev libgettextpo0
  libgl1-mesa-dev libglib2.0-dev libglu1-mesa-dev libgnutls-dev
  libgnutls-openssl27 libgnutlsxx27 libgpg-error-dev libgtk2.0-dev libice-dev
  libiso9660-8 libiso9660-dev libjack-dev libjack0 libjpeg-dev
  libjpeg-turbo8-dev libjpeg8-dev libkate-dev libkate1 libkms1
  liblircclient-dev liblivemedia-dev liblua5.1-0-dev libmad0 libmad0-dev
  libmatroska-dev libmatroska5 libmodplug-dev libmodplug1 libmpcdec-dev
  libmpcdec6 libmpeg2-4 libmpeg2-4-dev libmtp-dev libncurses5-dev
  libncursesw5-dev libnotify-dev libogg-dev libomxil-bellagio-bin
  libomxil-bellagio-dev libomxil-bellagio0 liborc-0.4-dev libp11-kit-dev
  libpango1.0-dev libpcre3-dev libpcrecpp0 libpixman-1-dev libpng12-dev
  libpostproc-dev libproxy-dev libpthread-stubs0 libpthread-stubs0-dev
  libpulse-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 libsdl1.2-dev libshout3-dev libsidplay2 libsidplay2-dev
  libslang2-dev libsm-dev libsmbclient-dev libsndfile1-dev libspeex-dev
  libspeexdsp-dev libsvga1 libsvga1-dev libswscale-dev libsysfs-dev
  libtag1-dev libtar-dev libtar0 libtasn1-3-dev libtheora-dev libtiff4-dev
  libtiffxx0c2 libtimedate-perl libtinfo-dev libtool libts-0.0-0
  libtwolame-dev libtwolame0 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-dev
  libx11-xcb-dev libx264-120 libx264-dev libxau-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 libxcb1-dev
  libxcomposite-dev libxcursor-dev libxdamage-dev libxdmcp-dev libxext-dev
  libxfixes-dev libxft-dev libxi-dev libxinerama-dev libxml2-dev libxml2-utils
  libxpm-dev libxrandr-dev libxrender-dev libxt-dev libzvbi-common libzvbi-dev
  libzvbi0 lua5.1 m4 mesa-common-dev po-debconf qt4-linguist-tools qt4-qmake
  tsconf x11proto-composite-dev x11proto-core-dev x11proto-damage-dev
  x11proto-fixes-dev x11proto-input-dev x11proto-kb-dev x11proto-randr-dev
  x11proto-render-dev x11proto-xext-dev x11proto-xinerama-dev
  xorg-sgml-doctools xtrans-dev zlib1g-dev
下列软件包将被升级:
  libfreetype6 libpulse-mainloop-glib0 libpulse0

2.下载vlc最新代码并解压

tar xvf vlc-2.0.5.tar.xz

3.配置所需参数

可输入  查看配置帮助
./configure --help
直接运行 
./configure 
然后等待有没有错误了。
libvlc configuration
--------------------
version               : 2.0.5
system                : linux
architecture          : i686 mmx sse sse2
optimizations         : yes
vlc aliases           : cvlc rvlc svlc qvlc nvlc

To build vlc and its plugins, type `make', or `./compile' if you like nice colors.
ok了,这样就生成了makefile了。

4.编译

上一步生成的makefile,可直接编译了。
make
漫长的等待吧!
ok了,检查一下劳动成果:
ls ./lib/.libs/ -al
在lib目录下的.libs下,隐藏着编译好的库文件
 libvlc.so -> libvlc.so.5.3.1
 libvlc.so.5 -> libvlc.so.5.3.1
 libvlc.so.5.3.1

5.安装

sudo make install 
通过上面命令把编译好的vlc,安装到系统上。











你可能感兴趣的:(【玩转VLC】,【多媒体技术】,音视频开发)