I tried to run a simple program that is written with Qt and uses QSslSocket.
I'm running this program on a Ubuntu 12.04 machine with OpenSSL installed.
But I got the following errors:
QSslSocket: cannot call unresolved function SSLv3_client_method
QSslSocket: cannot call unresolved function SSL_CTX_new
QSslSocket: cannot call unresolved function SSL_library_init
QSslSocket: cannot call unresolved function ERR_get_error
How can I fix these errors?
On Windows/MinGW you need to copy these files to your exe directory.
C:\Qt\Tools\mingw492_32\opt\bin\libeay32.dll
C:\Qt\Tools\mingw492_32\opt\bin\ssleay32.dll
Or you can copy them to C:\Qt\Tools\mingw492_32\bin
if you want it to work with all your apps. Obviously you need to distribute them with your program.
You actually don't need to add QT += network
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With