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

Author Topic: Issue with compilation of everything  (Read 3508 times)

0 Members and 1 Guest are viewing this topic.

yewbie

  • Newbie
  • *
  • Posts: 6
    • View Profile
Issue with compilation of everything
« on: July 17, 2014, 01:07:34 am »
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.zip

I 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 :(

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
AW: Issue with compilation of everything
« Reply #1 on: July 17, 2014, 08:09:14 am »
I'm not an expert in the .NET world, but if you can't build CSFML you could take a look at my Nightly Builds. ;)

Also I suggest you upgrade to VS 2013.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

yewbie

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Issue with compilation of everything
« Reply #2 on: July 17, 2014, 04:36:25 pm »
Awesome man I tried your nightly build of CSFML and it works great, thanks!!

 

anything