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. "-no-ssl" option not working when compiling Qt 5.6.3 win32-msvc2017
Forum Updated to NodeBB v4.3 + New Features

"-no-ssl" option not working when compiling Qt 5.6.3 win32-msvc2017

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
4 Posts 3 Posters 530 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.
  • K Offline
    K Offline
    kartio
    wrote on last edited by
    #1

    Hello!
    I have a problem that when compiling the opensource 5.6.3 with -no-ssl option the QT_NO_SSL won't get defined and so for example QSslConfiguration is ifndef'd away completely.
    Any advice?

    sierdzioS 1 Reply Last reply
    0
    • K kartio

      Hello!
      I have a problem that when compiling the opensource 5.6.3 with -no-ssl option the QT_NO_SSL won't get defined and so for example QSslConfiguration is ifndef'd away completely.
      Any advice?

      sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      @kartio said in "-no-ssl" option not working when compiling Qt 5.6.3 win32-msvc2017:

      Hello!
      I have a problem that when compiling the opensource 5.6.3 with -no-ssl option the QT_NO_SSL won't get defined and so for example QSslConfiguration is ifndef'd away completely.
      Any advice?

      Update to some newer Qt version, where this issue is probably fixed.

      If you can't upgrade - patch Qt to fix this.

      Last option - compile without -no-ssl but just don't use SSL in your code.

      (Z(:^

      1 Reply Last reply
      1
      • K Offline
        K Offline
        kartio
        wrote on last edited by
        #3

        I'd love to update but at the moment it's not possible. I'll just take the option #2 and try to patch Qt source.

        Thanks!

        1 Reply Last reply
        0
        • Christian EhrlicherC Offline
          Christian EhrlicherC Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Simply define QT_NO_SSL by your own when you compile your application to make sure you don't use ssl functions by accident.

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          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