Android ndk Android的LinPhone构建过程

Android ndk Android的LinPhone构建过程,android-ndk,Android Ndk,我正在为android构建Linphone应用程序。我在Ubuntu 11.04操作系统中工作 我遵循自述文件中给出的步骤: 从谷歌下载Android ndk(>=r5c) 安装自动工具:autoconf、automake、aclocal、libtoolize pkgconfig 在顶层目录中运行./prepare_sources.sh脚本。这将下载iLBC源文件并转换VP8项目中的一些程序集文件。 $。/prepare_sources.sh 最后,从linphone android目录中,只需

我正在为android构建Linphone应用程序。我在Ubuntu 11.04操作系统中工作

我遵循自述文件中给出的步骤:

  • 从谷歌下载Android ndk(>=r5c)
  • 安装自动工具:autoconf、automake、aclocal、libtoolize pkgconfig
  • 在顶层目录中运行./prepare_sources.sh脚本。这将下载iLBC源文件并转换VP8项目中的一些程序集文件。
    $。/prepare_sources.sh

  • 最后,从linphone android目录中,只需执行命令:
    $${my google ndk directory}/ndk build

  • 我得到了终端的输出

    StaticLibrary  : libopencoreamr.a 
    Compile arm    : vpx <= vpx_mem.c 
    In file included from jni/..//submodules/externals/build/libvpx/../../libvpx/vpx_mem/vpx_mem.c:18: 
    
    jni/..//submodules/externals/build/libvpx/../../libvpx/vpx_mem/include/vpx_mem_intrnl.h:14:24: error: vpx_config.h: No such file or directory 
    make: *** [obj/local/armeabi-v7a/objs/vpx/vpx_mem/vpx_mem.o] Error 1 
    
    静态库:libopencoreamr.a
    编译arm:vpx仔细检查prepare_sources.sh的输出是否有错误。此阶段的错误可能会导致您描述的错误。

    如果您仍然需要答案

    在ubuntu 11.04中,打开终端,确保您是root用户

    * make sure you have done this: "git clone git://git.linphone.org/linphone-android.git --recursive" //*the --recursive part is very important
    * then do this: apt-get install autoconf automake libtool pkg-config
    * go to your project root: cd/home/user/project //wherver your project is
    * in your project root: export PATH=/home/user/android-ndk:$PATH //wherever your android-ndk is stored in
    * then run ./prepare_sources.sh //in your project root still
    * after that do this: /home/user/android-ndk/ndk-build // in your project root too
    
  • 开放式终端
  • 通过命令git clone下载源代码git://git.linphone.org/linphone-android.git --递归的
  • 通过以下命令转到下载项目的根目录:cd/home/your\u downloaded\u project\u path/
  • 启动命令:./prepare_sources.sh/home/android-ndk-r7b/
  • 通过以下命令转到NDK文件夹的根目录:cd/home/android-NDK-r7b/
  • 激发命令:export NDK\u PROJECT\u PATH=/home/your\u下载的\u PROJECT\u PATH/
  • /ndk_建造清洁
  • /ndk_建筑-i
  • 注意:这里/home/android-ndk-r7b/将是存储下载的ndk的ndk路径


    尝试dis.。如果仍然无法工作,请说明您将得到的错误。

    您必须在执行prepare\u sources时指定ndk的完整路径

    $./prepare_sources.sh /complete/path/to/android-ndk
    
    如果只指定ndk的相对路径,它也会抛出相同的错误


    然后,您可以调用“ndk构建”、“ant调试”,。。。无论您想要什么。

    另外一个关键问题似乎是您必须同时使用NDK的第7版。我还没有遇到这个问题。但是你试过清理和刷新这个项目吗?谢谢winona,我已经编译好了,现在可以运行了。但它无法启动屏幕。调试器在createAndStart方法中的LinphoneManager.class中显示错误。您是否检查该类中的方法?尝试清理和刷新项目?尝试右键单击项目>android工具>修复项目属性。如果情况变得更糟,重新开始源代码?@Winona。。。你知道这个朋友吗??请使用locate命令查找vpx_config.h。我也遇到了同样的问题,我无法在存储库中定位此文件。您好,您是否有某些特殊原因导致您尚未接受答案?请在构建后查看完整的指南。。我们将如何将这个项目导入EclipsePLZ帮助,在这里发布我的查询嗨,Bhavana。我是新来的。有没有关于如何下载最新版本和编译linphone的文档?请给我一个链接。Thanks@GangadharNimbally请点击这个链接。/prepare_sources.sh:当我在ubuntu 14.04中使用时,没有显示这样的文件或目录