Details
-
Bug
-
Resolution: Done
-
P2: Important
-
6.0.0 Beta1
-
-
74310cb36fe237426786bc1080e0fa5922e88cd1 (qt/qtbase/dev)
Description
The CMake build for Android added a feature to detect ANDROID_NDK_ROOT (which is used to detect the Android toolchain file) from ANDROID_SDK_ROOT. It tries to look for the ndk-bundle folder which has the default ndk package. However, the ndk-bundle is currently marked as deprecated (obsolete) which means it might be removed in the (near) future.
It should be changed to detect the ndk from the <sdk_root>/ndk/<versions> instead.
Different Qt for Android versions depend on different ndk versions, for Qt 6, ndk r20 and r21 can be used (each has a few sub-versions). Ideally, we could have a CMake function that handles this auto-detection and account for the different ndk versions, and use the latest version found that is supported for a given Qt version.
The patch that introduced the feature: https://codereview.qt-project.org/c/qt/qtbase/+/317248.
Attachments
For Gerrit Dashboard: QTBUG-87579 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
344914,4 | Android: Choose latest version when autodetecting the NDK | dev | qt/qtbase | Status: MERGED | +2 | 0 |
345173,1 | Android: Choose latest version when autodetecting the NDK | 6.1 | qt/qtbase | Status: ABANDONED | +2 | 0 |