-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Instruction for building on ARM on windows #29416
Comments
Just to be clear, cross compilation is not supported. To build for ARM, you need to build on ARM. |
I am on arm |
Can I get some actual details? What error mesaage arenyou getting? |
Nothing goes wrong, it just cross compiles to x86. Instead of compiling to arm64. I am guessing that is the default for cmake projects, but I don't know. |
VS has a menu with options to choose a target. |
It doesn't allow choosing an arm target. If I create a new desktop app project I can set target to be arm64. If I create a new cmake project this is not allowed, so it might be a current limitation of cmake + visual studio. I also tried to compile form command line, I can do it with gcc but that gives the wrong target, I don't know how to force arm64 and also it appears gcc currently does not support windows arm64 target. So clang might be the way to go, but how? |
I manually added the following CMake preset: { Severity Code Description Project File Line Suppression State Details |
Problem
I imported the project into visual studio 2022 (arm64 version) and it compiles just fine, but with target x86. Probably I need to modify CMake files to target arm64, but I am not a developer so no idea how to do that.
Expected behavior
Please provide some more instruction for compiling on arm on windows.
The text was updated successfully, but these errors were encountered: