It took me a while to figure out the exact dependency names needed for SFML on CentOS 7. In case it saves anyone some time, here are the notes I took.
(Clean CentOS install, with Development Tools selected, cmake installed from source.)
All commands are run as rootGet extra repos (not sure if this is necessary for SFML or not...)
yum install epel-release
First, install dependencies:
yum install mesa-libGL-devel xcb-util-image-devel libudev-devel libjpeg-devel openal-devel libvorbis-devel flac-devel
go to SFML source directory
mkdir build
cd build
cmake ..
make
make install
It installs to /usr/local/lib, which is not in the dynamic linking path by default. To fix it, we need to add an entry in the folder /etc/ld.conf.so.d:
echo /usr/local/lib > /etc/ld.so.conf.d/usr_local_lib.conf
ldconfig -v