Does arm64 plugin build required to include?
-
Hi All,
I am migrating my plugin to rust and apparently I can safely build 32bit and 64 bit but arm64 doesn’t build with plugin.rc file (without it builds fine).
Is this necessary to include arm64 or only x86 and x64 are fine.This is the error if anyone can help.
cargo build --target aarch64-pc-windows-msvc
windres: Can't detect target endianness and architecture. -
I think Arm is a niche platform under Windows, so I decided to go with x64 and x86 only, partly because I don’t have an Arm platform to test on.
But I tested the build, and all I had to do was install the MSVC extensions for ARM and add the target aarch64-pc-windows-msvc to the Rust toolchain.
Then I got a DLL built.
dumpbin /headers target\aarch64-pc-windows-msvc\debug\RustDemoPlugin.dll Microsoft (R) COFF/PE Dumper Version 14.44.35221.0 Copyright (C) Microsoft Corporation. All rights reserved. Dump of file target\aarch64-pc-windows-msvc\debug\RustDemoPlugin.dll PE signature found File Type: DLL FILE HEADER VALUES AA64 machine (ARM64) 6 number of sections 692ADC8C time date stamp Sat Nov 29 12:44:12 2025 0 file pointer to symbol table 0 number of symbols F0 size of optional header 2022 characteristics Executable Application can handle large (>2GB) addresses DLL OPTIONAL HEADER VALUES ... -
By the way… I just checked and rc.exe is being called on my system, so that could be the difference. I use MSVC, while you use the GNU toolchain?
-
@Ekopalypse I too use MSCVC but I downloaded them from here https://gist.github.com/mmozeiko/7f3162ec2988e81e56d5c4e22cde9977 not visual studio. So that might be the problem.