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.5.1 / Android with openssl-1.1?
Forum Updated to NodeBB v4.3 + New Features

How can I build Qt 6.5.1 / Android with openssl-1.1?

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 5 Posters 818 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.
  • T Offline
    T Offline
    Thomas Strasser
    wrote on last edited by
    #1

    I try to configure qt to support ssl (Cross building Android apk on Debian Bullseye):
    /work/WinCCOA/build/Qt/src/qt-everywhere-src-6.5.1/configure -commercial -confirm-license -prefix /work/WinCCOA/build/Qt/Qt-Linux-Android_arm64-v8a/installdir/ -release -nomake examples -nomake tests -skip qtcharts -skip qtgamepad -skip qtnetworkauth -skip qtpurchasing -skip qtquickcontrols -skip qtremoteobjects -skip qtscript -skip qtscxml -skip qtserialbus -skip qtserialport -skip qtwayland -skip qtwebengine -skip qtxmlpatterns -skip qtdoc -skip qt3d -skip qttranslations -qt-host-path /work/WinCCOA/build/Qt/dependencies/qt/ -optimize-size -reduce-exports -android-ndk-platform android-33 -android-abis arm64-v8a -android-ndk /rockstorage/build_share/toolchains/Android/tools320/ndk/25.1.8937393/ -android-sdk /rockstorage/build_share/toolchains/Android/tools320/ -no-dbus -no-use-gold-linker -xplatform android-clang -I/work/WinCCOA/build/Qt/dependencies/openssl-android/include -openssl-linked -- -DOPENSSL_ROOT_DIR=/work/WinCCOA/build/Qt/dependencies/openssl-android

    but get the following error:
    CMake Error at qtbase/cmake/QtBuildInformation.cmake:508 (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"
    

    If I look further up in the CMakeError.log, CMakeOutput.log or any other log file I found nothing why openssl was not found. No failed test-programm, no warning, ...

    Why is do I get this error and how can I fix it?

    A 1 Reply Last reply
    0
    • T Thomas Strasser

      I try to configure qt to support ssl (Cross building Android apk on Debian Bullseye):
      /work/WinCCOA/build/Qt/src/qt-everywhere-src-6.5.1/configure -commercial -confirm-license -prefix /work/WinCCOA/build/Qt/Qt-Linux-Android_arm64-v8a/installdir/ -release -nomake examples -nomake tests -skip qtcharts -skip qtgamepad -skip qtnetworkauth -skip qtpurchasing -skip qtquickcontrols -skip qtremoteobjects -skip qtscript -skip qtscxml -skip qtserialbus -skip qtserialport -skip qtwayland -skip qtwebengine -skip qtxmlpatterns -skip qtdoc -skip qt3d -skip qttranslations -qt-host-path /work/WinCCOA/build/Qt/dependencies/qt/ -optimize-size -reduce-exports -android-ndk-platform android-33 -android-abis arm64-v8a -android-ndk /rockstorage/build_share/toolchains/Android/tools320/ndk/25.1.8937393/ -android-sdk /rockstorage/build_share/toolchains/Android/tools320/ -no-dbus -no-use-gold-linker -xplatform android-clang -I/work/WinCCOA/build/Qt/dependencies/openssl-android/include -openssl-linked -- -DOPENSSL_ROOT_DIR=/work/WinCCOA/build/Qt/dependencies/openssl-android

      but get the following error:
      CMake Error at qtbase/cmake/QtBuildInformation.cmake:508 (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"
      

      If I look further up in the CMakeError.log, CMakeOutput.log or any other log file I found nothing why openssl was not found. No failed test-programm, no warning, ...

      Why is do I get this error and how can I fix it?

      A Offline
      A Offline
      Andy1_1
      wrote on last edited by
      #2

      @Thomas-Strasser Tell me. Have you solved this problem?

      A 1 Reply Last reply
      0
      • A Andy1_1

        @Thomas-Strasser Tell me. Have you solved this problem?

        A Offline
        A Offline
        Andy1_1
        wrote on last edited by
        #3

        @Andy1_1 sudo rpi_update

        1 Reply Last reply
        0
        • F Offline
          F Offline
          FrogCruiser
          wrote on last edited by
          #4

          See also:
          https://forum.qt.io/topic/135469/qt6-static-cross-compile-with-openssl?_=1721831743861&lang=de
          For my understanding it is a Qt bug.
          I have the same problem when cross-compiling Qt 6.6.3 for Android with openssl support.
          No solution yet.

          Dietmar

          Christian EhrlicherC JoeCFDJ 2 Replies Last reply
          0
          • F FrogCruiser

            See also:
            https://forum.qt.io/topic/135469/qt6-static-cross-compile-with-openssl?_=1721831743861&lang=de
            For my understanding it is a Qt bug.
            I have the same problem when cross-compiling Qt 6.6.3 for Android with openssl support.
            No solution yet.

            Dietmar

            Christian EhrlicherC Online
            Christian EhrlicherC Online
            Christian Ehrlicher
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @FrogCruiser Openssl 1.1 is not supported anymore afair.

            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
            • F FrogCruiser

              See also:
              https://forum.qt.io/topic/135469/qt6-static-cross-compile-with-openssl?_=1721831743861&lang=de
              For my understanding it is a Qt bug.
              I have the same problem when cross-compiling Qt 6.6.3 for Android with openssl support.
              No solution yet.

              Dietmar

              JoeCFDJ Offline
              JoeCFDJ Offline
              JoeCFD
              wrote on last edited by
              #6

              @FrogCruiser
              From Qt6.5
              https://www.qt.io/blog/moving-to-openssl-3-in-binary-builds-starting-from-qt-6.5-beta-2

              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