0

I wanted to use the libtcod library. I'm running windows 8 64 bit and I use dev-c++.

Basically, the tutorial says that "if you are on a 64bit system you'll have to recompile the library, because the pre-compiled are only available for 32 bit systems". How do I do that? It does not explain that so I don't even know what I am supposed to do.

Prashant Kumar
  • 20,069
  • 14
  • 47
  • 63
olinarr
  • 261
  • 3
  • 13
  • Have you tried downloading the code and compiling it? – Taylor Brandstetter Dec 04 '13 at 20:55
  • well in the libtcod folder there is a folder called "src" full of .cpp files, but they are not ALL the files that I need (the library has multiple .h files, while there are only a few .cpp files in there). And I can't compile them/ I wouldn't know how to make them into a .h file. – olinarr Dec 04 '13 at 20:57
  • 2
    http://doryen.eptalys.net/data/libtcod/doc/1.5.2/html2/compile_libtcod_mingw.html Everything is explained here... – Johan Dec 04 '13 at 21:17

1 Answers1

1

Everything is explained in the documentation from the libtcod site...

Here is what to do:

In Mingw Shell, type :

hg clone https://bitbucket.org/jice/libtcod

Go in libtcod's main directory :

cd libtcod

And start the compilation :

make -f makefiles/makefile-mingw

The compilation make take a few seconds depending on your CPU speed. Once it's finished, compile the samples :

make -f makefiles/makefile-samples-mingw

Check that everything is ok by running the samples :

./samples_cpp
Johan
  • 3,728
  • 16
  • 25
  • Silly me! Thank you very much! I googled it but I didn't find anything! Thank you very much! – olinarr Dec 05 '13 at 12:59
  • Ouch! it gives me another error. When I compile the "make -f makefiles/makefile-mingw" it says mingw32-gcc not found... What do? Thank you. – olinarr Dec 05 '13 at 13:20
  • This is certainly because your install is 64b and the makefile is for building à 64b... That's a bit boggus and unprofessional. You can try editing the makefile to replace `CC` and `CPP` by your correct compiler (`gcc` ? `mingw64-gcc` ?) and also the opengl32 lib by an opengl64. – Johan Dec 05 '13 at 13:41