C10/macros/cmake_macros.h not exists

@Aviais
What’s your env? Windows? or Linux?

To cross build, you need to make sure the libtorch you downloaded is compiled with the same compiler with your android project. You can download a correct build from here:
https://pytorch.org/’ (select package ‘libtorch’, choose correct operating system you have)

If you are under linux and the libtorch you downloaded is non-abi build, then ABI must set to be false.
D_GLIBCXX_USE_CXX11_ABI=0.
And you need to tell linker the location of the shared library. The command line I posted here:
How do i to create a new project in C++ to run libtorch without cmake?
has ‘-Wl,R’ before -ltorch -ltorch_cpu -lc10 so linker knows where to find those shared libs.