Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

LinPhone building process for Android

Tags:

android-ndk

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) from google.
  2. Install the autotools: autoconf, automake, aclocal, libtoolize pkgconfig
  3. Run the ./prepare_sources.sh script in the top level directory. This will download iLBC source files and convert some assembly files in VP8 project.
    $ ./prepare_sources.sh

  4. Finally from directory linphone-android, just execute command:
    $ ${my google ndk directory}/ndk-build

I got the output in terminal as

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 

If i solve this error i will be able to compile and run the Linphone application. Some one please help me to solve this..

like image 950
Sathya Chandran Avatar asked Jul 14 '26 01:07

Sathya Chandran


2 Answers

  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.

like image 111
Bhavana Vadodariya Avatar answered Jul 20 '26 07:07

Bhavana Vadodariya


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.

like image 42
Mikel Pascual Avatar answered Jul 20 '26 09:07

Mikel Pascual



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!