【问题标题】:Compile VLC Android fail "You must define ANDROID_NDK, ANDROID_SDK before starting."Compile VLC Android fail "You must define ANDROID_NDK, ANDROID_SDK before start."
【发布时间】:2023-03-11 17:15:01
【问题描述】:

我从page得到最新的代码和一步一步的

$ sh compile.sh -a x84
You must define ANDROID_NDK, ANDROID_SDK before starting.
They must point to your NDK and SDK directories.

我在 Gnome CentOS 7 的终端上指向了 NDK 和 SDK

【问题讨论】:

  • 当你在 shell 上echo $ANDROID_NDK $ANDROID_SDK 会发生什么
  • echo $ANDROID_NDK -> /home/xxxx/Android/Sdk/ndk-bundle echo $ANDROID_SDK -> /home/xxxx/Android/Sdk
  • 您确定这些目录存在吗?您可以在此处查看 compile.sh 源代码,它显示了存在错误的来源:code.videolan.org/videolan/vlc-android/blob/master/compile.shif [ -z "$ANDROID_NDK" -o -z "$ANDROID_SDK" ]; then ... fi
  • 执行ls -al $ANDROID_SDK 和ls -al $ANDROID_NDK 以验证它们是否存在
  • 我运行 ls -al $ANDROID_NDK) 和 ls -al $ANDROID_SDK 列出文件夹中的内容

标签: android libvlc vlc-android


【解决方案1】:

修改您的 compile.sh 脚本以查看变量是否被回显。如果没有,也许您需要在 compile.sh 脚本中对它们进行硬编码。例如,

ANDROID_NDK=/your/path/android-ndk
ANDROID_SDK=/your/path/android-sdk

【讨论】:

  • 我收到错误 autoreconf --install --force --verbose -I m4 ./bootstrap: line 78: autoreconf: command not found vlc: bootstrap failed。我试过stackoverflow.com/questions/24796836/…
  • 我使用的是 CentOS 7 Gnome,如何安装 apt-get 包?我收到错误消息命令:apt-get: not found
  • 也许apt-get install autoconf automake ?
  • 或者,试试这个apt-get install -y build-essential
  • bash: apt-get: command not found... 我需要先安装 apt-get
猜你喜欢
  • 1970-01-01
  • 2019-02-24
  • 1970-01-01
  • 1970-01-01
  • 2021-10-03
  • 2017-08-12
  • 2021-12-30
  • 2021-06-25
  • 2020-09-06
相关资源
最近更新 更多