Development:MSYS/MinGW
Adonthell Development on Windows
Overview
This page is largely based on the README.Win32 that comes with Adonthell's source code and describes how to set up an environment for developing Adonthell on Windows. In contrast to latter it doesn't assume that you are a Unix guru already.
The general idea is to create a small Unix-like environment on your Windows system that can host Adonthell, which has its origins in the GNU/Linux world. That way, development on Adonthell can be consistent across platforms without the need to accommodate for radically different build systems and compilers.
Install MSYS/MinGW
Download the following files from the MinGW website and install in this order:
Follow these instructions if you need help with the installation. Afterwards, launch MSys from the Windows Start Menu.
Since MSYS does not include the program more we'll have to create a symlink:
ln -s /usr/bin/less.exe /usr/bin/more
We also have to set a number of environment variables. To make them persistent, we add them to ~/.profile:
echo "export CFLAGS=-I/usr/local/include" >> ~/.profile echo "export CPPFLAGS=-I/usr/local/include" >> ~/.profile echo "export CXXFLAGS=-I/usr/local/include" >> ~/.profile echo "export LDFLAGS=-L/usr/local/lib" >> ~/.profile
You can check that they were added correctly with more ~/.profile. If you wonder why we don't use an editor to modify that file: the editor that comes with MSYS is vi, which might feel strange if you never used it before. You should consider learning it though, if you don't want to switch between the shell and a graphical text editor just to make small changes to some files.
Install Adonthell Prerequisites
Now that our minimal unix system is installed, we can install all of Adonthell's Dependencies.