SFML community forums

Bindings - other languages => DotNet => Topic started by: etam on February 07, 2011, 09:29:09 pm

Title: mono, linux and sfml2
Post by: etam on February 07, 2011, 09:29:09 pm
In linux the cfsml bindings are in libcsfml-@MODULE@.so.2.0.0 files. In sfmlnet the dll imports expects names like "csfml-@MODULE@-2".
The solution, that doesn't require messing with filenames, is adding config files next to sfmlnet dlls:

File sfmlnet-@MODULE@-2.dll.config
Code: [Select]
<configuration>
    <dllmap dll="csfml-@MODULE@-2" target="libcsfml-@MODULE@.so.2.0.0"/>
</configuration>


"@MODULE@" is one of "sound", "graphics" and "window"


I know, that it's easier just to rename file, but I'm working at packaging sfml2 for openSUSE, Fedora and Mandriva and I must follow some shared library policies.
Title: mono, linux and sfml2
Post by: Laurent on February 07, 2011, 11:33:11 pm
That's right, thanks for your feedback.