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

Failed to link openssl in Android app

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P1: Critical
    • 6.5.0 RC
    • 6.5.0 Beta2
    • Network: SSL
    • None
    • macOS M1Pro
    • Android

    Description

      Exemple with Network exemple : securesocketclient

      Open exemple project, add these lines after qt_add_executable in CMakeLists.txt:
      if (ANDROID)
      include(/path/sdk/android_openssl/CMakeLists.txt)
      set_target_properties(securesocketclient PROPERTIES
      QT_ANDROID_PACKAGE_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/android"
      QT_ANDROID_EXTRA_LIBS "${ANDROID_EXTRA_LIBS}"
      )
      endif()

      Add dir android in source exemple : android/libs/arm64-v8a/ with libssl_1_1.so and libcrypto_1_1.so

      After that, exemple run without errors when compiling with Qt6.4.2.

      The same project, with Qt6.5.0 Beta2 in Release config fails :
      -compile and install without error

      • But running error :
        W qt.tlsbackend.ossl: : Failed to load libssl/libcrypto.

      Forum subject about this error :
      https://forum.qt.io/topic/142499/problem-with-openssl-and-qt-6-5-0-beta-2/10

      Attachments

        Issue Links

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

          Activity

            People

              manordheim Mårten Nordheim
              leocouturier Léo Couturier
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes