SEE THIRD POST FOR FIXI'm on Ubuntu 12.10, MonoDevelop 3.x, and Mono 2.10.8.1.
I've followed
this guide, and I'm getting this error:
System.DllNotFoundException: /usr/local/lib/libcsfml-graphics.so.2.0
You would think that the issue is that the file doesn't exist.
It does:
user@ubuntu:~/SFML.Net_Test/SFML.Net_Test/bin/Debug$ file /usr/local/lib/libcsfml-graphics.so.2.0
/usr/local/lib/libcsfml-graphics.so.2.0: ELF 32-bit LSB shared object, Intel 80386, version 1 (GNU/Linux), dynamically linked, BuildID[sha1]=0xbf6250455792112ea1c6b5e8a5d2cbbbcce82a59, not stripped
My test code:
using System;using SFML.Window;using SFML.Graphics;namespace SFML
.Net_Test{ class MainClass
{ public static void Main
(string[] args
) { var win
= new RenderWindow
(new VideoMode
(800,
600),
"Hello SFML.Net!"); win
.Closed += (object sender, EventArgs e
) => win
.Close (); win
.SetVisible (true); var rect
= new RectangleShape
(new Vector2f
(40,
40)) {Position
= new Vector2f
(400,
300), FillColor
= Color
.Green}; while (win
.IsOpen ()) { win
.DispatchEvents(); win
.Clear (Color
.White); win
.Draw (rect
); win
.Display (); } } }}