Select to view content in your preferred language

QSslSocket not working

10268
6
Jump to solution
01-25-2017 09:45 AM
KirstenStrandjord
Emerging Contributor

I am running Qt 5.7.1 (MSVC 2015, 32 bit) with Qt Creator 4.2.0. I have a problem with QSslSocket. I am getting the following errors:

qt.network.ssl: QSslSocket: cannot call unresolved function SSLv23_client_methodqt.network.ssl: QSslSocket: cannot call unresolved function SSL_CTX_new qt.network.ssl: QSslSocket: cannot call unresolved function SSL_library_init qt.network.ssl: QSslSocket: cannot call unresolved function ERR_get_error qt.network.ssl: QSslSocket: cannot call unresolved function ERR_get_error

I have gone to the following location openssl github and downloaded the zip file. I have moved the "libeay32.dll" and "ssleay32.dll" files to my release directory, and I am still getting these errors. Is there anyone who has gotten the QSslSocket working that can give me steps to get the socket working or has any suggestions? Thanks for any help in advance!

1 Solution

Accepted Solutions
KeithCroteau1
Deactivated User

Hi Kirsten, I was just working through a similar issue yesterday. I am brand new to the QT environment - but notes in the attached PDF solved the issue for me in my development environment (x64). Hope it helps.

View solution in original post

6 Replies
KeithCroteau1
Deactivated User

Hi Kirsten, I was just working through a similar issue yesterday. I am brand new to the QT environment - but notes in the attached PDF solved the issue for me in my development environment (x64). Hope it helps.

KirstenStrandjord
Emerging Contributor

Hi, I tried taking the libeay32.dll and the ssleay32.dll to my C:\Qt\Qt5.7.1\5.7\msvc2015_64\bin folder and it didn't work. I looked at the kit that I am using (Desktop Qt 5.7.1 MSVC2015_64bit) is using the Compiler Microsoft Visual C++ Compiler 14.0 (amd64) . Does your setup look similar?

0 Kudos
KeithCroteau1
Deactivated User

Hi. Yes, it appears to be similar to yours…screenshot below:

0 Kudos
KirstenStrandjord
Emerging Contributor

This worked! Thank you for the help! I am so grateful. 

0 Kudos
WilliamSteichen
Emerging Contributor

This worked for me thank you so much!

0 Kudos
Juan_CarlosColchado_Casas
Emerging Contributor

Thank you for the help! I am so grateful. 

0 Kudos