LinPhone building process for Android

前端 未结 5 1010
滥情空心
滥情空心 2021-02-03 15:52

I am building Linphone application for android. I am working in Ubuntu 11.04 OS.

I Followed the steps given in README file:

  1. Download the Android ndk (>=r5c
相关标签:
5条回答
  • 2021-02-03 16:27
    1. Open terminal
    2. Download source code through command: git clone git://git.linphone.org/linphone-android.git --recursive
    3. Go to root directory of the downloaded project through command: cd /home/your_downloaded_project_path/
    4. Fire the command: ./prepare_sources.sh /home/android-ndk-r7b/
    5. Go to root directory of NDK folder through command: cd /home/android-ndk-r7b/
    6. Fire the command: export NDK_PROJECT_PATH=/home/your_downloaded_project_path/
    7. ./ndk_build clean
    8. ./ndk_build -i

    Note: Here /home/android-ndk-r7b/ will be your NDK path where you have stored downloaded NDK

    Try dis..if still not work mention error what you would get.

    0 讨论(0)
  • 2021-02-03 16:35

    Also a key issue appears to be that you must be using version 7 of the NDK as well

    0 讨论(0)
  • 2021-02-03 16:37

    You have to specify the complete path the ndk when executing prepare_sources

    $./prepare_sources.sh /complete/path/to/android-ndk
    

    If you only specify the relative path to the ndk, it'll also throw the same error.

    Then, you can call 'ndk-build', 'ant debug',... whatever you want to.

    0 讨论(0)
  • 2021-02-03 16:41

    If you still need an answer...

    In your ubuntu 11.04, open your terminal, make sure you are the root user

    * 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
    
    0 讨论(0)
  • 2021-02-03 16:53

    Check the output from prepare_sources.sh carefully for errors. Errors during this phase can lead to the error that you describe.

    0 讨论(0)
提交回复
热议问题