/* * libtcod 1.6.0 * Copyright (c) 2008,2009,2010,2012,2013 Jice & Mingos * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * The name of Jice or Mingos may not be used to endorse or promote products * derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY JICE AND MINGOS ``AS IS'' AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL JICE OR MINGOS BE LIABLE FOR ANY * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* This file contains no code. It's only an input for doctcod */ /** @PageName compile_libtcod @PageCategory Howtos @PageTitle How to compile libtcod @PageDesc This page contains howtos about how to get the latest libtcod source code and compile it. */ /** @PageName compile_libtcod_mingw @PageFather compile_libtcod @PageTitle On Windows with Mingw @PageDesc
hg clone https://bitbucket.org/jice/libtcodThis might take some time so grab a beer. Once it's finished, a libtcod directory has been created. You can check the documentation (the same you're currently reading) in libtcod/doc/index2.html. The headers are in libtcod/include. The source code in libtcod/src.
cd libtcodAnd start the compilation :
make -f makefiles/makefile-mingwThe compilation make take a few seconds depending on your CPU speed. Once it's finished, compile the samples :
make -f makefiles/makefile-samples-mingwCheck that everything is ok by running the samples :
./samples_cpp*/ /** @PageName compile_libtcod_linux @PageFather compile_libtcod @PageTitle On Linux @PageDesc
sudo apt-get install gcc g++ make upx electric-fence libsdl1.2-dev mercurialGet the latest sources :
hg clone https://bitbucket.org/jice/libtcodCompile the library :
cd libtcod/
make -f makefiles/makefile-linux clean allCompile the samples :
make -f makefiles/makefile-samples-linuxEnjoy :
./samples_cpp*/ /** @PageName compile_libtcod_codelite @PageFather compile_libtcod @PageTitle Using CodeLite @PageDesc TODO */ /** @PageName compile_libtcod_haiku @PageFather compile_libtcod @PageTitle On Haiku @PageDesc TODO */ /** @PageName start_project @PageCategory Howtos @PageTitle How to start a project @PageDesc This page contains howtos about how to create a project from scratch */ /** @PageName start_mingw @PageFather start_project @PageTitle On Windows with Mingw @PageDesc TODO */ /** @PageName start_linux @PageFather start_project @PageTitle On Linux @PageDesc TODO */ /** @PageName start_codelite @PageFather start_project @PageTitle Using CodeLite @PageDesc TODO */