onnxruntime icon indicating copy to clipboard operation
onnxruntime copied to clipboard

[Build] How to build for Android armeabi platform?

Open wanglunhui2012 opened this issue 1 year ago • 1 comments

Describe the issue

I hava a old device on Android, ABI is armeabi rather armeabi-v7a. How can I build for this?

Urgency

No response

Target platform

Android ABI armeabi

Build script

./build.sh --android --android_sdk_path ~/Library/Android/sdk --android_ndk_path ~/Library/Android/sdk/ndk/22.1.7171670 --android_abi armeabi --android_api 27

Error / output

build.py: error: argument --android_abi: invalid choice: 'armeabi' (choose from 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64')

Visual Studio Version

No response

GCC / Compiler Version

Apple clang version 14.0.3 (clang-1403.0.22.14.1)

wanglunhui2012 avatar Jun 27 '24 16:06 wanglunhui2012

Sorry, we don't support building for armeabi now. It's not supported by recent NDK versions either. https://developer.android.com/ndk/guides/abis#sa

"Note: Historically the NDK supported ARMv5 (armeabi), and 32-bit and 64-bit MIPS, but support for these ABIs was removed in NDK r17."

edgchen1 avatar Jun 28 '24 02:06 edgchen1

This issue has been automatically marked as stale due to inactivity and will be closed in 30 days if no further activity occurs. If further support is needed, please provide an update and/or more details.

github-actions[bot] avatar Jul 28 '24 15:07 github-actions[bot]