Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-136718

It would be nice if we Enable consistent and enforceable OpenSSL deployment for Android in Qt

    XMLWordPrintable

Details

    • Android
    • 2025wk22s1-2QtforAndroid

    Description

      In Qt Android projects, OpenSSL is required for HTTPS functionality (QSslSocket, QNetworkAccessManager, WebEngine, etc.). However, Qt does not provide a reliable, team-friendly way to enforce or manage OpenSSL deployment:

      • The mechanism in Qt Creator to include "SSL” generates a .pri file with hard-coded, machine-specific paths — not suitable for version control or CI.
      • Missing SSL causes silent runtime failures (e.g., supportsSsl() returns false) with no build-time warnings or errors.
      • There is no standard QT += openssl Kind of mechanism or CMake equivalent to enforce presence and deployment of OpenSSL libraries.

      It would be very nice if  we can have some kind of qmake/CMake helper (e.g., QT += openssl or find_package(Qt6 REQUIRED COMPONENTS OpenSSL)) that:

      • Fails configuration if OpenSSL is not found
      • Automatically adds libssl.so and libcrypto.so to androiddeployqt via ANDROID_EXTRA_LIBS or CMake equivalents

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qtbuildsystem Qt Build System Team
            irfan.omair@digia.com Irfan Omair
            Votes:
            7 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes