Build PJSIP for Android on Windows?

I am starting with Android and I have to make a voip application, and after searching, I found that the best open source library for this is PJSIP. I download the following things to create a PJSIP library:

... but I do not know where to start. I checked this link on the official PJSIP website, but I made no progress.

What directory do I need to install Android NDK?

How to use SWIG to create PJSIP ?!

+4
source share
1 answer

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

  1. $ make dep && make clean && make

+3

Source: https://habr.com/ru/post/1616362/


All Articles