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


你可能感兴趣的:(vlc 在ubuntu 14下的linux版本编译)