ubuntu下编译VLC源码

本文详细介绍了如何在Ubuntu操作系统下通过Git克隆VLC源代码、安装依赖包、编译和安装VLC多媒体播放器的过程,并最终在真实设备上成功运行。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

http://blog.youkuaiyun.com/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.youkuaiyun.com/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

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值