Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Need help to understand how Qt Creator and Configure works
Forum Updated to NodeBB v4.3 + New Features

Need help to understand how Qt Creator and Configure works

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
8 Posts 4 Posters 1.5k Views 3 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.
  • kragnfrolK Offline
    kragnfrolK Offline
    kragnfrol
    wrote on last edited by
    #1

    Hi,

    My main problem is related to OpenSSL. While my apps works well they way it's builded on my computer, the QSslSocket::supportsSsl() return false on some configuration, even with ssleay32.dll and libeay32.dll in the same folder.

    I'm not really used to play with build configuration, so I've really hard time to understand how it works.

    I wanted to make a static build and found this page : http://doc.qt.io/qt-5/ssl.html

    It says :

    By default, an SSL-enabled Qt library dynamically loads any installed OpenSSL library at run-time. However, it is possible to link against the library at compile-time by configuring Qt with the -openssl-linked option.
    

    I'm using Qt Creator with mingw32 on Windows 7, and I've no idea of where that "./configure -openssl-linked" is supposed to fit in Qt Creator.

    Can anyone help me ?

    Regards,

    Pablo J. RoginaP 1 Reply Last reply
    0
    • kragnfrolK kragnfrol

      Hi,

      My main problem is related to OpenSSL. While my apps works well they way it's builded on my computer, the QSslSocket::supportsSsl() return false on some configuration, even with ssleay32.dll and libeay32.dll in the same folder.

      I'm not really used to play with build configuration, so I've really hard time to understand how it works.

      I wanted to make a static build and found this page : http://doc.qt.io/qt-5/ssl.html

      It says :

      By default, an SSL-enabled Qt library dynamically loads any installed OpenSSL library at run-time. However, it is possible to link against the library at compile-time by configuring Qt with the -openssl-linked option.
      

      I'm using Qt Creator with mingw32 on Windows 7, and I've no idea of where that "./configure -openssl-linked" is supposed to fit in Qt Creator.

      Can anyone help me ?

      Regards,

      Pablo J. RoginaP Offline
      Pablo J. RoginaP Offline
      Pablo J. Rogina
      wrote on last edited by
      #2

      @kragnfrol as I undestand, this has nothing to do with Qt Creator but with build Qt itself from sources, as this example from the doc page you referred is showing:

      OPENSSL_LIBS='-L/opt/ssl/lib -lssl -lcrypto' ./configure -openssl-linked
      

      so it's build Qt from sources and linking it statically to the OpenSSL library available in that particular machine at the build (compile) time.

      Upvote the answer(s) that helped you solve the issue
      Use "Topic Tools" button to mark your post as Solved
      Add screenshots via postimage.org
      Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

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

        Hi,

        Which version of OpenSSL are you using ?

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

        1 Reply Last reply
        0
        • kragnfrolK Offline
          kragnfrolK Offline
          kragnfrol
          wrote on last edited by
          #4

          I'm using OpenSSL 1.0.2l

          @Pablo-J-Rogina Does it mean I will have to rebuild Qt if I want to statically link OpenSsl in my app ?

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

            If you are using OpenSSL directly in your app, no. Otherwise, yes.

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

            1 Reply Last reply
            0
            • kragnfrolK kragnfrol

              I'm using OpenSSL 1.0.2l

              @Pablo-J-Rogina Does it mean I will have to rebuild Qt if I want to statically link OpenSsl in my app ?

              JKSHJ Offline
              JKSHJ Offline
              JKSH
              Moderators
              wrote on last edited by JKSH
              #6

              @kragnfrol said in Need help to understand how Qt Creator and Configure works:

              I'm using OpenSSL 1.0.2l

              What version of Qt are you using? IIRC, Qt 5.10 and earlier are compatible with OpenSSL 1.0, but Qt 5.11 switched to OpenSSL 1.1. [EDIT: My bad; Qt 5.11 is still pre-built against OpenSSL 1.0]

              The problem is that OpenSSL 1.0 -> 1.1 broke compatibility.

              Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

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

                @JKSH The OpenSSL 1.1 backend is available since 5.10 as build option. IIRC, the pre-built binaries are still using OpenSSL 1.0 because of "older available distribution". However, I don't know what version of OpenSSL is currently used for the Windows pre-built package.

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

                JKSHJ 1 Reply Last reply
                1
                • SGaistS SGaist

                  @JKSH The OpenSSL 1.1 backend is available since 5.10 as build option. IIRC, the pre-built binaries are still using OpenSSL 1.0 because of "older available distribution". However, I don't know what version of OpenSSL is currently used for the Windows pre-built package.

                  JKSHJ Offline
                  JKSHJ Offline
                  JKSH
                  Moderators
                  wrote on last edited by
                  #8

                  @SGaist said in Need help to understand how Qt Creator and Configure works:

                  IIRC, the pre-built binaries are still using OpenSSL 1.0 because of "older available distribution". However, I don't know what version of OpenSSL is currently used for the Windows pre-built package.

                  You're right.

                  I installed Qt 5.11 for MSVC 2015 32-bit, and I had OpenSSL 1.0.2o 32-bit in my PATH. My app was able to download from a HTTPS site.

                  @kragnfrol said in Need help to understand how Qt Creator and Configure works:

                  QSslSocket::supportsSsl() return false on some configuration, even with ssleay32.dll and libeay32.dll in the same folder.

                  What configuration did you use?

                  Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                  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