Building NitrOS9 in Windows using MinGW

From NitrOS-9
Revision as of 19:32, 11 January 2014 by Tormod (Talk | contribs) (Download and build NitrOS9: use default branch)

Jump to: navigation, search

Install MinGW

Visit https://sourceforge.net/projects/mingw/files/Installer/mingw-get-inst/

Find "Looking for the latest version? Download mingw-get-inst-XXXXXXX.exe" and click it, download and execute this file.

Install with defaults other than these two exceptions:

  • On the Repository Catalogues page, choose "Download latest repository catalogue"
  • On the Select Components page, add check by "MSYS Basic System"

Install Mercurial

Visit http://mercurial.selenic.com/wiki/Download#Windows

Download and install either Mercurial-X.X.X (32-bit exe) or Mercurial-X.X.X (64-bit exe). Use the defaults.

Configure your MinGW environment

Open MinGW Shell (a new icon that has been added to your start menu during the MinGW install)

Add a couple extra packages by typing the following commands:

 mingw-get install msys-coreutils
 mingw-get install msys-zip

Fix the path so that "." is not used. Assuming you followed directions above, this should work fine:

 export PATH="/usr/local/bin:/mingw/bin:/bin:/c/Windows/system32:/c/Windows:/c/Program Files/Mercurial"

Make a place on the filesystem to do our building. I strongly suggest /usr/src:

 mkdir /usr/src

Install lwtools

In the MinGW shell, enter these commands:

 cd /usr/src
 hg clone http://lwtools.projects.l-w.ca/hg/ lwtools
 cd lwtools
 make
 make install


Install the toolshed

In the MinGW shell, enter these commands:

 cd /usr/src
 hg clone http://hg.code.sf.net/p/toolshed/code toolshed
 cd toolshed
 make -C build/unix install CC=gcc

(this will give some warnings and fail on cocofuse, we don't care)


Download and build NitrOS9

In the MinGW shell, enter these commands:

 cd /usr/src
 hg clone http://hg.code.sf.net/p/nitros9/code nitros9
 cd nitros9
 export NITROS9DIR=$PWD

At this point you are ready to rock. To build *all* of NitrOS9 including things you almost certainly don't want:

 make dsk

Alternatively you can first change to the directory containing the system you'd like to build, for instance:

 cd level2/coco3
 make dsk


Wait a bit, and with any luck you'll have some nice fresh nitros9 .dsk files.

Note: Your nitros9 build directory is accessible at C:\MinGW\msys\1.0\src\nitros9 from Windows.