Ninja Error on Android when building project

Hi, I cloned a branch from the repository called ci-all/orig/release/1.7.1 and when I try to build the program I am getting the following error:

Build command failed.
Error while executing process /Users/<username>/Library/Android/sdk/cmake/ with arguments {-C /Users/<username>/Desktop/pytorch/android/pytorch_android/.cxx/cmake/debug/armeabi-v7a fbjni pytorch_jni}
ninja: Entering directory `/Users/<username>/Desktop/pytorch/android/pytorch_android/.cxx/cmake/debug/armeabi-v7a'

ninja: error: '../../../../src/main/jniLibs/armeabi-v7a/libtorch.a', needed by '../../../../build/intermediates/cmake/debug/obj/armeabi-v7a/', missing and no known rule to make it

I am very new to PyTorch and I couldn’t figure this error out.
I would really appreciate if anyone can help me with this. Thanks in advance! :slight_smile:

1 Like

@IvanKobzarev can you take a look?

Hi @toni,
What command do you run?

To build pytorch_android you should use:

sh ./scripts/

which will build all 4 abis by default. Or to specify abi as argument.

sh ./scripts/ arm64-v8a
1 Like

Still same error with the above command