Building OpenSSL on Android NDK

六月ゝ 毕业季﹏ 提交于 2019-12-04 11:15:58

问题


I want to use DTLS (on OpenSSL) using JNI on Android 2.1/2.2.

Can someone help me get started (tutorials, howto, pointers etc) with building OpenSSL for Android (2.1/2.2) using the Android NDK?

Anything important that I should be aware of before doing it.

Thanks.


回答1:


I guess you don't need help with basic building of programs and OpenSSL.

For specifics of Android and OpenSSL, take a look at Fries's GitHub repository called android-external-openssl.

Take a look especially at README located here: http://github.com/fries/android-external-openssl/blob/master/README.android

There you have step by step instructions on how to build OpenSSL on Android.




回答2:


I've just finished a new fork of the current official Android openssl and got it building with ndk-build from NDKr5b. I tried to make it as easy as possible to build. It doesn't build the ARMv4 assembly stuff yet, it was failing, so any help with that would be most appreciated. Here's the git repo:

https://github.com/eighthave/openssl-android

just run ndk-build in openssl-android, and you should have libs/armeabi/libcrypto.so and libs/armeabi/libssl.so

EDIT: There is a new link for the latest version of this project:

https://github.com/guardianproject/openssl-android




回答3:


1.0.1s OpenSSL NDK, building it now, after received warning from Google. Here You go,

https://github.com/edwardlujunneng/openssl_android_build

It's not my repository, but I found it useful for anyone who will some day come here and look for it.



来源:https://stackoverflow.com/questions/2952572/building-openssl-on-android-ndk

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!