Am 18.02.25 um 17:22 schrieb Pierrick Bouvier:
On 2/17/25 20:11, Brian Cain wrote:
Is this toolchain available publicly or did you build it yourself?  It
would be handy if there were a linux x86_64 hosted cross-toolchain that
can target Windows-aarch64.  Or linux aarch64 hosted would be pretty
good, too.


At the moment, the only open source toolchain supporting windows-arm64 is llvm-mingw (https://github.com/mstorsjo/llvm-mingw).
There is some progress on gcc, but it is not yet fully upstream.
MSYS2 uses llvm-mingw for windows-arm64 environment.

On my side, I used a windows-arm64 machine with MSYS2 native environment.

It would be handy to cross compile, and the problem is not really QEMU itself, but to cross compile all the dependencies. For x86_64, we use fedora, which provides convenient precompiled mingw packages for dependencies. It's definitely not impossible to do the same for windows-arm64, but it just takes much more effort.

Is there an MSYS2 or other distributor that provides windows-aarch64
builds of the glib and other library dependencies?


MSYS2 does, but it's complicated to download packages by hand if it's your idea. Better to cross compile it.

I could run a QEMU cross compile on Debian with the llvm toolchain and msys2 clangarm64 packages installed with pacman. The resulting installer is here:

https://qemu.weilnetz.de/aarch64/

The only tools which was missing and which I had to build before running the QEMU build is aarch64-w64-mingw32-windmc.

It looks like the NSIS installer is i386 code, so I don't know whether it can be used on Windows for aarch64.

I also have no suitable Windows host for testing the binaries, so no test was done.

Stefan W.

Reply via email to