< index

=====================================
0. Compiling with libtcod
=====================================

> 1. Colors

Compiling your game using libtcod

Click on the link corresponding to your platform.
0.1 MINGW32 without IDE
0.2 MINGW32 with Code::Blocks
0.3 Visual Studio 2005 (TODO)
0.4 Visual Studio 2008 (TODO)
0.5 GCC on Linux
0.6 GCC on MacOSX

Compiling libtcod itself

You can only do that if you get libtcod through svn. To do this, make sure you have svn installed (or any graphical client like tortoiseSvn on Windows) and type the following command :

svn co http://doryen.eptalys.net/svn-libtcod/trunk libtcod-1.5.0

Now you have the developer version of libtcod in the libtcod-1.5.0 directory. You can use some predefined makefiles located in the makefiles directory. Check the README.txt in this directory to know which makefile you have to use. You can also use the autotools system if your OS support it. On linux, make sure the autoconf and libtool packages are installed. Go in the autotools directory and type :

autoreconf
./configure
make

This should produce the samples exe in autotools directory. Note that you have to run the samples from the main libtcod directory for them to be able to access the png they need :

cd .. 
./autotools/samples_cpp