Build openssl library for Android

It is lucky because developers who are working on reSIProcate project created an openssl library  on Android already. In order to integrate this library with reSIProcate we have to pull its source, and build them with ndk-build command.

1. Get openssl-android source code

Open terminal and run this command:

git clone https://github.com/resiprocate/openssl-android.git

2. Build source

Move to the folder contains source code and run ndk-build command:

                                   cd /path/to/openssl-android-source
                                    ndk-build

After building successfully, you will see *.so file in folder obj. These file will be used while building reSIProcate library in next article.

P/S:
  • To setup NDK environment please follow this guide
  • Maybe you will get this error

Screen Shot 2016-03-17 at 2.07.50 AM

To build successfully, open file jni/Application.mk and change NDK_TOOLCHAIN to right version. For example :

Screen Shot 2016-03-17 at 2.14.28 AM

Leave a Reply

Your email address will not be published. Required fields are marked *