... at IWR Heidelberg

Compiling the source code with Windows


Step 1: Installing a compiler
We used Bloodshed Dev-Cpp (v.4.9.9.2), which is freeware and can be downloaded right here. Follow the instructions given there to install the compiler.


Step 2: Building the libtiff library
Download the files "LibTIFF for win32" and "libtiff headerfiles for your compiler". From "LibTIFF for win32", you have to take the libtiff.lib file and copy it to the /lib/-folder of the compiler. The four header-files, which can be found in the "libtiff headerfiles for your compiler", need to be copyed into the /includes/-folder of your compiler.
Another way to install the libtiff - library is to use the program "LibTIFF for Windows". You can install this software and than copy libtiff.lib and the four headerfiles in the same way as mentioned above. The four files can be found in the installation path of "LibTIFF for Windows" in the folders /lib and /includes.


Step 3: Compiling our sourcefiles

  1. download the source files from our download section
  2. start the command line (cmd.exe)
  3. browse to the folder where the downloaded source files are located
  4. type "<folder to gcc>gcc -O3 -DWIN -std=c99 -o terrain terrain.c -llibtiff" and enter (this will create an executable file named "terrain" in the same folder)

    Note: The default <folder to gcc> is 'c:/dev-cpp/bin/'. You can leave <folder to gcc> away and just typ 'gcc ...", if you define your Dev-Cpp-Binary-Path within the PATH-Variable of Windows (seek for 'environment variable' within the system control center or at google, if you don't know how to change this)

    Note 2: In order to execute the binary file, you will need the files 'jpeg62.dll', 'libtiff3.dll' and 'zlib1.dll' to be in the same folder as your binarys. You can get this files either by downloading the executable files for windows in our 'downloads & links' - section or by copying them from the /bin/-folder of the program 'TIFF 3.8.2 for Windows'. A link to this program can be found in our 'downloads & links' - section, too.


Step 4: Compiling the delaunay-program
Compile the source code of the triangle-program and put the binary-file into the same folder as the terrain-binary. Visit the offical page for more information.


Click here to get back to the documentation overview.