Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Qt - QML Image: TLS initialization failed
Forum Updated to NodeBB v4.3 + New Features

Qt - QML Image: TLS initialization failed

Scheduled Pinned Locked Moved Solved QML and Qt Quick
14 Posts 2 Posters 5.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • SGaistS SGaist

    Hi,

    Please show some patience and allow 24 hours to pass before bumping your thread. People answering here do it on their own time and might not live in the same timezone as you.

    As for your problem, where did you put your OpenSSL libraries exactly ?
    What version of Qt are you using ? (you are showing the Qt Creator about box which is not the same thing=

    KarwanK Offline
    KarwanK Offline
    Karwan
    wrote on last edited by
    #4

    @SGaist first thank you for your reply ,
    i put the libraries ( from C:\OpenSSL-Win32\bin) to the following path:
    C:\Qt\Qt5.12.0\5.12.0\mingw73_64\bin
    C:\Qt\Qt5.12.0\Tools\mingw730_64\bin
    .
    and iam using the last version of Qt which is 5.12 , :)

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #5

      IIRC, Qt 5.12 is built using the OpenSSL 1.1 backend, you should check with that one.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      KarwanK 2 Replies Last reply
      0
      • SGaistS SGaist

        IIRC, Qt 5.12 is built using the OpenSSL 1.1 backend, you should check with that one.

        KarwanK Offline
        KarwanK Offline
        Karwan
        wrote on last edited by
        #6

        @SGaist i tried my best and i've done this but it show the error , any idea ?
        alt text
        ******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
        alt text
        the problem is just openssl :) what i've to do next ?
        ****

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #7

          It looks like you are trying to use a 32bit build of OpenSSL with a 64 bit version of Qt.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          KarwanK 2 Replies Last reply
          0
          • SGaistS SGaist

            IIRC, Qt 5.12 is built using the OpenSSL 1.1 backend, you should check with that one.

            KarwanK Offline
            KarwanK Offline
            Karwan
            wrote on last edited by
            #8

            @SGaist Now the library import have no problem , but still show the error , run qmake , rebuild , nothing happen :(
            alt text

            1 Reply Last reply
            0
            • SGaistS SGaist

              It looks like you are trying to use a 32bit build of OpenSSL with a 64 bit version of Qt.

              KarwanK Offline
              KarwanK Offline
              Karwan
              wrote on last edited by
              #9

              @SGaist can you give link and name of the 64bit version , i've downloaded everything

              1 Reply Last reply
              0
              • SGaistS SGaist

                It looks like you are trying to use a 32bit build of OpenSSL with a 64 bit version of Qt.

                KarwanK Offline
                KarwanK Offline
                Karwan
                wrote on last edited by
                #10

                @SGaist i've downloaded Win64 OpenSSL v1.1.1a - 43MB Installer , and there's no ssleay and libeay library :)

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #11

                  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.

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  KarwanK 1 Reply Last reply
                  0
                  • SGaistS SGaist

                    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.

                    KarwanK Offline
                    KarwanK Offline
                    Karwan
                    wrote on last edited by Karwan
                    #12

                    @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\bin

                    this 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 ?

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #13

                      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.

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      KarwanK 1 Reply Last reply
                      0
                      • SGaistS SGaist

                        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.

                        KarwanK Offline
                        KarwanK Offline
                        Karwan
                        wrote on last edited by
                        #14

                        @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

                        1 Reply Last reply
                        1

                        • Login

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Users
                        • Groups
                        • Search
                        • Get Qt Extensions
                        • Unsolved