Update ndk to r22
ndk r22 provides, amongst other things, a newer clang (11 instead of 9).
There is no immediate pressure to do this, but we likely want/need to at some point.
While testing I found several blockers for the upgrade:
-
OpenSSL fails to build due to using now-removed deprecated ndk stuff. Fixed in master but not in 1.1.1. https://github.com/openssl/openssl/issues/13877 -
Several libs fail due to broken libz in ndk: https://github.com/android/ndk/issues/1391. Fixed, needs trickling down. -
androiddeployqt fails with STL library does not exist at /lib/arm-linux-androideabi/libc++_shared.so
This is due toANDROID_SYSROOT_PREFIX
being empty, resulting in a wrongstdcpp-path
in the deployment file https://invent.kde.org/frameworks/extra-cmake-modules/-/blob/master/toolchain/Android.cmake#L196 is relevant here: frameworks/extra-cmake-modules!196 (merged)
Edited by Nicolas Fella