Hi,
I’m trying to include pytorch/script.h in my CPP android project.
I’m using ndk21 and C++14.
I cloned the repository and used “git submodule update --init --recursive” to update sub=modules.
I’m getting the following compilation error:
In file included from C:\REPOS\pytorch\torch/script.h:3:
In file included from C:\REPOS\pytorch\torch/csrc/api/include/torch/types.h:3:
In file included from C:\REPOS\pytorch/aten/src\ATen/ATen.h:3:
In file included from C:\REPOS\pytorch\c10/core/Allocator.h:6:
In file included from C:\REPOS\pytorch\c10/core/Device.h:3:
In file included from C:\REPOS\pytorch\c10/core/DeviceType.h:8:
C:\REPOS\pytorch\c10/macros/Macros.h:21:10: fatal error:  ‘c10/macros/cmake_macros.h’ file not found
#include <c10/macros/cmake_macros.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
I do see that there is a file c10/macros/cmake_macros.h**.in**, an it specifically says:
Do not include this file directly. Instead, include c10/macros/Macros.h.
So what is the problem?