Closed agunapal closed 4 hours ago
cc @kirklandsign for android build issue
Can we add a generic script to automate all these steps?
Good suggestions!
Hi @agunapal
Did you do these steps correctly?
cmake . -DCMAKE_INSTALL_PREFIX=cmake-android-out \
-DCMAKE_TOOLCHAIN_FILE="${ANDROID_NDK}/build/cmake/android.toolchain.cmake" \
-DANDROID_ABI="${ANDROID_ABI}" \
-DEXECUTORCH_BUILD_XNNPACK=ON \
-DEXECUTORCH_BUILD_EXTENSION_DATA_LOADER=ON \
-DEXECUTORCH_BUILD_EXTENSION_MODULE=ON \
-DEXECUTORCH_BUILD_EXTENSION_RUNNER_UTIL=ON \
-DEXECUTORCH_BUILD_EXTENSION_TENSOR=ON \
-Bcmake-android-out
cmake --build cmake-android-out -j16 --target install
Also you used NDK 21 but we recommend the latest version r27c
Thanks @kirklandsign Issue was resolved after upgrading NDK version!
🐛 Describe the bug
I am following the instructions in https://pytorch.org/executorch/stable/demo-apps-android.html
Getting an error when I tried to install the android extension
I am not sure if the documentation is out-dated. Can we add a generic script to automate all these steps?
Versions