Build Linphone Android for i.MX6

Document created by AlanZhang Employee on Feb 27, 2013Last modified by Jodi Paul on May 15, 2013
Version 5Show Document
  • View in full screen mode

Linphone is an internet phone or Voice Over IP phone (VoIP).

  • With Linphone you can communicate freely with people over the internet, with voice, video, and text instant messaging.
  • Linphone makes use of the SIP protocol, an open standard for internet telephony. You can use Linphone with any SIP VoIP operator, including our free SIP audio/video service.
  • Linphone is free software (or open-source), you can download and redistribute it freely.
  • Linphone is available for desktop computers: Linux, Windows, Mac OSX, and for mobile phones: Android, iPhone, Blackberry.


Linphone-android is a good example to show the integration of Java code based on Android SDK with native CODEC, network protocols. Not like XBMC-Android that is almost total c++/c project.


Perform the following steps to build a linphone-android project:


1. git clone git:// --recursive

2. sudo apt-get install autoconf automake libtool pkg-config


3. "cd" to the root of "git clone" : cd /home/user/linphne-android // wherver git'ed linphone-android is


4. export PATH=/home/user/android-ndk:$PATH //wherever your android-ndk, android-sdk tools, and platform-tools, and ANT are stored in.

            For example on my PC.

     export PATH=/home/alanz/android-ndk-r8d:/home/alanz/android-sdk-linux/tools:/home/alanz/android-sdk-linux/platform-     tools:/home/alanz/bin/apache-ant-1.8.4/bin:$PATH

            Note: PATH contains the ndk, sdk, and ant.


5. Make sure the network is working, then execute "./" at the linphone-android root


6. Then, execute "/home/alanz/android-ndk-r8d/ndk-build", it will take a while to be finished


7. Modify Makefile as following example, modify it accordingly.






          $(NDK_PATH)/ndk-build ....... (remove -j$(NUMCPUS) by the end of this command line)


8. execute "make", after finish, the apk file can be found under bin/ subdirectory.