Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
630 views
in Technique[技术] by (71.8m points)

qt - Unresolved Functions While Working With QSslSocket

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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

On Windows/MinGW you need to copy these files to your exe directory.

C:QtToolsmingw492_32optinlibeay32.dll
C:QtToolsmingw492_32optinssleay32.dll

Or you can copy them to C:QtToolsmingw492_32in 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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...