MonoGame / MonoGame.Dependencies

The MonoGame binary dependencies submodule.
38 stars 51 forks source link

Add arm64 to SDL2 dylib for M1 macs #156

Closed NoFr1ends closed 2 years ago

NoFr1ends commented 2 years ago

This adds arm64 compilation to the SDL2 dylib (version 2.0.14). After this change running MonoGame projects under M1 based MacOS devices works on arm64 dotnet runtime. There are still dependencies to x86_64 in the Content Pipeline so building natively under arm64 doesn't work yet.

Fix https://github.com/MonoGame/MonoGame/issues/7638


SDL/MacOS/Universal/libSDL2-2.0.0.dylib: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit dynamically linked shared library x86_64] [arm64]
SDL/MacOS/Universal/libSDL2-2.0.0.dylib (for architecture x86_64):  Mach-O 64-bit dynamically linked shared library x86_64
SDL/MacOS/Universal/libSDL2-2.0.0.dylib (for architecture arm64):   Mach-O 64-bit dynamically linked shared library arm64
mrhelmut commented 2 years ago

Thanks, I'll look into this.

Did you build it yourself or is it from another distribution? We usually use the FNA redistributable because we know that they are built with backward macOS support.

For the time being, running games on ARM64 is more important than having the pipeline to work.

mrhelmut commented 2 years ago

Replaced by #157

Thanks for the initial contribution.