Solved Qt - QML Image: TLS initialization failed
-
IIRC, Qt 5.12 is built using the OpenSSL 1.1 backend, you should check with that one.
-
@SGaist i tried my best and i've done this but it show the error , any idea ?
******without importing library all pictures works but only my Uploaded Picture not working and some internet image not working and telling me :qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed**
qrc:/main.qml:24:13: QML Image: TLS initialization failed
the problem is just openssl :) what i've to do next ?**** -
It looks like you are trying to use a 32bit build of OpenSSL with a 64 bit version of Qt.
-
@SGaist Now the library import have no problem , but still show the error , run qmake , rebuild , nothing happen :(
-
@SGaist can you give link and name of the 64bit version , i've downloaded everything
-
@SGaist i've downloaded Win64 OpenSSL v1.1.1a - 43MB Installer , and there's no ssleay and libeay library :)
-
Because the name of the libraries have changed. OpenSSL 1.1 is not backward compatible with 1.0.
But in any case, you don't have to link the libraries, Qt dlopens them.
-
@SGaist so i have deleted the linking , now only thing i've added is the openssl.cfg to Environment , so what to do ? copy all new library and put them to
C:\Qt\Qt5.12.0\5.12.0\mingw73_64\bin
C:\Qt\Qt5.12.0\Tools\mingw730_64\binthis will fix the problem ?
Edited:
new names are libcrypto-1_1.dll and libssl-1_1.dll , copied to 2 path , Rebuild , Again same problem :) any idea ? -
Go to the Run part of the Project panel and modify the PATH environment variable by putting the folder where you can find the OpenSSL dlls.
-
@SGaist during 4 months i downloaded everything on http://slproweb.com/products/Win32OpenSSL.html
only one thing i haven't download it , it was this Win64OpenSSL 1.0.2q - Light
by copying the 3 library to bin paths %
Finalyyyyyyy Rebuild and it work !!,
Thank you @SGaist for eeverything :) <3