You can download binaries for Windows from the main http://dcputoolcha.in/ website.
IMPORTANT NOTICE: GnuWin32 no longer works as it is too out-of-date to support the reentrant lexer and parser used in the preprocesser system. If you used the old instructions, you must now uninstall the GnuWin32 versions, remove GnuWin32 from your PATH and then follow the instructions below.
You need to install Cygwin. You can do this by downloading Cygwin from this link:
Ensure that during the setup process you select the Flex and Bison packages during installation. Do not install CMake under Cygwin. You should install Cygwin into a path without spaces (it will inform you to do this).
Once installed, you must then add the Cygwin bin/ folder (located under where-ever you installed Cygwin) to your system PATH environment variable (Google has the answer if you don't know how to do this). For example, I install Cygwin in C:\UNIX, thus the path for me to add would be C:\UNIX\bin.
You must then install CMake; you can download CMake from:
You now need to add CMake to your system PATH. CMake does offer to do this for you in the installer, but occasionally this will fail and you will need to do it yourself.
Once CMake is installed, start a command prompt (you must open a new command prompt since you modified PATH) and type the following commands:
> cd path/to/repo
> cmake -G "Visual Studio 10"
Otherwise, this should work correctly and produce a Visual Studio 2010 solution that you can open up in Visual Studio 2010 C++ Express and compile!
When using Cygwin, then there are some important notes:
- You must use the Windows version of CMake. You can't have this installed as part of Cygwin.
- and most importantly you must initially run
cmake -G "Visual Studio 10"
from the command prompt. Cygwin's case sensitivity causes the initial configuration and detection of the C compiler to screw up badly and the only way to fix it is to restart your computer. You will get errors like "unable to set key 'TMP', key 'Tmp' already exists" which will also affect Visual Studio until you restart if you don't adhere to this! - Once you have done the initial configuration, you may then run cmake from Cygwin to update project files; it's just the initial configuration that can't be done in Cygwin.
First install a few required packages with
$ sudo apt-get install bison flex cmake build-essential libreadline-dev libsdl1.2-dev
Download libtcod and copy
$ sudo cp libtcod*.so /usr/lib
$ sudo cp -r include /usr/include/libtcod
Next clone the repository into a new folder
$ git clone git://github.com/DCPUTeam/DCPUToolchain.git dcputoolchain
$ cd dcputoolchain
Now generate the makefiles and and compile with
dcputoolchain$ cd build
dcputoolchain/build$ cmake ..
dcputoolchain/build$ make
If everything went well the binaries are in dcputoolchain/Debug
First install a few required packages with
$ sudo yum install bison flex cmake mesa-lib* zlib-devel libpng-devel
$ sudo yum groupinstall "Development Tools"
Download libtcod and copy
$ sudo cp libtcod*.so /usr/lib
$ sudo cp -r include /usr/include/libtcod
Next clone the repository into a new folder
$ git clone git://github.com/DCPUTeam/DCPUToolchain.git dcputoolchain
$ cd dcputoolchain
Now generate the makefiles and and compile with
dcputoolchain$ cd build
dcputoolchain/build$ cmake ..
dcputoolchain/build$ make
If everything went well the binaries are in dcputoolchain/Debug
First install Xcode which should install everything you need to compile.
Next, you'll need to install a few other things, I'll be using homebrew for this, which you can download here, but you could use port, fink or any other way you want to install it.
You will need to install cmake, git, hg and sdl.
$ brew install cmake
$ brew install git
$ brew install hg
$ brew install sdl
Once all of these are installed, you're first going to want to clone the libtcod source from here. The reason we are building it from scratch, is because the downloads only has a i386 built dylib, and most likely your going to be building with x64_86, so we'll just build manually.
Clone the repo to a folder on your computer, and then enter the directory.
$ hg clone https://bitbucket.org/jice/libtcod
$ cd libtcod
Now we can build libtcod with cmake and make.
$ cmake .
$ make
You may see a few warnings, as long as it says 100% at the end, you should be just fine. In order to create the dylib you need, you'll need to use make install, and then copy it to your lib folder, I use /usr/local/lib, but you can use /usr/lib if that's what you use/prefer.
$ make install
$ sudo cp libtcod.dylib /usr/local/lib
$ sudo cp -r include /usr/include/libtcod
Now that you've copied the dylib for libtcod, you should be able to clone DCPUToolchain if you haven't already.
$ git clone https://github.com/DCPUTeam/DCPUToolchain.git
$ cd DCPUToolchain/build
Now we can build it.
$ cmake ..
$ make
If everything looks like it didn't crash and burn, then you should find everything you need in dcputoolchain/Debug