Silk.NET: SDL API not loading on M-series Mac
Summary
I am unable to load the SDL API on my Mac, even though the same code works on Windows.
Steps to reproduce
- Platform: Desktop, MacBook Pro M-series
- Framework Version: .NET Core 8
- API: SDL Added Silk.NET.SDL to my project Then with this code, this works fine on a Windows 64bit (Win10) machine:
SdlProvider.InitFlags = Sdl.InitVideo | Sdl.InitEvents;
var sdl = SdlProvider.SDL.Value;
WindowFlags flags = WindowFlags.AllowHighdpi;
var windowHandle = sdl.CreateWindow("Hello World", Sdl.WindowposUndefined, Sdl.WindowposUndefined, 640, 480, (uint)flags);
while(true) {}
On my MBP, it fails in creating the API (also when using GetApi). It exits before it reaches the line after acquiring the API.
I’ve looked at the resource folder: libSDL2-2.0.dylib is available in runtimes/osx/native, the rest of the Silk libraries are in runtimes/osx-arm64.
Comments
Maybe the library is not being found in the right place? I tried to find how the build system works for ARM but not successfully yet.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 34 (23 by maintainers)
Thanks for helping diagnose and fix it!
Thank you for the super quick responses!