Hello Folks,
I am trying to compile Rust library using NDK 24.0.8215888 for target armv7-linux-androideabi. The build is failing with following error -
--- stderr
CMake Error at /home/Android/Sdk/cmake/3.22.1/share/cmake-3.22/Modules/Platform/Android-Determine.cmake:375 (message):
Android: Unknown processor CMAKE_SYSTEM_PROCESSOR='arm'.
Call Stack (most recent call first):
/home/Android/Sdk/cmake/3.22.1/share/cmake-3.22/Modules/CMakeDetermineSystem.cmake:160 (include)
CMakeLists.txt:39 (project)
The linker is set as follows in ~/.cargo/config:
[target.armv7-linux-androideabi]
ar = "${NDK_HOME}/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-ar"
linker = "${NDK_HOME}/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi32-clang"
cmake version 3.22.1-g37088a8
(Note - Same is the error for target arm-linux-androideabi)
I am blocked and dont see any solution for this. Any help will be appreciated. Thanks.
Shashank