QSslSocket::supportsSsl return false and “qt.network.ssl: No functional TLS backend was found”
-
I use CLion and QT6.2.4/CMake3.24 to develop my project, the path of OpenSSL is correctly configured in cmakelist, but error shows.
my code is:
qDebug() << "OpenSSL supported:" << QSslSocket::supportsSsl();
qDebug() << QSslSocket::supportsSsl() << QSslSocket::sslLibraryBuildVersionString() <<" , "<< QSslSocket::sslLibraryVersionString();
QNetworkAccessManager *manager = new QNetworkAccessManager();
qDebug() << manager->supportedSchemes();
and the output is:
qt.network.ssl: No functional TLS backend was found
false "" , ""
qt.network.ssl: No functional TLS backend was found
QList("file", "qrc", "http", "data")
this is cmakelist.txt about openssl
cmake building has no error, the main cpp has bug.
-
Hi,
Is the path to the OpenSSL libraries part of the PATH environment variable when running your application ?
-
P Pl45m4 referenced this topic on