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. How can I build Qt 6.4.1 with openssl-1.1.1s?
Qt 6.11 is out! See what's new in the release blog

How can I build Qt 6.4.1 with openssl-1.1.1s?

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 1.1k Views
  • 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.
  • Y Offline
    Y Offline
    yetanotherqtfan
    wrote on last edited by
    #1

    I try to configure qt to support ssl:
    C:\qt-everywhere-src-6.4.1\configure.bat -prefix C:\Qt6.4.1 -debug-and-release -platform win32-msvc -opensource -confirm-license -openssl-linked -- -DOPENSSL_ROOT_DIR=C:\openssl-1.1.1s64bit

    but get the following error:
    CMake Error at qtbase/cmake/QtBuildInformation.cmake:490 (message):
    Feature "openssl": Forcing to "ON" breaks its condition:

      QT_FEATURE_openssl_runtime OR QT_FEATURE_openssl_linked
    

    Condition values dump:

      QT_FEATURE_openssl_runtime = "OFF"
      QT_FEATURE_openssl_linked = "OFF"
    

    Does Qt 6.4.1 support openssl-1.1.1s?

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

      Look further up in your log,a slo in CMakeError.log and others to see why openssl was not found. Are you sure the root C:\openssl-1.1.1s64bit is correct, is compiled for MSVC and contains the headers and the import libs?

      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
      • Y Offline
        Y Offline
        yetanotherqtfan
        wrote on last edited by
        #3

        C:\openssl-1.1.1s64bit is built with Mingw. Must openssl be built with MSVC to be used in Qt6 msvc build?

        jsulmJ 1 Reply Last reply
        0
        • Y yetanotherqtfan

          C:\openssl-1.1.1s64bit is built with Mingw. Must openssl be built with MSVC to be used in Qt6 msvc build?

          jsulmJ Online
          jsulmJ Online
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @yetanotherqtfan Yes, use same compiler. You should see a linker warning telling you that it is skipping the lib because it is not compatible.

          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