-
Notifications
You must be signed in to change notification settings - Fork 5
Install on linux osx (gcc)
You must first compile and install the sfml from sources (see this tutorial).
Ocsfml requires several tools and library in order to be built:
-
boost
-
ocamlbuild
-
camlp4
-
cmake (>= 2.8): http://www.cmake.org/cmake/resources/software.html
-
findlib (>= 1.2.7): http://projects.camlcity.org/projects/findlib.html
-
gcc (>= 4.5) : http://gcc.gnu.org/
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 && sudo make install
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.