diff --git a/Makefile b/Makefile index 9d2a24d20..4b585126d 100644 --- a/Makefile +++ b/Makefile @@ -24,6 +24,7 @@ LINPHONE_ANDROID_DEBUG_VERSION=$(shell git describe --always) BELLESIP_VERSION_SCRIPT:=cat submodules/belle-sip/configure.ac | grep "AC_INIT(" | sed -e "s/.*belle-sip\]//" | sed -e "s/].*//" | sed -e "s/.*\[//" BELLESIP_VERSION=$(shell $(BELLESIP_VERSION_SCRIPT)) ANDROID_MOST_RECENT_TARGET=$(shell android list target -c | grep android | tail -n1) +#ANDROID_MOST_RECENT_TARGET=android-19 SQLITE_VERSION=3071700 SQLITE_BASENAME=sqlite-amalgamation-$(SQLITE_VERSION) SQLITE_URL=http://www.sqlite.org/2013/$(SQLITE_BASENAME).zip diff --git a/README b/README index 81897a94d..6dfb26d6c 100644 --- a/README +++ b/README @@ -8,7 +8,7 @@ COMPILATION INSTRUCTIONS To build liblinphone for Android, you must: ------------------------------------------- 0) download the Android sdk with platform-tools and tools updated to latest revision (at least API 16 is needed), then add both 'tools' and 'platform-tools' folders in your path. -1) download the Android ndk (=r9d to target devices with Android < 5 or =r10c to target devices with Android >= 5) from google and add it to your path (no symlink !!!). +1) download the Android ndk (=r9d or =r10c) from google and add it to your path (no symlink !!!). 2) install yasm, nasm, curl, ant, rsync and the autotools: autoconf, automake, aclocal, libtoolize, pkgconfig On 64 bits linux systems you'll need the ia32-libs package With the latest Debian (multiarch), you need this: @@ -56,7 +56,8 @@ 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. Use ndk r9 to fix this. +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: https://groups.google.com/forum/?fromgroups=#!topic/android-ndk/3wIbb-h3nDU