Greetings.
To compile from source try following steps.
0. Preparing dev-env and tools
Install "release" and dev versions of following libraries, as SFML is dependent in them:
pthread, opengl, xlib, xrandr, freetype, glew, jpeg, sndfile, openal
Open terminal (Win+T) and run following command (warn could be typos)
sudo apt-get install libpthread-stubs0 libpthread-stubs0-dev libgl1-mesa-glx libgl1-mesa-dri libgl1-mesa-dev libx11-6 libx11-dev libxrandr2 libxrandr-dev libfreetype6 libfreetype6-dev libglew1.8 libglew-dev libjpeg-turbo8 libjpeg-turbo8-dev libsndfile1 libsndfile1-dev libopenal1 libopenal-dev cmake cmake-qt-gui git
1. Getting source code from git
In terminal window run following command:
mkdir -p ~/dev/sfml && cd ~/dev/sfml && git init && git pull
https://github.com/SFML/SFML && mkdir build && mkdir build-d && cmake-gui
The source code will be located in your "~/dev/sfml" folder.
2. Making release version of SFML
In cmake gui window write "~/dev/sfml" to "Where is source code" input field.
Write "~/dev/sfml/build" to "Where to build the binaries" input field.
Press "Configure" button, select "Unix makefiles" and "Use default native compilers". Wait until process is finished.
Put tick mark to "SFML_INSTALL_PKGCONFIG_FILES" and press "Configure" again after that press "Generate".
2. Making debug version of SFML
In cmake gui window write "~/dev/sfml" to "Where is source code" input field.
Write "~/dev/sfml/build-d" to "Where to build the binaries" input field.
Change "CMAKE_BUILD_TYPE" to "Debug", put tick mark to "SFML_INSTALL_PKGCONFIG_FILES" and press "Configure" again then press "Generate" button.
Close cmake gui window.
3. Compiling and installing SFML release and debug versions. SFML will be installed in standard location
In terminal window run following command lines:
For release version of SFML run
cd ~/dev/sfml/build && sudo make all && sudo make install
For debug version run
cd ~/dev/sfml/build-d && sudo make all && sudo make install
For next steps refer to this tutorials
http://www.sfml-dev.org/tutorials/2.1/start-linux.phphttp://www.sfml-dev.org/tutorials/2.1/start-cb.phpHope this helps.