Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unresolved Functions While Working With QSslSocket

Tags:

openssl

qt

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?

like image 978
s4eed Avatar asked Jun 01 '12 07:06

s4eed


1 Answers

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.

like image 111
Timmmm Avatar answered Oct 11 '22 22:10

Timmmm