Could I get some help installing this?
08/09/2014 UPDATE: The template's Post-Build Event was updated to copy the SFML DLLs to
$(OutDir) rather than to
$(SolutionDir)$(Configuration)\. The rationale is that if you changed the Output Directory from
$(SolutionDir)$(Configuration)\ to some other folder, the Post-Build Event would still copy the DLLs to
$(SolutionDir)$(Configuration)\ rather than to your custom output folder. Fixed.
In order to make things easier, I took a shot at doing a bundle (VS2013 binaries + template) that is simpler to install and use. Here are the steps:
BINARIES1) Download the binaries from
here.
2) Unzip anywhere you want. As a suggestion, you could use
C:\SFML-2.1.
3) Create a system environment variable called
SFML2_HOME pointing to the folder where you unzipped the file.
TEMPLATE1) Download the template from
here.
2) Copy the attached ZIP file to
Documents\Visual Studio 2013\Templates\ProjectTemplates under your home folder.
3) Open Visual Studio and click FILE, New Project... The "SFML2 Application" Visual C++ template is now available. Create your project.
4) The project is all set up, and the small bundled sample program (the one from the
tutorial) is ready to compile.
Details:
The binaries and the template were made with Visual Studio 2013 Express Edition Update 1 running on Windows 8.1 Pro x64. Since VS2013EE only ships with a x86 SDK, I couldn't try and make the template x64-compatible. I also didn't bother building static libraries.
Also, it doesn't matter if you have the SFML2 DLLs in your
PATH environment variable nor in the output folder. The template includes a Post-Build Event that copies the DLLs from
$SFML2_HOME\bin to the output folder in case they're not there already.