I just want to build libtorch for android. My pytorch verson is 1.6 and ndk version is t19c. I build the libtorch is the follow command:
BUILD_CAFFE2_MOBILE=1 ./scripts/build_android.sh,
But I got this error:
/workspace/tvm/pytorch-mobile/pytorch-1.6/aten/src/ATen/Tensor.h:3:10: fatal error: ‘ATen/core/TensorBody.h’ file not found #include <ATen/core/TensorBody.h>
^~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
caffe2/CMakeFiles/torch_cpu.dir/build.make:7262: recipe for target ‘caffe2/CMakeFiles/torch_cpu.dir/operators/rms_norm_op.cc.o’ failed
make[2]: *** [caffe2/CMakeFiles/torch_cpu.dir/operators/rms_norm_op.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs…
CMakeFiles/Makefile2:1362: recipe for target ‘caffe2/CMakeFiles/torch_cpu.dir/all’ failed
make[1]: *** [caffe2/CMakeFiles/torch_cpu.dir/all] Error 2
Makefile:140: recipe for target ‘all’ failed
make: *** [all] Error 2
Anyone knows the reason and how to solve this issue?