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

Cross compiling for Android with openssl support fails

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P1: Critical
    • None
    • 6.6.3, 6.7.2
    • Build System: CMake
    • None
    • macOS
    • Android

    Description

      Building Qt 6.7.2 without openssl support configures fine with the following configure options:

      ~/Qt/6.7.2/Src/configure -platform android-clang -prefix ~/Qt/6.7.2-android/android-arm64-v8a -qt-host-path ~/Qt/6.7.2/macos -nomake examples -nomake tests -no-warnings-are-errors -android-ndk ~/Library/Android/sdk/ndk/26.1.10909125 -android-sdk ~/Library/Android/sdk -android-abis arm64-v8a -android-ndk-platform android-34

      Now trying to build it with openssl support:

      -openssl-runtime

       

      Result:

       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"

      Tried to set env vars for OPENSSL_ROOT_DIR and/or OPENSSL_LIBDIR / OPENSSL_LIBS. Same results.

      See attached logs:

      • cmake_trace.txt
      • config_debug.txt
      • CMakeCache.txt
      • CMakeConfigureLog.yaml

       

      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
            ranger Dietmar Finkler
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes