1
General / Installing SFML 2.3.2 on CentOS 7 (1511), using cmake
« on: January 22, 2016, 10:53:43 am »
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 root
Get extra repos (not sure if this is necessary for SFML or not...)
First, install dependencies:
go to SFML source directory
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:
(Clean CentOS install, with Development Tools selected, cmake installed from source.)
All commands are run as root
Get 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
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
ldconfig -v