No description
Find a file
Sylvain Berfini 71172dc0e0 Fix build.xml
2012-08-02 16:49:35 +02:00
jni Fix for ICS issue with native libs 2012-06-07 09:35:01 +02:00
libs Update support library 2012-07-20 17:17:58 +02:00
patches integrate ffmpeg patch to 2011-09-30 21:31:07 +02:00
res Preview rotate in video call 2012-08-01 17:47:04 +02:00
src/org/linphone Temporary revert 2012-08-02 16:45:09 +02:00
submodules Improved Makafile to auto update linphonecore version 2012-08-02 12:55:57 +02:00
.classpath Merge remote-tracking branch 'newui/newUI' into newUI 2012-07-11 11:53:33 +02:00
.gitignore Updated help messages + manifest + gitignore 2012-06-05 13:46:32 +02:00
.gitmodules add g729 integration 2012-02-17 11:30:39 +01:00
.project add ilbc 2010-06-30 09:54:16 +02:00
AndroidManifest.xml Fix numpad issue in audio call + fix incall notifications 2012-08-02 11:01:21 +02:00
build.xml Fix build.xml 2012-08-02 16:49:35 +02:00
convert.sh Proximity sensor added while in call 2012-08-01 17:25:27 +02:00
default.properties Added blank default.properties 2012-07-11 13:57:27 +02:00
deliver_sdk.sh fix deliver_sdk.sh 2012-03-02 15:35:39 +01:00
Makefile Improved Makafile to auto update linphonecore version 2012-08-02 12:55:57 +02:00
prepare_sources.sh Fix android compilation issue with updated srtp 2012-04-27 17:57:15 +02:00
README Drawable hdpi and mdpi + rotation issue fixed + memory leak fixed 2012-08-01 17:14:02 +02:00

			   LINPHONE for ANDROID
			****************************

To build liblinphone for Android, you must:
0) download the Android sdk with platform-tools >= 13, tools >= 20 and sdk platform >= 16
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


To create an apk with a different package name, you need to use the ant script:
1) first you have to generate first the local.properties file using android sdk
	$ ${my google sdk directory}/tools/android update project --path ${my project path}
2) change inside the build.xml file the value of the property "linphone.package.name"
3) run the ant script
	$ ant debug
4) to install the newly created apk, run the following command
	$ ant installd

Some options can be passed to ndk-build, like "ndk-build SOME_OPTION=SOME_VALUE"

Option Name     |     Possible values                                                                                                   | Default value 
-------------------------------------------------------------------------------------------------------------------------------------------------------
BUILD_X264            0 (don't build x264) or 1 (build x264)										
BUILD_AMRNB           0 (don't build amrnb codec), light (try to use amrnb codec from android), full (build your own amrnb codec)       |     light
BUILD_AMRWB           0 (don't build amrwb codec), 1 (build your own amrwb codec)                                                       |     1
BUILD_GPLV3_ZRTP      0 (don't support ZRTP), 1 (support ZRTP and make the whole program GPLv3)
BUILD_SILK            0 (don't build silk plugin), 1 (build silk) [silk is Skype nonfree patented audio codec]
BUILD_G729            0 (don't build g729 plugin), 1 (build g729) [g729 is nonfree patented audio codec, contact Sipro lab for more details]
BUILD_TUNNEL          0 (don't build tunnel), 1 (build tunnel) [requires a tunnel implementation in submodules/linphone/tunnel]

In order to use ZRTP you also need to define the media_encryption property to
"zrtp" in the sip section of linphonerc file.