How can I build Qt 6.5.1 / Android with openssl-1.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-androidbut 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?
-
@Thomas-Strasser Tell me. Have you solved this problem?
-
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
-
@FrogCruiser Openssl 1.1 is not supported anymore afair.
-