Aller au contenu

SFML 2.5.1

Windows

On Windows, choosing 32 or 64-bit libraries should be based on which platform you want to compile for, not which OS you have. Indeed, you can perfectly compile and run a 32-bit program on a 64-bit Windows. So you'll most likely want to target 32-bit platforms, to have the largest possible audience. Choose 64-bit packages only if you have good reasons.

Unless you are using a newer version of Visual Studio, the compiler versions have to match 100%!

In case you are using Visual Studio 2015 or newer, you can go ahead and use the SFML version compiled for Visual C++ 15 (VS 2017), which is still compatible with newer versions of the toolchain.

Here are links to the specific MinGW compiler versions used to build the provided packages:

32-bit 64-bit
Visual C++ 15 (2017) - Download | 16.3 MB Visual C++ 15 (2017) - Download | 18.0 MB
Visual C++ 14 (2015) - Download | 18.0 MB Visual C++ 14 (2015) - Download | 19.9 MB
Visual C++ 12 (2013) - Download | 18.3 MB Visual C++ 12 (2013) - Download | 20.3 MB
GCC 5.1.0 TDM (SJLJ) - Code::Blocks - Download | 14.1 MB
GCC 7.3.0 MinGW (DW2) - Download | 15.5 MB GCC 7.3.0 MinGW (SEH) - Download | 16.5 MB

Linux

On Linux, if you have a 64-bit OS then you have the 64-bit toolchain installed by default. Compiling for 32-bit is possible, but you have to install specific packages and/or use specific compiler options to do so. So downloading the 64-bit libraries is the easiest solution if you're on a 64-bit Linux.
If you require a 32-bit build of SFML you'll have to build it yourself.

Warning

It's recommended to use the SFML version from your package manager (if recent enough) or build from source to prevent incompatibilities.

GCC - 64-bit - Download | 2.21 MB

macOS

Info

macOS libraries are only compatible with 64-bit systems.

Clang - 64-bit (OS X 10.7+, compatible with C++11 and libc++) - Download | 5.50 MB

All OS

Source code - Download | 22.2 MB

HTML Documentation - Download | 1.42 MB