Development:MSYS/MinGW

From Adonthell
Revision as of 04:55, 17 May 2007 by Ksterker (talk | contribs) (Start of Build on Windows page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Adonthell Development on Windows

Overview

This page is largely based on the README.Win32 the 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:

  1. MinGW-5.1.3.exe [1]
  2. MSys-1.0.10.exe [2]
  3. msysDTK-1.0.1.exe [3]

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 GNU Autotools

Install National Language Support

This step is optional and only required if you want to produce a version of Adonthell that can be localized to languages other than English.

Install Adonthell Prerequisites

[Category:Development]