Problem building Qt 6.8 for android with openssl
-
I am building Qt 6.8.0 from source for android (all abis) on Ubuntu 22.04. I want to enable openssl but I get the error:
CMake Error at qtbase/cmake/QtBuildInformation.cmake:534 (message):
Feature "openssl_runtime": Forcing to "ON" breaks its condition:
TEST_opensslv11_headers OR TEST_opensslv30_headers
Condition values dump:
TEST_opensslv11_headers = "FALSE"
TEST_opensslv30_headers = "FALSE"What are the values I have to pass to ./configure -openssl?
I have built openssl 3.1.1 as described here: https://doc.qt.io/qt-6/android-openssl-support.html
-
Additional errors just after the above
Call Stack (most recent call first):
qtbase/cmake/QtFeature.cmake:322 (qt_configure_add_report_error)
qtbase/cmake/QtFeature.cmake:442 (qt_feature_check_and_save_internal_value)
qtbase/cmake/QtFeature.cmake:141 (qt_evaluate_feature)
qtbase/cmake/QtFeature.cmake:180 (qt_internal_evaluate_config_expression)
qtbase/cmake/QtFeature.cmake:396 (qt_evaluate_config_expression)
qtbase/cmake/QtFeature.cmake:711 (qt_evaluate_feature)
qtbase/cmake/QtBaseGlobalTargets.cmake:109 (qt_feature_module_end)
qtbase/cmake/QtBaseHelpers.cmake:186 (include)
qtbase/CMakeLists.txt:32 (qt_internal_qtbase_build_repo)CMake Error at qtbase/cmake/QtTargetHelpers.cmake:1483 (message):
WrapOpenSSLHeaders::WrapOpenSSLHeaders is not a valid target.
Call Stack (most recent call first):
qtbase/src/plugins/tls/openssl/CMakeLists.txt:61 (qt_internal_add_target_include_dirs)