vlc 在ubuntu 14下的linux版本编译

网上很多是vlc for android的编译步骤,这边是linux的编译步骤:


1 下载vlc for linux:

https://github.com/videolan/vlc

这里用github下载最新的zip包


2 生成makefile 和配置文件

work01@ubuntu:~/vlc_source_debug/vlc-master$ ./bootstrap

报错1:

NOTE: GNU gettext appears to be missing or out-of-date.
Please install or update GNU gettext.
Also check if you have cvs, a dependency of autopoint.
Otherwise, you will not be able to build a source tarball.
==============================================================

generating modules/**/Makefile.am
.................
+ autoreconf --install --force --verbose -I m4
./bootstrap: line 78: autoreconf: command not found


解决:

.1 

sudo apt-get install gettext
sudo apt-get install cvs
<span style="font-family: Arial, Helvetica, sans-serif;">sudo apt-get install autoconf  automake  libtool</span>

work01@ubuntu:~/vlc_source_debug/vlc-master$ ./bootstrap
NOTE: GNU gettext appears to be missing or out-of-date.
Please install or update GNU gettext.
Also check if you have cvs, a dependency of autopoint.
Otherwise, you will not be able to build a source tarball.
==============================================================

generating modules/**/Makefile.am
.................
+ autoreconf --install --force --verbose -I m4
autoreconf: Entering directory `.'
autoreconf: running: true --force
autoreconf: running: aclocal -I m4 --force -I m4
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `autotools'.
libtoolize: copying file `autotools/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
autoreconf: running: /usr/bin/autoconf --include=m4 --force
autoreconf: running: /usr/bin/autoheader --include=m4 --force
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:55: installing 'autotools/compile'
configure.ac:23: installing 'autotools/config.guess'
configure.ac:23: installing 'autotools/config.sub'
configure.ac:27: installing 'autotools/install-sh'
configure.ac:27: installing 'autotools/missing'
parallel-tests: installing 'autotools/test-driver'
bin/Makefile.am: installing 'autotools/depcomp'
autoreconf: Leaving directory `.'
+ rm -f po/Makevars.template
+ rm -f 'stamp-h*'
+ set +x
Successfully bootstrapped


3 配置环境:

work01@ubuntu:~/vlc_source_debug/vlc-master$ ./configure --prefix=/mnt/share/vlc
报错1:
configure: error: Could not find lua. Lua is needed for some interfaces (rc, telnet, http) as well as many other custom scripts. Use --disable-lua to ignore this error.

解决:
sudo apt-get install lua5.1 liblua5.1-dev

报错2:
configure: error: Could not find libmad on your system: you may get it from http://www.underbit.com/products/mad/. Alternatively you can use --disable-mad to disable the mad plugin.

报错3:
configure: error: No package 'libavcodec' found
No package 'libavutil' found. Pass --disable-avcodec to ignore this error.

解决上诉各种丢失开发包问题:
sudo apt-get build-dep vlc 

最后如下:
libvlc configuration
--------------------
version               : 3.0.0-git
system                : linux
architecture          : x86_64 mmx sse sse2
optimizations         : yes
vlc aliases           : cvlc rvlc qvlc svlc nvlc

To build vlc and its plugins, type `make', or `./compile' if you like nice color

4 编译:
./compile


编译结果如下:

bindir="/mnt/share/vlc/bin" transform="s,x,x," program_prefix="" program_suffix="" ./make-alias cvlc dummy
bindir="/mnt/share/vlc/bin" transform="s,x,x," program_prefix="" program_suffix="" ./make-alias rvlc rc
bindir="/mnt/share/vlc/bin" transform="s,x,x," program_prefix="" program_suffix="" ./make-alias qvlc qt4
bindir="/mnt/share/vlc/bin" transform="s,x,x," program_prefix="" program_suffix="" ./make-alias svlc skins2
bindir="/mnt/share/vlc/bin" transform="s,x,x," program_prefix="" program_suffix="" ./make-alias nvlc ncurses


目录在配置的时候已经设定好了:

'



ref:

http://blog.csdn.net/vblittleboy/article/details/12905251


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Franklin

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值