Android Pjsip installation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


Hello Team,

Greetings of the day!

I was trying to generate file using following link:

I am getting confused in few steps and because of that I am not getting success.

Can you please help me with the following questions:

1. I have properly set ANDROID_NDK_ROOT and JAVA_HOME path. But while performing Building and running pjsua2 sample application command, I am getting error like

/home/aanalmehta/Android/Sdk/ndk/18.1.5063045/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin/ld: cannot find -lpj-aarch64-unknown-linux-android
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
Makefile:165: recipe for target 'android/app/src/main/jniLibs/arm64-v8a/' failed
make[1]: *** [android/app/src/main/jniLibs/arm64-v8a/] Error 1
make[1]: Leaving directory '/home/aanalmehta/Documents/Pjsip/pjproject-2.9/pjsip-apps/src/swig/java'
Makefile:27: recipe for target 'all' failed
make: *** [all] Error 1

I am not getting any solution over here.

2. I tried to download latest NDK file from

and now I am getting following error

In file included from /home/aanalmehta/Android/android_ndk/android-ndk-r20/sources/cxx-stl/llvm-libc++/include/type_traits:406:
/home/aanalmehta/Android/android_ndk/android-ndk-r20/sources/cxx-stl/llvm-libc++/include/cstddef:50:9: error: no member named 'ptrdiff_t' in the global namespace
using ::ptrdiff_t;

3. Do I need all four folders - arm64-v8a, armeabi-v7a, x86 and x86_64? If yes then how to generate all four folders? As I am giving

TARGET_ABI=arm64-v8a ./configure-android --use-ndk-cflags --with-ssl=[your_openssl_path]/openssl-1.0.2a

it's only generating arm64-v8a folder inside jniLibs.

4. If I got success in generating .so file then how to use it in my current project. What things need to be taken care?

Your answers will help me a lot.

Thank you for your precious time.

Thanks and regards,

Aanal Mehta

Visit our blog:

pjsip mailing list

[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux