Fix Android build
Trying to fix the build of VTK on Android platforms. Tested with Android NDK r21e (LTS):
$ ccmake -DVTK_ANDROID_BUILD=ON \
-DANDROID_NDK=/path/to/android-ndk-r21e/ \
-DANDROID_NATIVE_API_LEVEL=27 \
-DANDROID_ARCH_ABI=arm64-v8a \
../vtk
Tested with API Levels:
-
❌ 19 (Android 4.4) => Won't compile, can't even build a C++ file -
✅ 21 (Android 5.0) -
✅ 22 (Android 5.1) -
✅ 23 (Android 6.0) -
✅ 24 (Android 7.0) -
✅ 26 (Android 8.0) -
✅ 27 (Android 8.1) -
✅ 28 (Android 9.0) -
✅ 29 (Android 10.0) -
✅ 30 (Android 11.0)
Edited by Joachim Pouderoux