libtcoddocumentation

17.2. On Linux

Linux compilation


On a freshly installed Ubuntu :
Get the tools :
sudo apt-get install gcc g++ make upx electric-fence libsdl1.2-dev mercurial


Get the latest sources :
hg clone https://bitbucket.org/jice/libtcod


Compile the library :
cd libtcod/

make -f makefiles/makefile-linux clean all

(or makefile-linux64 on 64 bits linux)

Compile the samples :
make -f makefiles/makefile-samples-linux


Enjoy :
./samples_cpp