Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: SFML 2.0 with mono  (Read 4441 times)

0 Members and 1 Guest are viewing this topic.

m00npirate

  • Newbie
  • *
  • Posts: 18
    • View Profile
SFML 2.0 with mono
« 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!

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
SFML 2.0 with mono
« Reply #1 on: November 06, 2011, 09:55:42 am »
CSFML libraries are provided in the SFML.Net repository, you don't have to recompile everything ;)
Laurent Gomila - SFML developer

stgben

  • Newbie
  • *
  • Posts: 4
    • View Profile
SFML 2.0 with mono
« Reply #2 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.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
SFML 2.0 with mono
« Reply #3 on: January 05, 2012, 10:12:44 pm »
Laurent Gomila - SFML developer

stgben

  • Newbie
  • *
  • Posts: 4
    • View Profile
SFML 2.0 with mono
« Reply #4 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.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
SFML 2.0 with mono
« Reply #5 on: January 06, 2012, 07:56:37 am »
Oh, so you are on OS X?
Laurent Gomila - SFML developer

stgben

  • Newbie
  • *
  • Posts: 4
    • View Profile
SFML 2.0 with mono
« Reply #6 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++.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
SFML 2.0 with mono
« Reply #7 on: January 06, 2012, 08:39:54 pm »
It should be .dylib, yes. But do you have the CSFML .dylib files?
Laurent Gomila - SFML developer

stgben

  • Newbie
  • *
  • Posts: 4
    • View Profile
SFML 2.0 with mono
« Reply #8 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.

 

anything