Getting the Source Code
You can download the source code from the
Downloads section. If you prefer to use the code in the Git repository, please contact me so I can add you as contributor for this project.
Getting the Compiler
Windows 7 Users
I recommend the
Visual Studio 2012 Express for Desktop from Microsoft. It's free (you can download it from
here), but more importantly is that you'll save your time from slash / backslash issue as if you were using MinGW or Cygwin.
Ubuntu Users
Let's make life easier. Type this in your shell to install the required compiler
# sudo apt-get install g++ codelite
Codelite is the IDE for the compiler.
Getting SFML Library
Windows 7 Users
This step is optional (really !!). The SFML-2.1 library is included inside the release zip file. But if you want it, you can download SFML-2.1 for Visual Studio 2012 from
http://sfml-dev.org/download/sfml/2.1/.
If you download the latest SFML version, you might also want to read
this on how to setup SFML in the Visual Studio project.
Ubuntu / Linux Users
The release zip file contains SFML shared library (*.so) for Ubuntu 12.04 (Precise). However, if your Ubuntu is newer than mine, or if you are using different Linux distro, you might have to recompile the SFML library yourselves.
I was using Ubuntu-12.04, and apparently the SFML-2.1 binary release for Linux (
http://sfml-dev.org/tutorials/2.1/start-vc.php) didn't match my Ubuntu. The libglew that Ubuntu-12.04 is using is libglew-1.6, while the SFML-2.1 binary requires libglew-1.5. So, I recompiled the SFML-2.1 library myself.
To recompile SFML-2.1 library under Ubuntu-12.04, issue this commands:
# sudo apt-get install libsndfile1-dev libxrandr-dev libjpeg-dev libopenal-dev libglew-dev libfreetype6-dev libgl1-mesa-dev libegl1-mesa-dev cmake
# unzip SFML-2.1-sources.zip
# cd SFML-2.1
# cmake .
# make
The SFML library will be put under SFML-2.1/lib directory. Copy all of the shared libraries (*.so) into the game's SFML-2.1/lib directory.
Test Your Build Environment
back to Table of Contents