Use the VS 2017 download links here:
https://www.sfml-dev.org/download/sfml/2.5.1/
You can then unpack the SFML archive wherever you like. Copying headers and libraries to your installation of Visual Studio is not recommended, it's better to keep libraries in their own separate location, especially if you intend to use several versions of the same library, or several compilers. |
Previously versions of VS like 2010 were not compatible with VS 2013 and beyond, but VS 2017 and VS 2019 are compatible.
Then, follow the rest of the tutorial:
https://www.sfml-dev.org/tutorials/2.5/start-vc.php
"Creating and configuring a SFML project"
I just downloaded it myself and built it and ran the green circle example myself. The tutorial works.
One specific part of the tutorial that is slightly off: The "Additional Include Directories" is now found under Properties --> VC++ Directories --> Include Directories
But just as the tutorial says, you would put the path to the /include folder of the SFML package you downloaded.
e.g.
C:\libraries\SFML-2.5.1-windows-vc15-32-bit\SFML-2.5.1\include |
(I extracted the zip file in a centralized C:\libraries folder. You can put it anywhere.)
e.g. for the Linker's Additional Library Directories:
C:\libraries\SFML-2.5.1-windows-vc15-32-bit\SFML-2.5.1\lib |
- Make sure that if you are building as debug, you set the Linker's Additional Dependencies to be the -d lib files, e.g.
sfml-graphics-d.lib
sfml-window-d.lib
sfml-system-d.lib |
Don't use the optional SFML_STATIC. I mean, you can, but it will force you to configure additional dependencies. Just make sure you copy the -d DLL files into the folder where your exe is built.
e.g. inside the folder where your exe is, copy:
sfml-graphics-d-2.dll
sfml-system-d-2.dll
sfml-window-d-2.dll |
The DLL files are found in the /bin folder of the downloaded zip.