Hey guys,
I will show you how to install SFML .Net and Mono under Ubuntu.
Because there are many hints in this forum, but no actual Guide.
Note:
You don't need to compile any libraries ;D
Dependencies:
-libjpeg
-libglew
First of all, you install Mono and Monodevelop:
sudo apt-get install mono-devel
sudo apt-get install monodevelop
After you installed these programs, you have to download the
SFML .Net, CSFML and SFML libraries. (32Bit or 64Bit)
Then you create a directory for your SFML libraries and copy all
*audio*, *graphics*, *window* and *system* libraries in this directory.
Now you must „register“ your libraries:
Create a *.conf file in /etc/ld.so.conf.d with your SFML library path in it.
Now run the following command:
sudo ldconfig
Now you have to map your dll's:
Edit the config file in /etc/mono/ and add your dllmaps
<configuration>
...
<dllmap dll="csfml-graphics-2" target="libcsfml-graphics.so.2" />
<dllmap dll="csfml-window-2" target="libcsfml-window.so.2" />
<dllmap dll="csfml-audio-2" target="libcsfml-audio.so.2" />
</configuration>
Start a new monodevelop project, add your sfmlnet dll's, make sure the csfml*.dll's
and the sfmlnet*.dll's are in the same directory as your executable and it should be fine :)
Hauste,
Chilli
I tried to add a configuration file to my project, but it didn't work :/
Try adding two files similar to these in your project:
sfmlnet-window-2.dll.config
<configuration>
<dllmap dll="csfml-window-2" target="/usr/local/lib/libcsfml-window.so.2.1"/>
</configuration>
sfmlnet-graphics-2.dll.config
<configuration>
<dllmap dll="csfml-window-2" target="/usr/local/lib/libcsfml-window.so.2.1"/>
<dllmap dll="csfml-graphics-2" target="/usr/local/lib/libcsfml-graphics.so.2.1"/>
</configuration>
Thats how I got my projects working. I'm not sure if the full path to the files is really necessary though.