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

configure Qt 5.12.4 for Android (armv7a) with 'openssl-linked' fails to find OpenSSL libs

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.12.4
    • Build System
    • None
    • MacOS High Sierra
    • Android

    Description

      I'm trying to build Qt 5.12.4 (6e350aff34545e7b41b07617c9152f81db735702) for Android armv7a (32-bit) with OpenSSL support.  I can build using the "-openssl-runtime" flag and "OPENSSL_PREFIX" if I put the OpenSSL libs inside a "lib/" directory which I manually create.  However, when I would rather build with static libs via "-openssl-linked" and this fails...

      OPENSSL_LIBS="-L /Users/chris/Projects/openssl-android/openssl-1.0.2s-NDKr18b -lssl -lcrypto" /Volumes/Apex/Projects/Qt/qt5-repo/configure -android-arch armeabi-v7a -android-ndk /Users/chris/LocalApps/Android/android-ndk-r18b -android-ndk-host darwin-x86_64 -android-ndk-platform android-26 -android-sdk /Users/chris/LocalApps/Android -android-toolchain-version 4.9 -xplatform android-clang -skip qtcharts -skip qtdatavis3d -skip qtdoc -skip qtdocgallery -skip qtfeedback -skip qtgamepad -skip qtnetworkauth -skip qtpim -skip qtpurchasing -skip qtqa -skip qtquickcontrols -skip qtquickcontrols2 -skip qtremoteobjects -skip qtscript -skip qtscxml -skip qtserialbus -skip qtserialport -skip qtspeech -skip qtsystems -skip qttranslations -skip qtvirtualkeyboard -skip qtwayland -skip qtwebchannel -skip qtwebengine -skip qtwebsockets -skip qtwebview -skip qtmacextras -skip qtwinextras -skip qtx11extras -I /Users/chris/Projects/openssl-android/openssl-1.0.2s-NDKr18b/include -nomake examples -nomake tests -no-warnings-are-errors -openssl-linked -opensource -confirm-license -extprefix /Volumes/Apex/Projects/Qt/qt5.12.4-android-armeabi-v7a-SSL-LGPL_install
      ...
      Checking for OpenSSL... no
      ...
      OpenSSL ................................ no
      Qt directly linked to OpenSSL ........ no
      OpenSSL 1.1 ............................ no
      ...
      ERROR: Feature 'openssl-linked' was enabled, but the pre-condition '!features.securetransport && libs.openssl' failed.

      Check config.log for details.

      [in config.log]
      looking for library openssl
      Trying source 0 (type openssl) of library openssl ...
      None of [libssl.so libssl.a] found in [] and global paths.
      None of [libcrypto.so libcrypto.a] found in [] and global paths.
      => source produced no result.
      Trying source 1 (type inline) of library openssl ...
      => source failed condition 'config.win32'.
      Trying source 2 (type inline) of library openssl ...
      => source failed condition 'config.msvc'.
      Trying source 3 (type inline) of library openssl ...
      None of [libssl.so libssl.a] found in [] and global paths.
      None of [libcrypto.so libcrypto.a] found in [] and global paths.
      => source produced no result.

       

      It's not clear to me whether Qt now supports OpenSSL 1.1, so I've tried both 1.0.2 and 1.1.1 to no avail.

      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
            giantguppy Christopher Anderson
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes