# Cross-compiling ARM64 with visual studio

**URL:** <https://forum.opencv.org/t/cross-compiling-arm64-with-visual-studio/14384>\
**Category:** C++\
**Tags:** arm, windows, build\
**Created:** [August 29, 2023, 12:54pm UTC](https://forum.opencv.org/t/cross-compiling-arm64-with-visual-studio/14384 "2023-08-29T12:54:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sampsa\_Riikonen](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/sampsa_riikonen/32/8609_2.png) [@Sampsa\_Riikonen](https://forum.opencv.org/u/Sampsa_Riikonen)\
**Post date:** [August 29, 2023, 12:54pm UTC](https://forum.opencv.org/t/cross-compiling-arm64-with-visual-studio/14384/1 "2023-08-29T12:54:20Z")

</div>

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](https://stackoverflow.com/questions/77000339/error-c1189-when-compiling-opencv-for-arm64-at-amd64)

To recap: I get this:

```auto
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

---

<div class="post-metadata">

**Author:** ![berak](https://avatars.discourse-cdn.com/v4/letter/b/85f322/32.png) [@berak](https://forum.opencv.org/u/berak)\
**Post date:** [August 30, 2023, 8:43am UTC](https://forum.opencv.org/t/cross-compiling-arm64-with-visual-studio/14384/2 "2023-08-30T08:43:18Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![berak](https://avatars.discourse-cdn.com/v4/letter/b/85f322/32.png) [@berak](https://forum.opencv.org/u/berak)\
**Post date:** [August 30, 2023, 8:43am UTC](https://forum.opencv.org/t/cross-compiling-arm64-with-visual-studio/14384/3 "2023-08-30T08:43:27Z")

</div>


