【问题标题】:Error while compiling linphone android when run make运行make时编译linphone android时出错
【发布时间】:2015-07-06 12:56:41
【问题描述】:

我正在为 andriod 编译 linphone。我通过git下载了文件

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

在此之前我在 ~/.bashrc 文件中添加了路径

export PATH=${PATH}:/home/gnome/Desktop/android/android-sdk-linux/tools
export PATH=${PATH}:/home/gnome/Desktop/android/android-sdk-linux/platform-tools
export PATH=${PATH}:/home/gnome/Desktop/android/android-ndk-r10d
export ANDROID_EMULATOR_FORCE_32BIT=true

我还通过转到(窗口 -> 首选项)在 eclipse 中添加了路径。

当我在所有 linphone 文件所在的目录中运行 make 命令时,它一直给我这个错误:

Could not find ndk-build. Please install android NDK.
Could not find android. Please install android SDK.
Makefile:73: *** commands commence before first target.  Stop.

我遇到这个问题已经 4 天了 :(.

【问题讨论】:

    标签: android eclipse android-ndk linphone


    【解决方案1】:

    您必须设置 ANDROID_HOME 环境。

    export ANDROID_HOME=/home/gnome/Desktop/android/android-sdk-linux
    

    【讨论】:

      【解决方案2】:
      1. 转到包含系统文件的文件夹(在 kali sana 中,打开文件夹后单击“计算机”图标)
      2. 现在,追踪您的 NDK 和 SDK 的路径。很可能会通过名为 root 的目录看到。
      3. 然后更正您的~/.bashrc 文件中的路径。一个示例路径可能是 /root/Desktop/...(我为此使用了 kali linux 2.0)

      【讨论】:

        猜你喜欢
        • 2016-10-30
        • 2015-12-29
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2016-09-02
        • 2016-08-30
        • 1970-01-01
        • 2011-12-26
        相关资源
        最近更新 更多