SFML community forums
Bindings - other languages => DotNet => Topic started by: MarekkPie on March 30, 2012, 07:31:07 am
-
I spent most of yesterday getting SFML.Net 2.0 to work with Mono on Linux machines, and figured I might as well write down my process to get it to work. Might not be a HUGE audience for this, but whatever, I had fun writing it.
http://scriptogr.am/mkosler/post/sfml.net-2.0-and-mono
Update: new site, and an explanation on how to skip the CSFML and SFML++ compilation.
-
Thanks for sharing :)
-
With the release candidates out, this process has gotten much simpler overall, but there are now a few new hiccups you have to be careful for.
I'll post a more formal walkthrough later, but in the meantime, here are the main changes that I recall:
- You no longer need to compile SFML and CSFML. Just grab the tarballs, extract the files, and move them into their respective /usr/local/* directories. You might not even need SFML at all, but there is no reason not to really get it either.
- You may need to grab libGLEW.so.1.7 to correctly map the CSFML .dll's to the Linux .so's, which currently isn't in Ubuntu's repositories, which means you will need to compile it yourself. (I needed to, but this may have to do with me also upgrading to Ubuntu 12.04.) Grab the tarball from here (http://sourceforge.net/projects/glew/files/glew/1.7.0/), extract it, and use make on it in your terminal. You may also need to grab the libxmu-dev and libxi-dev files from your repositories as well in order to get it to compile.
-
Don't know if anyone is using this, but if so, for the next hour or more the site will be offline as I switch to a different blogging platform. Once that transition is complete, I'll throw it back up and provide a new link. Thanks for your patience.
The post is now back up and running.
-
I tried following your tutorial, I thought I did everything right, but when I run I get this error:
** (/home/niko/programming/ProjectTurtle/projectturtle/bin/Debug/projectturtle_lin.exe:10568): WARNING **: Error parsing X
\xcc\u0008p
\xcc\u0008: Error on line 4 char 17: Element 'configuration' was closed, but the currently open element is 'dllmap'
** (/home/niko/programming/ProjectTurtle/projectturtle/bin/Debug/projectturtle_lin.exe:10568): WARNING **: Error parsing xa\xcc\u0008\x90a\xcc\u0008: Error on line 3 char 17: Element 'configuration' was closed, but the currently open element is 'dllmap'
Unhandled Exception: System.DllNotFoundException: /usr/local/lib/libcsfml-graphics.so.2.0
I think the "parse" errors are causing a problem in the .config files so then the DLLNotFoundException happens. I followed the mono tutorial on the DLLNotFoundException aswell. But when I run "ldconfig -p | grep libcs", It does not list libcsfml-graphics.so.2.0, but lists libcsfml-graphics.so.2 (without the extra .0)