No description
Find a file
2017-01-31 18:01:54 +01:00
.tx i18n: remove obsolete resource 2016-01-21 10:46:15 +01:00
doc Add recover account 2016-08-12 17:48:38 +02:00
gradle/wrapper Asking permission for device ring tone at the start 2016-10-10 16:37:49 +02:00
jni remove Android.mk info traces to workaround ndk-gdb.py issue with APP_ABI 2016-05-02 14:00:23 +02:00
liblinphone_tester Updated liblinphone + do not use createLinphoneFriend from LinphoneCoreFactory 2017-01-18 10:37:26 +01:00
libs Add bzip un/compress lib 2016-07-26 14:44:08 +02:00
patches update external submodules: 2016-01-04 15:27:15 +01:00
res Add Lime integration 2017-01-31 10:49:06 +01:00
sample license: update FSF address 2016-07-27 17:05:33 +02:00
src Fix set Zrtp when we enable lime 2017-01-31 18:01:54 +01:00
submodules Update submodule 2017-01-31 15:50:25 +01:00
tests Fix testers 2016-11-09 14:40:32 +01:00
.classpath Removed previous xmlrpc lib by the one in liblinphone 2016-07-22 17:44:29 +02:00
.gitignore Updated gitignore 2016-07-25 10:52:46 +02:00
.gitmodules Fix gitmodule 2016-12-06 16:24:14 +01:00
.project add ilbc 2010-06-30 09:54:16 +02:00
AndroidManifest.xml Fix problem of rotation after screen locking 2017-01-23 16:13:55 +01:00
ant.properties Add inapp purchase 2016-08-09 13:22:07 +02:00
bsed.sh Fix bsed script for x86 flavor 2015-07-06 15:54:21 +02:00
build.gradle Asking permission for device ring tone at the start 2016-10-10 16:37:49 +02:00
build.xml Fix compilation with latest android sdk tools 2015-06-18 11:55:23 +02:00
CHANGELOG.md Fix Save dialog on call view after a rotation 2017-01-31 15:49:58 +01:00
check_tools.sh check_tools.sh: fix libtool detection on mac 2016-04-12 09:34:23 +02:00
custom_rules.xml Fixed jar liblinphone SDK 2016-09-02 16:09:54 +02:00
deliver_sdk.sh Updated deliver_sdk script 2012-12-07 12:20:10 +01:00
prepare.py No longer the arm target by default. 2017-01-20 11:58:19 +01:00
README.md Update and rename README to README.md 2016-11-30 15:02:24 +01:00
release.patch Add a check on start of Activity to avoid crash 2016-12-15 11:48:22 +01:00

Linphone is a free VoIP and video softphone based on the SIP protocol.

COMPILATION INSTRUCTIONS

To build liblinphone for Android, you must:

  1. Download the Android sdk (API 23 at least) with platform-tools and tools updated to latest revision, then add both 'tools' and 'platform-tools' folders in your path.

  2. Download the Android ndk (version r11c or 12b) from google and add it to your path (no symlink !!!).

  3. Install yasm, nasm, ant, python, intltoolize, cmake and vim-common.

  • On 64 bits linux systems you'll need the ia32-libs package.
  • With the latest Debian (multiarch), you need this:
    • dpkg --add-architecture i386
    • aptitude update
    • aptitude install libstdc++6:i386 libgcc1:i386 zlib1g:i386 libncurses5:i386
  1. Run ./prepare.py in the top level directory. This will configure the build and generate a Makefile in the top level directory. Some options can be passed to choose what you want to include in the build and the platforms for which you want to build. Use ./prepare.py --help to see what these options are.

  2. Run the Makefile script in the top level directory, make.

  3. (optional) To install the generated apk into a plugged device, run make install.

  4. (optional) To generate a liblinphone SDK zip containing a full jar and native libraries, run make liblinphone-android-sdk

  5. (optional) To generate a libmediastreamer2 SDK zip containing a full jar and native libraries, run make mediastreamer2-sdk

  6. (optional) To generate a signed apk to publish on the Google Play, run make release. Make sure you filled the ant.properties values for version.name, key.store and key.alias in order to correctly sign the generated apk. You also may want to create a file name ant_password.properties with the following:

  • key.store.password=[your_password]
  • key.alias.password=[your_password]

If you don't, the passwords will be asked at the signing phase.

  1. (optional) Once you compiled the libraries succesfully with 'make', you can reduce the compilation time using 'make quick': it will only generate a new APK from java files.

To run the tutorials:

  1. Open the res/values/non_localizable_custom.xml file and change the show_tutorials_instead_of_app to true.

  2. Compile again using make and make install.

  3. Don't forget to put it back to false to run the linphone application normally.

To create an apk with a different package name

You need to edit the custom_rules.xml file:

  1. look for the property named "linphone.package.name" and change it value accordingly
  2. also update the values in the AndroidManifest file where the comment appears
  3. change the package name also in the files: res/xml/syncadapter.xml, res/xml/contacts.xml and res/values/non_localizable_custom where appears
  4. run again the Makefile script by calling "make"

To run the liblinphone test suite on android

Simply run make liblinphone_tester. This will be build everything, generate an apk, and install it on the connected device if any.

You can speed up the compilation by using ccache (compiler cache, see ccache.samba.org). Give the "-DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache" options to the prepare.py script.

TROUBLESHOOTING

If you encounter the following issue:

E/dalvikvm( 2465): dlopen("/data/app-lib/org.linphone-1/liblinphone-armeabi-v7a.so") failed: 
Cannot load library: soinfo_relocate(linker.cpp:975): cannot locate symbol "rand" referenced 
by "liblinphone-armeabi-v7a.so"

It's because you have installed the android-21 platform (which is chosen automatically because it's the most recent) and you deployed the apk on a android < 5 device.

To fix this, in the Makefile, force ANDROID_MOST_RECENT_TARGET=android-19.

If you encounter troubles with the make clean target and you are using the 8e android ndk, the solution can be found here.

If you built the app using eclipse, ensure you ran at least once the make command (see above steps 0 to 3) ! Else you'll have this exceptions:

FATAL EXCEPTION: main
java.lang.ExceptionInInitializerError
...
Caused by: java.lang.UnsatisfiedLinkError: Couldn't load linphone-armeabi-v7a: findLibrary 
returned null

BUILD OPTIONS

The build options are to be passed to the prepare.py script. For example to enable the x264 encoder give the "-DENABLE_X264=YES" to prepare.py.

The available options can be listed with the ./prepare.py --list-features