leenjewel / openssl_for_ios_and_android

OpenSSL Library for iOS and Android
920 stars 317 forks source link

Compiling libcurl for android64-aarch64 #33

Closed ghost closed 5 years ago

ghost commented 5 years ago

Hi,

I can compile openssl for android-armeabi and android64-aarch64 no problem. Btw I think your documentation is wrong on the homepage:

It reads

sh ./build-openssl4android.sh android64-arm64 #for arm64_v8a

but I think it should read:

sh ./build-openssl4android.sh android64-aarch64 #for arm64_v8a

I can also compile libcurl for android-armeabi but for android64-aarch64 the configuration step errors out. I see errors in the config.log file for libcurl: config.log

I've modified the _shared.sh file as follows:

ANDROID_API=${ANDROID_API:-21}
ARCHS=("android-armeabi" "android64-aarch64")
ABIS=("armeabi-v7a" "arm64-v8a")

And I'm compiling openssl openssl-1.1.0g and libcurl curl-7.56.1 although I do not think this are the cause of this particular problem. I'm also using Android SDK 28 and NDK 14b.

Please let me know what you think.

ghost commented 5 years ago

Turns out the docker container I was running your scripts in where pulling from an upstream docker container that had set some environment variables. This was causing issues. I removed the dependency on the upstream container and everything work.

Great project btw.