2

我认为我们可以建造它。但我在 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.

谁能告诉我解决方案。

4

3 回答 3

6

是的,您可以按照此博客上的分步指南执行此操作

如何使用 Mac OS X 在 Android Studio 上构建 culinphone?

http://culinphone.wordpress.com

这是一步一步的指南。 在 Mac OS X 上设置 Linphone Sdk 如何在 Mac 上的 Android Studio 中构建 Linphone?分步指南:-

必备知识:- Android 工具 Android Studio 一点关于 mac-terminal(shell)

软件要求:- 带有这些工具的 Mac OS-X(您肯定需要这些工具来构建 linphone):-

coreutils, automake, autoconf, libtool, intltool, wget, pkgconfig ,cmake, gmake, yasm, grep, doxygen, ImageMagick, optipng, antlr3

第 1 步:- 关于这些有用的工具,您可以使用此命令安装这些工具

$sudo port install coreutils automake autoconf libtool intltool wget pkgconfig cmake gmake yasm grep doxygen ImageMagick optipng antlr3

第 2 步:-
查看这些说明如何升级 nasm

第 3 步:- 然后install ant键入

brew update     #update if already installed
brew install ant

如果您还没有安装 brew 只需在下面输入命令

它是一个中等大小的下载,需要 5 分钟下载

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

只需遵循涉及安装各种组件的过程即可。如果您已经安装了 brew,请通过执行以下命令确保它是最新的:

brew update

安装后,您只需键入:

brew install ant  

第 4 步:- 现在是安装 libtool 的时候了。要安装 libtool,请运行下面给出的命令

 curl -OL http://ftpmirror.gnu.org/libtool/libtool-2.4.2.tar.gz
 tar -xzf libtool-2.4.2.tar.gz
 cd libtool-2.4.2
 ./configure && make && sudo make install

STEP 5:- 如果您还没有安装这些程序,请下载并安装 下载Android Studio & SDK 下载Android NDK

第 6 步:- 通过运行命令下载 LInphone Android 的 git 存储库

$ sudo git clone git://git.linphone.org/linphone-android.git –recursive

现在一切都已完美配置

第 7 步:- 打开terminalcd into linphone-android

现在,当您进入终端上的目录时,然后检查您PATH of SDK & NDK在 Mac 上安装的运行

$ echo $PATH

如果您看到带有 SDK 和 NDK 位置的路径,那么可以继续跳过以下部分,如果没有,那么您需要在执行 make 和 make install 脚本之前设置 PATH

要设置路径使用: -

$export PATH=/Users/<yourusername>/android-sdks/platform-tools/:/Users//android-sdks/tools/:/Users//Documents/ndk/:/nobackup/local/prog/nasm/bin/:$PATH

就像是export PATH=(Path of your SDK platform tools folder):(Path of your SDK tools folder):(Path of your NDK folder):$PATH

这将设置路径并再次确认运行

$ echo $PATH

现在,如果路径已经设置,您可以简单地运行

$ make

现在将您的设备连接到您的 Mac 并查看 eclipse 是否检测到它。设备连接后运行:

$ make install

现在,如果一切正常:-

构建完成后,现在您可以将其导入 Android Studio。

打开安卓工作室

导入项目(Eclipse、ADT、Gradle 等)> 选择 linphone-android > 确定

于 2015-08-21T02:57:39.813 回答
0

我可以按照此处描述的步骤在 Mac 上构建 limphone:-

Linphone for android 不工作/缺少库

于 2015-02-11T13:25:46.337 回答
0

你肯定需要这些工具来构建 linphone。关于nasm,我遇到了同样的问题。您可以使用该站点来指导您如何升级到更新的 nasm:

说明如何升级 nasm

关于其他有用的工具,您可以使用以下命令安装以下工具:

$sudo port install coreutils automake autoconf libtool intltool wget pkgconfig cmake gmake yasm grep doxygen ImageMagick optipng antlr3

所有这些都可以在 linphone 构建说明 README.md 文件中找到。

于 2015-04-12T22:41:49.500 回答