I have a CPP android project. I’m compiling it using ndk-build (ndk21 and C++14).


I have a file named “main.cpp” and I’m trying to  #include “torch/script.h” .


I got the error above when I git cloned pytorch and updated sub-modules as reported below.


When I downloaded a different libtorch version using this command,
wget https://github.com/Kitware/CMake/releases/download/v3.15.2/cmake-3.15.2.tar.gz
I saw a different structure of the files and I had different compilations error, as I reported in:
Compilation error in 'jit/ir/ir.h' 1

In my Android.mk file, I’m giving the path to:
LOCAL_C_INCLUDES += $(TORCH_REPO_PATH)
$(TORCH_REPO_PATH)/include
$(TORCH_REPO_PATH)/include/torch
$(TORCH_REPO_PATH)/include/torch/csrc/api/include

Please help.
Thanks for your response.