Include openssl source in qt project
-
Hi,
I want to include the openssl source in my qmake qt project. The project should compile the openssl libraries at compile time.
I have to crosscompile my project for android and windows. On both system I will get problems with missing openssl libraries, so I want to include the sources direct in my qt project.Thank you for your help.
BR
martin -
there is no question in your post...and please don't ask "how do I include ssl source in my project for all my platforms?" Have you googled relevant topics? there should be much already online addressing how to compile or link with openssl.
-
Hi,
I want to include the openssl source in my qmake qt project. The project should compile the openssl libraries at compile time.
I have to crosscompile my project for android and windows. On both system I will get problems with missing openssl libraries, so I want to include the sources direct in my qt project.Thank you for your help.
BR
martin@msauer75 You should use subdirs project structure like https://riptutorial.com/qt/example/16535/subdirs-example and put OpenSSL as subdir generating a lib which is then referenced in places.
-
there is no question in your post...and please don't ask "how do I include ssl source in my project for all my platforms?" Have you googled relevant topics? there should be much already online addressing how to compile or link with openssl.
Sorry for the bad post. I searched on google, but I can't find postings which are solved my problem.
-
Upon re-reading your post I think you would do better to separate the tasks out as
- building/installing ssl on the target platform
- building it for cross compile on the dev host
- and then linking against the cross compiled libs in your qt project.
Trying to build a cross compiled ssl packaged on every qt build seems friviluos and overly complex.
https://stackoverflow.com/questions/14681012/how-to-include-openssl-in-a-qt-project should help with step 3.
-
Upon re-reading your post I think you would do better to separate the tasks out as
- building/installing ssl on the target platform
- building it for cross compile on the dev host
- and then linking against the cross compiled libs in your qt project.
Trying to build a cross compiled ssl packaged on every qt build seems friviluos and overly complex.
https://stackoverflow.com/questions/14681012/how-to-include-openssl-in-a-qt-project should help with step 3.
@Kent-Dorfman
In Qt 5.12.4 is openssl 1.1.1 included. Do you know, how I use this version or compile the libs?