网上很多是vlc for android的编译步骤,这边是linux的编译步骤:
https://github.com/videolan/vlc
这里用github下载最新的zip包
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 ./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
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
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.
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
./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