我根据Ubuntu 14.04的以下建议
编译VLC for Androidhttps://wiki.videolan.org/AndroidCompile
export ANDROID_SDK=/home/user/my/tools/android-sdk
export ANDROID_NDK=/home/user/my/tools/android-ndk-r9c
export PATH=$PATH:$ANDROID_SDK/platform-tools:$ANDROID_SDK/tools
export ANDROID_ABI=armeabi-v7a
export NO_FPU=0
git clone git://git.videolan.org/vlc-ports/android.git
sh compile.sh
但我收到了以下错误
gcc -std=gnu99 -I. -g -O2 -MT freading.o -MD -MP -MF .deps/freading.Tpo -c -o freading.o freading.c
gcc -std=gnu99 -I. -g -O2 -MT gl_list.o -MD -MP -MF .deps/gl_list.Tpo -c -o gl_list.o gl_list.c
mv -f .deps/gl_list.Tpo .deps/gl_list.Po
In file included from clean-temp.h:22:0,
from clean-temp.c:23:
./stdio.h:477:1: error: 'gets' undeclared here (not in a function)
_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
^
gcc -std=gnu99 -I. -g -O2 -MT localcharset.o -MD -MP -MF .deps/localcharset.Tpo -c -o localcharset.o localcharset.c
In file included from freadahead.h:18:0,
from freadahead.c:20:
./stdio.h:477:1: error: 'gets' undeclared here (not in a function)
_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
^
In file included from freading.h:18:0,
from freading.c:20:
./stdio.h:477:1: error: 'gets' undeclared here (not in a function)
_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
^
make[4]: *** [freading.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: *** [freadahead.o] Error 1
我唯一没有尝试的是更新NDK或切换到CrystaX NDK。
PS 我有NDK r9(正如在项目页面上建议的那样)但是在编译失败后我得到了最新的r10d和同样的问题。
我git checkout tags/1.0.0
和git checkout tags/0.9.9
。
我有64位的Ubuntu 14.04。
答案 0 :(得分:2)
我建议您从该主分支进行克隆,并且主服务器中存在错误,尝试从其他负责人克隆或使用标记进行概述,请查看此处:
http://git.videolan.org/?p=vlc-ports/android.git;a=summary