openssl android编译

openssl是c写的,官网上也没给出在android下使用的Demo,android源码里已经集成了openssl,在external/路径下的openssl目录中,只能系统编译使用,单个android应用要是使用的话就麻烦点了,需要单独下载编译。

       从github上找到一个:https://github.com/guardianproject/openssl-android

       git下载下来后看README.TXT:

       To build:
cd openssl-android
/path/to/android-ndk-r5b/ndk-build

       对头,要用ndkr5,没办法,去下载一个吧,然后才能编过。

      编译出的东西在openssl-android/libs/armeabi下,libcrypto.so  libssl.so

猜你喜欢

转载自dingran.iteye.com/blog/1775166