编译vlc for android

文档:

http://wiki.videolan.org/AndroidCompile

可参考

http://www.tidroid.com/article_75.html?replytocom=3

期间遇到的问题:

1.

m4/libtool.m4:67: LT_INIT is expanded from…
m4/libtool.m4:102: AC_PROG_LIBTOOL is expanded from…
configure.ac:191: the top level
autoreconf: configure.ac: adding subdirectory lib to autoreconf
autoreconf: Entering directory `lib’
autoreconf: running: autopoint –force
Can’t exec “autopoint”: 没有那个文件或目录 at /usr/share/autoconf/Autom4te/FileUtils.pm line 345.
autoreconf: failed to run autopoint: 没有那个文件或目录
autoreconf: autopoint is needed because this package uses Gettext
make: *** [.gnutls] 错误 1

解决办法:

安装 autopoint

sudo apt-get install autopoint

2.

./gen-env.sh vlc-android
/bin/sh: ant: Permission denied

Ant工具在最后编译android源码生成apk文件是会用到,所以需要安装。如果是自己手动安装了ant,请在环境变量中配置好ant的path,或者在运行编译之前在命令行执行export PATH=$PATH:/xxx/ant/bin,保证可以在执行编译的命令行中执行ant命令即可。

 

3.使用 ActionBarSherlock

vlc 的android项目中需要使用ActionBarSherlock lib . 用法参考http://note.sdo.com/u/jesse_luo/n/sCPcz~jLs7aMLX0h4001xf 

或README。

原文地址:https://www.cnblogs.com/soniclq/p/2611709.html