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

Author Topic: Compatibility and Dependencies  (Read 4277 times)

0 Members and 1 Guest are viewing this topic.

SirusDoma

  • Newbie
  • *
  • Posts: 9
  • Just another ordinary O2Jammer
    • View Profile
Compatibility and Dependencies
« on: May 10, 2015, 06:37:55 pm »
Hello i am looking for 2D Game Library with C# language and i found SFML.
I haven't give a try to this library, i have something to ask before decide to use SFML.NET

first, based what i read at download page:
Quote
SFML.Net is the official binding of SFML for the .Net language family (C#, VB.Net, C++/CLI, etc.). It is built on top of the C binding, CSFML, to ensure maximum compatibility across platforms (i.e. it works with Mono)

I see SFML.NET is able to run with Mono and cross platforms but i only see .dll files under libs folder which, i think its.. only compatible at windows?

and do i need put all csfml dll files beside my executable in order to make my game run properly? is there a way to embed them or.. a SFML .NET port that fully written in C# with OpenTK?

sorry if the questions sounds nonsense / newbie
but, thanks!

zsbzsb

  • Hero Member
  • *****
  • Posts: 1409
  • Active Maintainer of CSFML/SFML.NET
    • View Profile
    • My little corner...
    • Email
Re: Compatibility and Dependencies
« Reply #1 on: May 10, 2015, 11:35:24 pm »
Quote
I see SFML.NET is able to run with Mono and cross platforms but i only see .dll files under libs folder which, i think its.. only compatible at windows?

SFML.Net SDK only ships with windows binaries (dlls). The actual C# dlls are cross platform (can be ran on mono without recompiling). However if you want to use SFML.Net with mono on linux you will need to download and install CSFML separately for those platforms.

Quote
and do i need put all csfml dll files beside my executable in order to make my game run properly?

Yes, same as any of dlls - they must be in a location where the OS can find them.

Quote
is there a way to embed them

Sure you can embed them, but then you need to extract them at runtime.

Quote
or a SFML .NET port that fully written in C# with OpenTK?

Now that would kinda defeat the purpose of a binding now wouldn't it?
Motion / MotionNET - Complete video / audio playback for SFML / SFML.NET

NetEXT - An SFML.NET Extension Library based on Thor

SirusDoma

  • Newbie
  • *
  • Posts: 9
  • Just another ordinary O2Jammer
    • View Profile
Re: Compatibility and Dependencies
« Reply #2 on: May 11, 2015, 02:48:33 am »
Thank you for answer!
It make things clear, one question, regarding your statement

Quote
and do i need put all csfml dll files beside my executable in order to make my game run properly?

Yes, same as any of dlls - they must be in a location where the OS can find them.

In Windows platform, can i just put csfml dll files in C:\Windows\System32\ ?

zsbzsb

  • Hero Member
  • *****
  • Posts: 1409
  • Active Maintainer of CSFML/SFML.NET
    • View Profile
    • My little corner...
    • Email
Re: Compatibility and Dependencies
« Reply #3 on: May 11, 2015, 03:02:38 am »
Quote
In Windows platform, can i just put csfml dll files in C:\Windows\System32\ ?

Of course you can, nothing is stopping you.... but that is just a very bad idea and you should never do that.
Motion / MotionNET - Complete video / audio playback for SFML / SFML.NET

NetEXT - An SFML.NET Extension Library based on Thor

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: Compatibility and Dependencies
« Reply #4 on: May 11, 2015, 11:11:42 am »
A better way would be to put the DLLs in another directory and specify this location in the PATH environment variable.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development: