OpenSSL for Android support
-
@Unix-One said in OpenSSL for Android support:
The remaining question: is this a known issue? Is there a bug to update openssl support to more recent openssl and android ndk versions?
Checking Qt's source code, you'll find that OpenSSL 1.1.x is not yet supported...
... if (!_q_SSLeay || q_SSLeay() >= 0x10100000L) { // OpenSSL 1.1 has deprecated and removed SSLeay. We consider a failure to // resolve this symbol as a failure to resolve symbols. // The right operand of '||' above is ... a bit of paranoia. delete libs.first; delete libs.second; qCWarning(lcSsl, "Incompatible version of OpenSSL"); return false; } ...
-
OpenSSL 1.1 has a backend in Qt since Qt 5.10 but you have to build Qt by hand in order to use it currently.
-
@Pablo-J-Rogina @SGaist that is good to know - would have been useful information on the instructions page that would potentially save developers a lot of time. I might update the wiki with the basic steps for minimum android packaging and deployment (given I find enough time of course).
Thank you all for your help.
-
@AlfredoC concerning your guide, i have setup a VM so that i could build the apk in ubuntu (i have given up doing it in windows) ubuntu 10.10 runs openssl v 1.1.1. as in your guide says that that wont do, how actually do i use 1.0.2p? can i install it directly? or do i just extract it? im sorry very noob question here.
-
@AlfredoC hint to your blog post: Qt 5.12 now uses NDK r18b
-
@Alfredo Thank you for the blog post but I'm still having trouble, when I get to the "make depend" part it gives me this error:
"GCC, does not understand command line option "-mandroid""
Based on a google search I'm not using the right GCC, im using (x86) and not the android one in the NDK?Im confused as to how to do this properly.
-
have not tried yet, but this looks great: https://github.com/akontsevich/openssl-android-build
-
This one worked like a charm, took 10 min overall.