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

Author Topic: Problems with Mono & SFML.Net (Ubuntu)  (Read 3865 times)

0 Members and 1 Guest are viewing this topic.

chilliboy999

  • Newbie
  • *
  • Posts: 16
    • View Profile
Problems with Mono & SFML.Net (Ubuntu)
« on: October 15, 2013, 12:20:22 pm »
Hey guys,
first of all, i read many topics in this forum & googled a lot about how to get
Mono and SFML.Net running.
But the only half-working solution is about installing csfml-1.6-libs via
apt-get and using them. But I want to use SFML.Net 2.x.

I have Ubuntu 12.04, Mono 2.10.8.1 & MonoDevelop 2.8.6.3.

The steps I took:
After installing Mono & MonoDevelop, I opend a new Project and added the sfmlnet-graphics-2.dll
to my references.

Afterwards I was able to use the SFML commands in MonoDevelop. I also copied the csfml-graphics-2.dll
in the same folder where my prog.exe was.

Then I created a prog.exe.config/csfml-graphics-2.dll.config file and wrote the following in it:

<configuration>
<dllmap dll="csfml-graphics-2.dll" target="libcsfml-graphics-2.so.2" />
</configuration>

After that I added this file to my Project like this:


Now I wanted to compile my project, but I got a DllNotFoundException: "csfml-graphics-2 not found"

Does anybody know how to get thes dll's running with mono on linux? :)

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Problems with Mono & SFML.Net (Ubuntu)
« Reply #1 on: October 15, 2013, 12:23:08 pm »
Is CSFML 2 installed?
Laurent Gomila - SFML developer

chilliboy999

  • Newbie
  • *
  • Posts: 16
    • View Profile
Re: Problems with Mono & SFML.Net (Ubuntu)
« Reply #2 on: October 15, 2013, 12:37:53 pm »
If i search for csfml in the ubuntu softwarecenter I only find libcsfml-1.6 :/

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Problems with Mono & SFML.Net (Ubuntu)
« Reply #3 on: October 15, 2013, 01:11:56 pm »
So because you can't easily install it, it should magically work without you doing anything? ;)

No, you must have CSFML 2 installed for SFML.Net to work (and SFML for CSFML to work). Either compile it from sources, or download the prebuilt package from the website.
Laurent Gomila - SFML developer

FRex

  • Hero Member
  • *****
  • Posts: 1848
  • Back to C++ gamedev with SFML in May 2023
    • View Profile
    • Email
Re: Problems with Mono & SFML.Net (Ubuntu)
« Reply #4 on: October 15, 2013, 01:44:45 pm »
Quote
So because you can't easily install it, it should magically work without you doing anything? ;)
So you're going to work on that? Awesome! ;) Really glad you use your influence over distro makers to make them pack SFML.
C# binding is missing from packages in Fedora too. Do something about that too while you're at it. :P
Also, I'd like a brainfuck binding...

Ok, sarcasm aside, it's time to go Linus on OP:
Quote
If i search for csfml in the ubuntu softwarecenter I only find libcsfml-1.6 :/
Then go bitch to fucking Canonical for not packaging it or learn to solve your own problems(hint: cmake + git + reading skills), we can't(and most of us don't want/care anyway) do shit about them not packaging it.
Back to C++ gamedev with SFML in May 2023

chilliboy999

  • Newbie
  • *
  • Posts: 16
    • View Profile
Re: Problems with Mono & SFML.Net (Ubuntu)
« Reply #5 on: October 15, 2013, 03:43:16 pm »
Quote
Then go bitch to fucking Canonical for not packaging it or learn to solve your own problems(hint: cmake + git + reading skills), we can't(and most of us don't want/care anyway) do shit about them not packaging it.

Hey!
No reason to become unpolite.
Not everyone is an expert.
And this is a forum for people to ask questions.
You also learned by asking questions (hint: you would be a bad teacher)

So, I said what I needed to say.
Now thank you for your advice (cmake+git+reading skills) ;)