Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Is QSsl not compiled by default in Qt 5.12.2?
Forum Updated to NodeBB v4.3 + New Features

Is QSsl not compiled by default in Qt 5.12.2?

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 832 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.
  • fcarneyF Offline
    fcarneyF Offline
    fcarney
    wrote on last edited by
    #1

    I am getting this error:

    Qt/5.12.2/gcc_64/include/QtNetwork/qdtls.h:137:5: error: ‘QSslSocket’ does not name a type; did you mean ‘QUdpSocket’?
    

    Apparently we didn't get this error in 5.9.7. What do we need to do in our config or code to fix this? We have network in our QT += list.

    C++ is a perfectly valid school of magic.

    kshegunovK 1 Reply Last reply
    0
    • fcarneyF fcarney

      I am getting this error:

      Qt/5.12.2/gcc_64/include/QtNetwork/qdtls.h:137:5: error: ‘QSslSocket’ does not name a type; did you mean ‘QUdpSocket’?
      

      Apparently we didn't get this error in 5.9.7. What do we need to do in our config or code to fix this? We have network in our QT += list.

      kshegunovK Offline
      kshegunovK Offline
      kshegunov
      Moderators
      wrote on last edited by
      #2

      Are you building yourself, or are you getting the Qt binaries from somewhere?

      If you do the former, pass -ssl to the ./configure script so you force the auto-detection to be ignored on that one. Aside from that you need the openssl headers to compile with SSL support. On my machine (debian testing) these go by the libssl-dev package for the 1.1.1b version of OpenSSL.

      Read and abide by the Qt Code of Conduct

      1 Reply Last reply
      2
      • fcarneyF Offline
        fcarneyF Offline
        fcarney
        wrote on last edited by
        #3

        I am not sure if this is the right fix, but we modified our Qt/5.12.2/gcc_64/include/QtNetwork/qtnetwork-config.h file:

        #define QT_FEATURE_dtls -1
        

        We changed the define from 1 to -1 to disable dtls. I would have thought anything that depends upon QSsl would be disabled if QSsl was disabled. QT_NO_SSL is showing as defined even though we have the ssl dev libs installed in Linux.

        C++ is a perfectly valid school of magic.

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

          Hi,

          What version of OpenSSL have you installed ?

          OpenSSL support is build by default but dynamically loaded. You have have a compatible version of OpenSSL available.

          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

          • Login

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