Cross-compiling ARM64 with visual studio

Anyone with experience on cross-compiling in windows visual studio c++ for ARM64?

My problem is also described here:

visual c++ - Error C1189 when compiling OpenCV for arm64 at amd64 - Stack Overflow

To recap: I get this:

fatal  error C1189: #error:  This header is specific to X86, X64, ARM64, and ARM64EC targets

Although my environment is all set up correctly for cross-compilation

please, either post a real, detailled question here, or stick with SO.

it does not make any sense to answer your question here, so closing this.