Skip to content

SDL API not loading on M-series Mac #2173

@joskuijpers

Description

@joskuijpers

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions