Compiling openssl with Qt MINGW for Android arm

245 Views Asked by At

I'm making an Android application in which I need to use SSL but it is causing problems like

cannot call unresolved function EC_get_builtin_curves

I searched for a solution to this problem and found out that I need to provide SSL library with the application on my own. I don't know how to build OpenSSL for Android arm. Can somebody help? Thanks in advance.

2

There are 2 best solutions below

0
Farhan Haider On

Thanks everyone for suggesting solution. For me the easiest solution was to get pre-built OpenSSL libraries from here and package them in the APK. Now everything works fine.

0
LE Xuan Hung On

i just run into the same trouble. And i spent a lot of time to try to build libcrypto.so and libss.so in windows with Cygwin and nothing works.

Until, i found this script https://github.com/akontsevich/openssl-android-build, it worked perfectly on Ubuntu18.10, Android NDK r18b and openssl 1.0.2o

Hope that saves some time.