OpenSSL libs not found on compilation
-
Hi
I'm trying to use the Smtp client from morf.lv in my project. I first installed openSSL 64bits and created a CSR. I have also include the path in my environment variables PATH.
I have linked the 2 libs "libeay32" and "ssleay32" to my project, but when I compile it says it cannot find -llibeay32 and -lssleay32.I have included the 2 libs using the Qt tool to be sure there's no syntax error, so the include looks like this in my .pro file:
unix|win32: LIBS += -L$$PWD/C:/OpenSSL-Win64/lib/ -lubsec
INCLUDEPATH += $$PWD/C:/OpenSSL-Win64/include
DEPENDPATH += $$PWD/C:/OpenSSL-Win64/includeunix|win32: LIBS += -L$$PWD/C:/OpenSSL-Win64/lib/ -lssleay32
INCLUDEPATH += $$PWD/C:/OpenSSL-Win64/include
DEPENDPATH += $$PWD/C:/OpenSSL-Win64/includeI'm using Qt5.5 on Windows 7 64 bits.
Does anyone have an idea how to solve it pls?
Thanks -
Hi,
Why do you have $$PWD before C:/ ?
-
Probably not finding the OpenSSL dlls when running. Go to the Run part of the Project panel and edit the PATH environment variable there. Add the path to where the OpenSSL dlls can be found and re-run the application.