I’m not sure if this is the right place to ask, but I’ll try anyway. I would like to use SDL on Mac with the SDL2C# wrapper, but I’m having trouble with getting things up and running. What I have so far:
- .dylibs for SDL2, SDL2_image, SDL2_mixer and SDL2_ttf
- A Visual Studio solution with:
– A project for all the SDL2C# files.
– A (console) project for the game code.
Everything builds just fine, but when I try to call an SDL function I get a DllNotFoundException ("Unable to load DLL ‘SDL2.dll’: The specified module or one of its dependencies could not be found.). I tried adding the .dylibs to the wrapper project and setting them to “copy to output directory”, but the error persists. I also verified that the names of the .dylibs match the ones specified in the dllmaps found in SDL2-CS.dll.config.
I don’t know what the problem is and I haven’t been able to find any documentation or tutorials on how to do this. Are the .dylibs in the wrong location, am I missing some dependencies, did I overlook something else…? Any help would be greatly appreciated.