So for the past few days I've been trying to get everything together to build the latest SFML.net bindings as well as the latest SFML and CSFML to get the latest release to fix the issue with windows focus only when clicking the title bar (small issue I know).
I downloaded the latest Master of SFML.NET from
https://github.com/SFML/SFML.Net/archive/master.zipI then proceeded to open the project up in VS2010 (after conversion from the 2008 project with the zip file), set my options to X86 with release and compiled - no problem.
This gives me compiled DLL's for
sfmlnet-audio-2.dll
sfmlnet-graphics-2.dll
sfmlnet-system-2.dll
sfmlnet-window-2.dll
Awesome.
I add those references to my project (that works for SFML 2.1) and and since the addition of system I need to update the references of Vector2f etc (still no problem) after that everything compiles just great.
Now when I try to run my program I get:
sfRenderWindow_drawVertexArray(((RenderWindow)target).CPointer, CPointer, ref marshaledStates);
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
I read in another thread that I need to download and recompile the latest csfml files and include them with the project instead, so I download them from
https://github.com/SFML/CSFML/archive/master.zip.
I then install CMake and build the program setup for VS2010 (which was a little difficult considering I also had to download
https://github.com/SFML/SFML/archive/master.zip and do the same thing first and a bunch of pointing to different library files manually to get Cmake to compile (but it did end up compiling with no errors).
And when I try to compile the VS2010 project for CSFML I get the following linker error, is it something I messed up with the compilation of SFML?
Error 1 error LNK2019: unresolved external symbol "public: static struct sf::Shader::CurrentTextureType sf::Shader::CurrentTexture" (?CurrentTexture@Shader@sf@@2UCurrentTextureType@12@A) referenced in function _sfShader_setCurrentTextureParameter C:\Users\chris\Desktop\Wut2\CSFML2\src\SFML\Graphics\Shader.obj csfml-graphics
I am a bit frazzled here so if I left out any super critical information please let me know!
TLDR;
I think I was able to compile SFML.net without any problems but recompiling the latest CSFML is giving me problems