Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Using openssl toolkit included in Qt 5.12.4
I want to use the openssl toolkit, which is in Qt 5.12.4 included, in my qt project, to compile the required libs for linux, android, windows.
How do I use this toolkit?
Thank you for your help.
Your question is not clear. Do you mean you want to be able to use, for example, QNetworkAccessManager with SSL enabled endpoints ?
koahnig last edited by
openssl toolkit is not part of Qt 5.12.4 since you install it separately. The libs are generic for different Qt lib versions. You can link as usual to your application (e.g. LIBS parameter in .pro https://doc.qt.io/qt-5/qmake-variable-reference.html#libs )
At least that is what I see under windows. In linux distros I guess it is the same or you have toinstall openssl libs separately.
For Android it depends where you are doing your compilation. If you are not compiling on an Android device you are basically doing a cross-compile. Therefore, you probably need to cross-compile openssl libs with the appropriate toolchain.
I want to cross compile for android und windows on my linux mint. So I think I can add the source code of the openssl toolkit directly to my qt project as subproject. So I don't have to cross compile the openssl libs extra.
Here you have the instructions for building OpenSSL for Android and use it in a Qt application.
As for Windows, the OpenSSL project links to several sources of pre-built version available for the various compilers available on Windows.
Ok. Now it works in android.