Hi,
I'm trying to get an SFML.Net project from Windows working on a mac (OS X).
I installed Xamarin Studio and Mono.
I downloaded compiled copies of CSFML-2.1-osx-clang-universal and SFML-2.1-osx-clang-universal.
I created caves3.exe from my project.
When I ran it (
mono caves3.exe) I got this error:
Unhandled Exception: System.DllNotFoundException: csfml-graphics-2
To solve that, I created a file at Users/matthew/.mono/config with this text:
<configuration>
<dllmap dll="csfml-graphics-2" target="libcsfml-graphics.2.1.dylib" />
<dllmap dll="csfml-window-2" target="libcsfml-window.2.1.dylib" />
</configuration>
And then put libcsfml-graphics.2.1.dylib and libcsfml-window.2.1.dylib in the same folder as caves3.exe
When I run it again
mono caves3.exe I get this error:
Mono: DllImport unable to load library 'dlopen(libcsfml-graphics.2.1.dylib, 9): Library not loaded: @executable_path/../Frameworks/libsfml-graphics.2.dylib
Referenced from: /Users/matthew/Documents/projects/caves/caves3/bin/Debug/libcsfml-graphics.2.1.dylib
Reason: image not found'.
Unhandled Exception:
System.DllNotFoundException: libcsfml-graphics.2.1.dylib
Note that the missing file is
libsfml-graphics.2.dylib - the 2.1 file WAS found as I understand.
I have the missing file, libsfml-graphics.2.dylib, from the SFML-2.1-osx-clang-universal.tar.gz download.
But I don't know where to put it.
* Can I override the path "@executable_path/../Frameworks/libsfml-graphics.2.dylib" so I can put the dylib file in the same folder as the .exe file? (that path seems to be hardcoded inside libcsfml-graphics.2.1.dylib)
* Can I put the "missing" libsfml-graphics.2.dylib file somewhere so that mono will find it?