Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
602 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 Reply

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...