【发布时间】:2015-08-21 15:15:16
【问题描述】:
我认为我们可以建造它。但我在 Android Studio 上构建它时遇到错误。首先,我下载了 Android Studio 和 NDK。然后将 Android Studio 和 NDK 的 PATH 添加到 PATH 变量中。当我跑步时
./check_tools.sh
我得到输出
Could not find automake. Please install it.
Could not find autoconf. Please install it.
Could not find pkg-config. Please install it.
Could not find ant. Please install it.
Could not find yasm. Please install it.
Could not find wget. Please install it.
Could not find libtoolize. Please install libtool.
Invalid version of nasm: your version does not support elf32 output format. If you have installed nasm, please check that your PATH env variable is set correctly.
Failed to detect required tools, aborting.
但我怀疑我是否需要在 Android Studio 上使用这些工具。当我运行项目时,我得到了错误
java.lang.UnsatisfiedLinkError: Couldn't load linphone-armeabi-v7a: findLibrary returned null.
谁能告诉我解决方案。
【问题讨论】:
-
由于不熟悉该过程,您已经让经典的交叉编译器感到头疼。你最好的实际选择是看看其他人是否已经弄清楚了端口过程。否则,您可能希望在 linux vm 中构建(并定位)它以熟悉正在发生的事情,然后再尝试交叉构建这些自动配置步骤无法运行的目标。
-
我找到了一些 Eclipse 教程,但没有找到 Android Studio 的教程。这不是 Mac 的问题,而是 Android Studio 的问题。
-
eclipse 和 android studio 都没有有意义地参与;这是项目和 ndk 工具链的问题。
-
您发布的实际错误消息发生是因为您的 mac 未配置为构建此项目以在 mac 上运行,但这不是您想要做的。您将需要安装缺少的工具并说服项目为 android 而不是您正在构建的 mac 构建。
-
@ChrisStratton 感谢您的评论。您能告诉我如何下载缺少的工具吗?
标签: android android-ndk linphone