gpt4 book ai didi

android - 无法为 android 编译 vlc

转载 作者:行者123 更新时间:2023-11-29 20:54:44 24 4
gpt4 key购买 nike

我正在根据 Ubuntu 14.04 上的以下建议为 Android 编译 VLC

https://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.0git checkout tags/0.9.9

我有 Ubuntu 14.04 64 位。

最佳答案

我建议您从那个 master 分支克隆并且 master 中有错误,请尝试从另一个头克隆或使用标签进行概述请看这里:
http://git.videolan.org/?p=vlc-ports/android.git;a=summary

关于android - 无法为 android 编译 vlc,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28097689/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com