In which directory should I put the Android NDK?
, ,
$ export ANDROID_NDK_ROOT=/path_to_android_ndk_dir
SWIG PJSIP?!
SWIG PJSIP, , PJSUA.
:
PJSIP. , Windows .zip, Unix ( OS X), .bz2.
pjlib/include/pj/ . ( ) config_site.h.
#define PJ_CONFIG_ANDROID 1
#include <pj/config_site_sample.h>
Cmd Terminal
pjsip ( )
$ cd /path/to/your/pjsip/dir
bash var ANDROID_NDK_ROOT . android ndk.
$ export ANDROID_NDK_ROOT=/path_to_android_ndk_dir (Unix)
SET ANDROID_NDK_ROOT=/path_to_android_ndk_dir (Windows)
armeabi
$ ./configure-android
target arm64-v8a do $ TARGET_ABI=armeabi-v8a ./configure-android --use-ndk-cflags
target armeabi-v7a do $ TARGET_ABI=armeabi-v7a ./configure-android --use-ndk-cflags
target x86 do $ TARGET_ABI=x86 ./configure-android --use-ndk-cflags
$ make dep && make clean && make