jasonacox / Build-OpenSSL-cURL

Scripts to build OpenSSL, HTTP/2 (nghttp2) and cURL (libcurl) for MacOS, iOS and tvOS devices (x86_64, armv7, armv7s, arm64, arm64e). Now Supporting Apple Silicon, OpenSSL 3.0.x with TLS 1.3 and Mac Catalyst builds.
MIT License
430 stars 129 forks source link

Android static libraries #35

Open MarcelKlammer opened 4 years ago

MarcelKlammer commented 4 years ago

Since you are so responsive, would it be possible for you to add Android static library scripts as well?

All libs compiled with r21 NDK would be perfect. Most other repositories around are outdated or don't work.

jasonacox commented 4 years ago

Thanks for the kind words! I haven't built any Android libraries but I'll do some research to see what I can do. Please send me any repos that were helpful, even if outdated.

tormentous commented 3 years ago

it has been a year whats the status? This might help https://awesomeopensource.com/project/leenjewel/openssl_for_ios_and_android

jasonacox commented 3 years ago

Thanks @tormentous ! Unfortunately, I have no Android devices to use to test with yet. I'll look at Android Studio to see if can provide enough emulation testing without an actual device to test.

tormentous commented 2 years ago

Thanks @tormentous ! Unfortunately, I have no Android devices to use to test with yet. I'll look at Android Studio to see if can provide enough emulation testing without an actual device to test.

thanks mate! kindly update us for the status. have you started it?

jasonacox commented 2 years ago

Yes, I have discovered that it will require NDK as well as the Android SDK. The process is a bit gross for automation (GUI to install or more complex sequences via command line) to get it all together. I'm working to see if I can get it to work.

Because the build process will be significantly different that what we do for Apple device targets (iOS, macOS, tvOS), I am not going to add Android library generation to this project. I will create a new project targeting Android devices if I am able to get it automated.

tormentous commented 2 years ago

Yes, I have discovered that it will require NDK as well as the Android SDK. The process is a bit gross for automation (GUI to install or more complex sequences via command line) to get it all together. I'm working to see if I can get it to work.

Because the build process will be significantly different that what we do for Apple device targets (iOS, macOS, tvOS), I am not going to add Android library generation to this project. I will create a new project targeting Android devices if I am able to get it automated.

thank you jason! Also, please include “executable outputs” for 32 and 64 bit architectures.

There's a dockerfile https://github.com/nghttp2/nghttp2/blob/master/Dockerfile.android offered by the nghttp2 for android to build an executable, works for arm and arm64 but it fails whenever I configure it for x86 and x86_64 maybe you could try or maybe help me out.