Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. Is it possible to have "Best of both worlds" within Qt versions regarding modules?
Forum Updated to NodeBB v4.3 + New Features

Is it possible to have "Best of both worlds" within Qt versions regarding modules?

Scheduled Pinned Locked Moved Solved Qt 6
25 Posts 5 Posters 4.5k Views 2 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.
  • K KroMignon
    3 Aug 2021, 13:04

    @Yina said in Is it possible to have "Best of both worlds" within Qt versions regarding modules?:

    qt.network.ssl: No functional TLS backend was found, qt.network.ssl: No TLS backend is available.

    Just for testing purpose, could you add "C:\Qt\Tools\OpenSSL\Win_x64\bin" the PATH and the try to start your application?
    Do this work?

    Y Offline
    Y Offline
    Yina
    wrote on 3 Aug 2021, 13:20 last edited by
    #16

    @KroMignon said in Is it possible to have "Best of both worlds" within Qt versions regarding modules?:

    hello

    I did that but the thing is it always works in the qt creator but if I make an executable is won't work anymore, so I made an executable via windeployqt.exe with "C:\Qt\Tools\OpenSSL\Win_x64\bin" added through the path and it still does not work.And I still get the same errors.The application starts but I can't do an HTTPS request.

    kind regards
    Yina

    K 1 Reply Last reply 3 Aug 2021, 13:24
    0
    • Y Yina
      3 Aug 2021, 13:20

      @KroMignon said in Is it possible to have "Best of both worlds" within Qt versions regarding modules?:

      hello

      I did that but the thing is it always works in the qt creator but if I make an executable is won't work anymore, so I made an executable via windeployqt.exe with "C:\Qt\Tools\OpenSSL\Win_x64\bin" added through the path and it still does not work.And I still get the same errors.The application starts but I can't do an HTTPS request.

      kind regards
      Yina

      K Offline
      K Offline
      KroMignon
      wrote on 3 Aug 2021, 13:24 last edited by
      #17

      @Yina said in Is it possible to have "Best of both worlds" within Qt versions regarding modules?:

      hello
      I did that but the thing is it always works in the qt creator but if I make an executable is won't work anymore, so I made an executable via windeployqt.exe with "C:\Qt\Tools\OpenSSL\Win_x64\bin" added through the path and it still does not work.And I still get the same errors.The application starts but I can't do an HTTPS request.
      kind regards
      Yina

      Could you add some debug information to help to understand what's happening:

      qDebug() << "SSL support:" << QSslSocket::supportSsl();
      qDebug() << "SSL version required:" << QSslSocket::sslLibraryBuildVersionString();
      qDebug() << "SSL version found:" << QSslSocket::sslLibraryVersionString();
      

      It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

      1 Reply Last reply
      1
      • Y Offline
        Y Offline
        Yina
        wrote on 3 Aug 2021, 13:31 last edited by
        #18

        @KroMignon said in Is it possible to have "Best of both worlds" within Qt versions regarding modules?:

        Hello

        //executable the thing I want that works
        SSL support: false
        SSL version required: ""
        SSL version found: ""

        //qtCreator so not the executable
        SSL support: true
        SSL version required: "OpenSSL 1.1.1k 25 Mar 2021"
        SSL version found: "OpenSSL 1.1.1k 25 Mar 2021"

        Kind regards
        Yina

        K 1 Reply Last reply 3 Aug 2021, 13:41
        0
        • Y Yina
          3 Aug 2021, 13:31

          @KroMignon said in Is it possible to have "Best of both worlds" within Qt versions regarding modules?:

          Hello

          //executable the thing I want that works
          SSL support: false
          SSL version required: ""
          SSL version found: ""

          //qtCreator so not the executable
          SSL support: true
          SSL version required: "OpenSSL 1.1.1k 25 Mar 2021"
          SSL version found: "OpenSSL 1.1.1k 25 Mar 2021"

          Kind regards
          Yina

          K Offline
          K Offline
          KroMignon
          wrote on 3 Aug 2021, 13:41 last edited by KroMignon 8 Mar 2021, 13:42
          #19

          @Yina I think I've got it!

          you also have to copy capi.dll and padlock.dll from the lib\engines-1_1 sub-directory!

          It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

          Y 1 Reply Last reply 3 Aug 2021, 13:56
          0
          • K KroMignon
            3 Aug 2021, 13:41

            @Yina I think I've got it!

            you also have to copy capi.dll and padlock.dll from the lib\engines-1_1 sub-directory!

            Y Offline
            Y Offline
            Yina
            wrote on 3 Aug 2021, 13:56 last edited by
            #20

            @KroMignon

            sadly that didn't seem to work, it still is the exact same result as before.
            I tried adding in the dll's just in the folder of the executable and I also tried adding the enitre folder + the .lib files in the executable folder so these files:
            819eb0a1-9a02-4d3f-bbf4-3ebbb01a7f11-image.png

            this is the result when everything is added:
            608c09d4-bb9e-4629-9899-8e39a0a3d33a-image.png

            but the result didn't change.

            kind regards
            Yina

            K 1 Reply Last reply 3 Aug 2021, 14:11
            0
            • Y Yina
              3 Aug 2021, 13:56

              @KroMignon

              sadly that didn't seem to work, it still is the exact same result as before.
              I tried adding in the dll's just in the folder of the executable and I also tried adding the enitre folder + the .lib files in the executable folder so these files:
              819eb0a1-9a02-4d3f-bbf4-3ebbb01a7f11-image.png

              this is the result when everything is added:
              608c09d4-bb9e-4629-9899-8e39a0a3d33a-image.png

              but the result didn't change.

              kind regards
              Yina

              K Offline
              K Offline
              KroMignon
              wrote on 3 Aug 2021, 14:11 last edited by
              #21

              @Yina said in Is it possible to have "Best of both worlds" within Qt versions regarding modules?:

              sadly that didn't seem to work, it still is the exact same result as before.
              I tried adding in the dll's just in the folder of the executable and I also tried adding the enitre folder + the .lib files in the executable folder so these files:

              lib files are not relevant, they are required for build dependencies.
              Hmm, very strange, cannot figure out what's going wrong for you...
              Sorry, maybe someone else got an idea?

              It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

              Y 1 Reply Last reply 3 Aug 2021, 14:14
              0
              • K KroMignon
                3 Aug 2021, 14:11

                @Yina said in Is it possible to have "Best of both worlds" within Qt versions regarding modules?:

                sadly that didn't seem to work, it still is the exact same result as before.
                I tried adding in the dll's just in the folder of the executable and I also tried adding the enitre folder + the .lib files in the executable folder so these files:

                lib files are not relevant, they are required for build dependencies.
                Hmm, very strange, cannot figure out what's going wrong for you...
                Sorry, maybe someone else got an idea?

                Y Offline
                Y Offline
                Yina
                wrote on 3 Aug 2021, 14:14 last edited by Yina 8 May 2021, 12:41
                #22

                @KroMignon
                Thank you for your time :)

                A 1 Reply Last reply 3 Aug 2021, 14:25
                0
                • Y Yina
                  3 Aug 2021, 14:14

                  @KroMignon
                  Thank you for your time :)

                  A Offline
                  A Offline
                  artwaw
                  wrote on 3 Aug 2021, 14:25 last edited by
                  #23

                  @Yina It is very odd. I don't know what to advise here further...

                  Out of curiosity - would you be so kind as to try out to compile in release mode, then copy those libraries again? It will probably change nothing but so far I understand you've tested only in debug.

                  Also, once you have release version with libraries and all (even if it fails to run as required) could you please try dependency walker on that binary? There is a chance that binaries are indeed okay but something else, not explicitly required (Microsoft runtime libs? something like that? since you run MSVC...) is missing... It's a long shot but who knows?

                  For more information please re-read.

                  Kind Regards,
                  Artur

                  1 Reply Last reply
                  0
                  • J Offline
                    J Offline
                    Jonas Kvinge
                    wrote on 5 Aug 2021, 11:22 last edited by Jonas Kvinge 8 May 2021, 11:37
                    #24

                    In Qt 6.2, the TLS backend (openSSL support) is a separate plugin.
                    You need to copy over the plugin too. Your screenshot does not show it.
                    The file you need should be in C:\Qt\<Qt version>\<compiler>\plugins\tls\opensslbackend.dll

                    Y 1 Reply Last reply 5 Aug 2021, 14:19
                    4
                    • J Jonas Kvinge
                      5 Aug 2021, 11:22

                      In Qt 6.2, the TLS backend (openSSL support) is a separate plugin.
                      You need to copy over the plugin too. Your screenshot does not show it.
                      The file you need should be in C:\Qt\<Qt version>\<compiler>\plugins\tls\opensslbackend.dll

                      Y Offline
                      Y Offline
                      Yina
                      wrote on 5 Aug 2021, 14:19 last edited by
                      #25

                      @Jonas-Kvinge

                      Thank you Jonas ! I've spent days on this issue and now its finally fixed :-D

                      1 Reply Last reply
                      0

                      25/25

                      5 Aug 2021, 14:19

                      • Login

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