Skip to content

Install on linux osx (gcc)

JoeDralliam edited this page Apr 18, 2012 · 4 revisions

Install on linux/osx (gcc)

Install the SFML

You must first compile and install the sfml from sources (see this tutorial).

Ocsfml dependencies

Ocsfml requires several tools and library in order to be built:

Building ocsfml

You need to obtain the sources. In a console, navigates to the directory where you want to download them, and type: git clone git://github.com/JoeDralliam/Ocsfml.git Ocsfml

cd Ocsfml

mkdir build

cd build

To configure ocsfml, you must invoke cmake. If some of the ocsfml dependencies are in exotic directories, pass the -i argument to cmake, change what you need to, and leave the rest unchanged. Thus type : cmake .. or cmake -i ..

You may as well use cmake-gui.

Finally, build and install ocsfml (this stage may take a few minutes) : make external_cpp && sudo make install_external_cpp && make && sudo make install

Testing the installation

You are almost done ! As ocsfml is still unstable, I highly reccommend you to build the tests, to make sure it was correctly installed. Type (in the build directory):

make tests && sudo make install_tests

Then go to /usr/local/share/Ocsfml/Tests and launch them.

Clone this wiki locally