SFML community forums
Bindings - other languages => DotNet => Topic started by: CssHammer on January 24, 2015, 01:21:36 pm
-
I downloaded SFML.Net-2.1-32bits, and because of missing csfml-system-2.dll I grabbed it from lastest CSFML nighty build. Now how I can use Clock class if I haven`t got sfmlnet-system-2.
This is what i have:
(http://s019.radikal.ru/i606/1501/a0/7ca9ad03e44b.png)
-
The system module has been added to SFML.Net adter 2.1, you must compile the latest sources.
-
Can you give me a direct link, please?
-
Everything that you need is on the website.
-
I downloaded everything that I can, and nothing contains this class
-
Current sources
The SFML.Net repository can be found at github.com (https://github.com/SFML/SFML.Net). From there, you can download the current source code (which contain the sources of the examples).
Was it hard to find?
-
So... why now I have System.BadImageFormatException in sfmlnet-graphics-2.dll... ???
-
Which version of the CSFML DLLs are you using?
-
That ones, which were put in SFML.Net-master zip in extlibs/x64 folder on github...
-
They are not up-to-date, you should recompile it or take the latest nightly builds.
-
So in nighty builds I tried this:
(http://i077.radikal.ru/1501/5a/539b2d9509c9.jpg)
and this:
(http://s61.radikal.ru/i171/1501/c4/d46d2c24ca36.jpg)
But its the same...may be I download the wrong packages?
-
Have you set everything for 32 bits? (your SFML.Net DLLs and project as well)
-
Keep in mind that due to incompatiblity CSFML doesn't yet work with SFML 2.2.
Besides that you don't need SFML since it has been linked statically into CSFML.
-
So all this libraries can only be set on x64 or x86 or Any CPU. And there are no warnings if all projects was set on x86
(http://s018.radikal.ru/i527/1501/e1/b144039fe755.png)
-
Are the dlls copied into bin directory?
Adding them into project root doesn't automatically copy them.
You'll have to either
a) place them into ProjectRoot/lib and include that folder into the project or
b) use postbuild events to copy them with commandline or
c) copy them manually
-
Yes, they are...
-
It would be great if someone send me an archive with workable solution (cssham03@gmail.com). If you can, I will leave you with such annoying requests ;D
-
Its not that complicated... Download CSFML from the nightly builds and SFML.NET from github. Then make sure you set all managed .net projects to either x86 or x64 and make sure the csfml libs match whichever choice you made.