ref: 846c3bf8415c2b59012e496f69031f1aa023c67e
parent: 4bb7f9d2ad22069f978b6386c411d4c99724f8ee
author: Ralph Giles <giles@thaumas.net>
date: Wed Jul 2 21:04:28 EDT 2025
Update ndk reference in cmake documentation Update the suggested cross-compilation command line to match what's used in test automation. The old ndk should work fine for the moment, but it's out of support and we're not verifying against it. Signed-off-by: Jean-Marc Valin <jmvalin@jmvalin.ca>
--- a/cmake/README.md
+++ b/cmake/README.md
@@ -109,7 +109,7 @@
### Cross compiling for Android
```shell
-cmake .. -DCMAKE_TOOLCHAIN_FILE=${ANDROID_HOME}/ndk/25.2.9519653/build/cmake/android.toolchain.cmake -DANDROID_ABI=arm64-v8a
+cmake .. -DCMAKE_TOOLCHAIN_FILE=${ANDROID_HOME}/ndk/27.2.12479018/build/cmake/android.toolchain.cmake -DANDROID_ABI=arm64-v8a
```
For more information about cross compiling for android, you can refer to the [Cross compiling for Android documentation](https://cmake.org/cmake/help/latest/manual/cmake-toolchains.7.html#cross-compiling-for-android).
--
⑨