blob: 47362c8d2ebe14dd6b4fe601de612ceb85ab3c60 [file] [log] [blame]
sfl android42fcf7a2012-08-06 15:45:32 -04001This repository is meant for the porting of SFLphone to Android.
2
3
4To build SFLphone and all its dependencies, make sure that Android's NDK and SDK
5are properly installed on your system.
6
7You have also to make sure that the following environment variables are defined:
8
9export ANDROID_NDK=$HOME/path/to/android-ndk-r*b
10export ANDROID_SDK=$HOME/path/to/android-sdk-linux
11
12The path to the required Android's build executable must be also specified:
13
14export PATH=$PATH:$ANDROID_NDK
Emeric Vigier9701e032012-09-12 12:38:01 -040015
16BUILD
17-----
18install swig-2.0 and python-2.7 or later on your system
19
20$ cd sflphone-android
21
22Check that following files are executable:
23 jni/sflphone/daemon/src/JavaJNI2CJNI_Load.py
24 make-swig.sh
25
Emeric Vigierc30b71d2012-09-12 14:51:47 -040026$ ndk-build -j4
Emeric Vigier9701e032012-09-12 12:38:01 -040027
Emeric Vigierc30b71d2012-09-12 14:51:47 -040028Check that no errors occurred. In particular, following files should have been generated by make-swig.sh:
Emeric Vigier9701e032012-09-12 12:38:01 -040029 sflphoneservice_loader.c
30 callmanager_wrap.cpp
31 sflphoneservice.java
32 sflphoneserviceJNI.java
33 ManagerImpl.java
34
Emeric Vigier9701e032012-09-12 12:38:01 -040035Then build android project with your favorite JDK: eclipse or ant.