ubuntu下编译VLC源码

http://blog.csdn.net/beitiandijun/article/details/9225591
ubuntu下编译VLC源码


分类: 视频处理 2013-07-02 17:33 5761人阅读 评论(0) 收藏 举报
VLC




操作系统选择:
http://old-releases.ubuntu.com/releases/14.04.0/
ubuntu-14.04-desktop-amd64.iso


sudo apt-get install已经安装了freescale的i.MX6Q的android4.2.2/android4.4.2的软件。


本帖子内的软件已经安装。
http://blog.csdn.net/zhoudekuai/article/details/8539432
gst-rtsp-server编译测试




1、从git上获得VLC源代码,当然你要确定你已经安装好了git:
git clone git://git.videolan.org/vlc.git


vlc源码还是挺大的,我下载下来压缩成为tar.gz压缩包,一共是292M。
(2015/11/6 21:06)
版本:VLC media player 3.0.0-git Vetinari (revision 2.2.0-git-5224-ge4695f0)




2、cd vlc
ls
AUTHORS    compat        doc      m4           po      THANKS
autotools  configure.ac  extras   make-alias   README
bin        contrib       include  Makefile.am  share
bindings   COPYING       INSTALL  modules      src
bootstrap  COPYING.LIB   lib      NEWS         test




3、./bootstrap
我在这里遇到一个问题:
./bootstrap


sudo apt-get install gettext;
sudo apt-get install autoconf automake libtool


安装好之后,再试一次:
./bootstrap
root@hlchen-Lenovo-Product:/home/share/mahang/vlc# ./bootstrap
……
configure.ac:27: installing `autotools/missing'
bin/Makefile.am: installing `autotools/depcomp'
autoreconf: Leaving directory `.'
+ rm -f po/Makevars.template
+ rm -f stamp-h*
+ set +x
Successfully bootstrapped


看最开始还是提示说需要安装或者升级gettext,不知道这是啥原因,不管了,反正“Successfully bootstrapped”




4、安装vlc的依赖包:
sudo apt-get build-dep vlc
这也挺大,122M+


rootroot@rootroot-E400:~/wyb/ubuntu_vlc/vlc$ sudo apt-get build-dep vlc
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages have unmet dependencies:
 libfluidsynth-dev : Depends: libfluidsynth1 (= 1.1.6-2) but it is not going to be installed
                     Depends: libjack-dev or
                              libjack-jackd2-dev but it is not going to be installed
E: Build-dependencies for vlc could not be satisfied.
rootroot@rootroot-E400:~/wyb/ubuntu_vlc/vlc$ 
rootroot@rootroot-E400:~/wyb/ubuntu_vlc/vlc$ sudo apt-get install libfluidsynth1=1.1.6-2
rootroot@rootroot-E400:~/wyb/ubuntu_vlc/vlc$ sudo apt-get install libjack-jackd2-dev
rootroot@rootroot-E400:~/wyb/ubuntu_vlc/vlc$ 
rootroot@rootroot-E400:~/wyb/ubuntu_vlc/vlc$ sudo apt-get build-dep vlc




5、编译
./configure
……
checking for GST_APP... no
configure: WARNING: No package 'gstreamer-app-1.0' found. GStreamer modules will not be built.
checking for AVCODEC... no
configure: error: Requested 'libavcodec >= 55.0.0' but version of libavcodec is 54.35.0. Pass --disable-avcodec to ignore this error.
rootroot@rootroot-E400:~/wyb/ubuntu_vlc/vlc$ ./configure --disable-avcodec


make
sudo make install
sudo ldconfig
安装完成。




6、运行(必须在真机运行)
./vlc


sudo apt-get install checkinstall lua50




7、安装
make install 


可以卸载
make uninstall
make distclean

你可能感兴趣的:(ubuntu)