How to use openssl libraries in qt cmakelist.txt
-
I have selected openssl while selecting components during the installing of QT Creator.
How to include openssl libraries in cmakelist.txt as i am unable to detect it ?
DO I NEED TO UPDATE THE ENVIRONMENT VARIABLES OF THE SYSTEM ?
Please help me out . -
Hi,
Do you want to use OpenSSL manually in your project ?
@Pawankumar said in How to use openssl libraries in qt cmakelist.txt:
DO I NEED TO UPDATE THE ENVIRONMENT VARIABLES OF THE SYSTEM ?
On a side note, writing phrases all uppercased like that is considered shouting and rude in written language.
-
Hello @SGaist thanks for your reply .
Yes i want to use openssl on windows QT environment . I have tried many solutions for including openssl in my cmakelist.txt .
But it is unable to detect it .
solutions i have tried so far .- Installing openssl.exe on system and including it's path in the cmakelist.txt .
2)Tried compiling openssl with mingw32 .
3)I have also reinstalled QT on windows and while selecting the components there was a option of selecting openssl i have selected it and installed it but i am use it .
Please help me out .
- Installing openssl.exe on system and including it's path in the cmakelist.txt .
-
@Pawankumar
At build time: If you intend to use only the Qt classes for SSL connections then you should not need to directly reference the OpenSSL libraries in your project file at all.At run time:
- During Development. Set your IDE, or equivalent, to include the location of the OpenSSL DLL files in the PATH passed to your executable.
- Deployed. The OpenSSL DLLs would need to be found either beside the application executable or in a location on the system's PATH.
-
@ChrisW67 Thanks for your answer . I have referred to the document
https://wiki.qt.io/Compiling_OpenSSL_with_MinGW but while building project in windows environment . I am getting error that some libraries are not found . Which are of openssl .
Also another approach which i followed is directly installing openssl using it's installer ,it worked but i want to compile it and make it work .Help me out please.