SFML community forums

Bindings - other languages => DotNet => Topic started by: m00npirate on November 05, 2011, 11:56:38 pm

Title: SFML 2.0 with mono
Post by: m00npirate on November 05, 2011, 11:56:38 pm
I would like to use SFML2.0 with mono. Before I begin trying to get it to work, is this even possible?

More info:
I have successfully built sfml2 with VC++ 2010, and I've used the c++ bindings before. I see that the .net versions use the c binding. Are these available for 2.0?

EDIT2: Just saw that there's a separate repository for CSFML. Is this 2.0?

EDIT3: Got csfml to compile, now trying to get it to gel with .net

EDIT4: After 4 hours of work I got everything to work out! Renders 8000 sprites at 120fps, not too bad!
Title: SFML 2.0 with mono
Post by: Laurent on November 06, 2011, 09:55:42 am
CSFML libraries are provided in the SFML.Net repository, you don't have to recompile everything ;)
Title: SFML 2.0 with mono
Post by: stgben on January 05, 2012, 09:36:32 pm
I'm running into similar problems with SFML.Net and Mono. I've managed to get the example SFML.Net application to compile, but upon running I get some dll errors. I was hoping someone could shed light on these.

http://pastie.org/pastes/3133465

I have dll's all over the place, trying to cover all my bases and nothing seems to be helping.
Title: SFML 2.0 with mono
Post by: Laurent on January 05, 2012, 10:12:44 pm
Try this:
http://www.sfml-dev.org/forum/viewtopic.php?p=37262#37262
Title: SFML 2.0 with mono
Post by: stgben on January 05, 2012, 11:41:22 pm
No joy. It may be the small difference between linux and mac, but after 6 hours of wracking my brain on this I'm going to give it a break.
Title: SFML 2.0 with mono
Post by: Laurent on January 06, 2012, 07:56:37 am
Oh, so you are on OS X?
Title: SFML 2.0 with mono
Post by: stgben on January 06, 2012, 08:33:32 pm
Yeah. I've gone over every thread I can find with SFML.Net/Mono without luck. Do you know what the equivalent file type under Mac is for .so? I've been using .dylib in place for the guide you linked.

For the time being I'm just going to code in C++.
Title: SFML 2.0 with mono
Post by: Laurent on January 06, 2012, 08:39:54 pm
It should be .dylib, yes. But do you have the CSFML .dylib files?
Title: SFML 2.0 with mono
Post by: stgben on January 06, 2012, 09:04:55 pm
Yes I compiled everything from scratch: SFML (older revision, pre- merge branch into Drawables), CSFML, and SFML.Net, all using Makefiles.