Possible to build for Windows ARM64?

Discussion of development and patch submission.
Post Reply
User avatar
mijk
Posts: 16
Joined: Wed 24 Mar, 2021 11:49 pm

Possible to build for Windows ARM64?

Post by mijk »

I understand there's ARM support now. I've built PCem for Ubuntu ARM64 but the question now is if it's possible for Windows ARM64?
GeoffreyMcJefferson
Posts: 4
Joined: Wed 02 Feb, 2022 10:57 pm

Re: Possible to build for Windows ARM64?

Post by GeoffreyMcJefferson »

It would be dope if we could get this running on a Raspberry Pi.
driver1998
Posts: 1
Joined: Wed 27 Apr, 2022 3:34 pm

Re: Possible to build for Windows ARM64?

Post by driver1998 »

aaa.jpg
aaa.jpg (302.07 KiB) Viewed 6324 times
;)

https://github.com/sarah-walker-pcem/pcem/pull/138
aitus95
Posts: 8
Joined: Wed 02 Dec, 2020 8:01 pm

Re: Possible to build for Windows ARM64?

Post by aitus95 »

driver1998 wrote: Wed 27 Apr, 2022 3:38 pm aaa.jpg
;)

https://github.com/sarah-walker-pcem/pcem/pull/138
What is the best cpu you can emulate on this system? I would be curious to know how the latest snapdragon works with PCem
User avatar
mijk
Posts: 16
Joined: Wed 24 Mar, 2021 11:49 pm

Re: Possible to build for Windows ARM64?

Post by mijk »

Very great work driver1998! Do you have a compiled version for download?
User avatar
unreal9010
Posts: 160
Joined: Sat 14 Nov, 2020 8:20 pm

Re: Possible to build for Windows ARM64?

Post by unreal9010 »

I see it was committed to development branch on GitHub.
Thank you for your effort. I'm pretty sure it will be of use for people who use ARM64.
User avatar
mijk
Posts: 16
Joined: Wed 24 Mar, 2021 11:49 pm

Re: Possible to build for Windows ARM64?

Post by mijk »

(driver1998)
If you have Windows ARM64 machines:

Install MSYS2
Enable clangarm64 repo: uncomment clangarm64 in /etc/pacman.conf
pacman -Syuu
pacman -S mingw-w64-clang-aarch64-toolchain mingw-w64-clang-aarch64-wxWidgets mingw-w64-clang-aarch64-SDL2 mingw-w64-clang-aarch64-openal mingw-w64-clang-aarch64-cmake mingw-w64-clang-aarch64-ninja
Open a clangarm64 shell msys2_shell.cmd -clangarm64
cd /path/to/pcem/source
cmake -G "Ninja" -DMSYS=TRUE

(mijk)
You can run ninja and then ninja install but it will install to C:\Program Files (x86)\PCem\bin without any of the DLL's needed. I confirmed it's an ARM64 binary. I personally ran the exe and dealt with each DLL error and copied them in place. Obviously this isn't the best course of action but I'm not sure how else to go about it.

TLDR;
It works!
Post Reply