Development:MSYS/MinGW: Difference between revisions

From Adonthell
Jump to navigation Jump to search
Start of Build on Windows page
 
m fixed typos
Line 3: Line 3:
== Overview ==
== Overview ==


This page is largely based on the [http://cvs.savannah.nongnu.org/viewvc/adonthell/README.Win32?root=adonthell&view=markup 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.
This page is largely based on the [http://cvs.savannah.nongnu.org/viewvc/adonthell/README.Win32?root=adonthell&view=markup 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.
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.
Line 30: Line 30:
You can check that they were added correctly with <tt>more ~/.profile</tt>. If you wonder  why we don't use an editor to modify that file: the editor that comes with MSYS is [http://en.wikipedia.org/wiki/Vi 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.
You can check that they were added correctly with <tt>more ~/.profile</tt>. If you wonder  why we don't use an editor to modify that file: the editor that comes with MSYS is [http://en.wikipedia.org/wiki/Vi 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 Adonthell Prerequisites ==


== Install National Language Support ==
Now that our minimal unix system is installed, we can install all of Adonthell's [[Development:Dependency Matrix|Dependencies]].


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]
[[Category:Development]]

Revision as of 05:30, 17 May 2007

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:

  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 Adonthell Prerequisites

Now that our minimal unix system is installed, we can install all of Adonthell's Dependencies.