将Android NDK openssl构建为静态库的步骤

时间:2014-07-09 23:08:13

标签: android android-ndk openssl

我刚刚从AOSP获取了所有源代码,并以递归方式将external / openssl / *复制到myproject / jni / libopenssl /。接下来,我在Android.mk中添加了以下行:

 #build libcrypto.a
 include $(CLEAR_VARS)
 include $(LOCAL_PATH)/libopenssl/Crypto.mk
 ...
 LOCAL_STATIC_LIBRARIES := libcrypto_static 

然而,这会产生一堆错误。

我想知道是否有人有明确的步骤从AOSP构建libcrypto_static。我注意到github上有很多fors用于openssl。但是,我更愿意使用AOSP中的那个,因为它似乎对arm和x86进行了优化。问候。

0 个答案:

没有答案