Building NitrOS9 in Windows using MinGW

From NitrOS-9
Revision as of 15:46, 18 July 2013 by Aaronwolfe (Talk | contribs) (Step 1: Get MinGW)

Jump to: navigation, search

Building NitrOS9 with MinGW - Step by Step

Step 1: Get 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:

  • In the MinGW installer, choose "Download latest repository catalogue"
  • On the Select Components page, add check by "MSYS Basic System"

Step 2: Get Mercurial

A: Visit [1]

B: Pick the version for your system, download and install with defaults


Step 3: Configure your MinGW environment A: Open MinGW Shell (a new icon that's been added to your start menu)

B: Add a couple extra packages by typing the following commands:

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

C: 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"

D: Make a place on the filesystem to do our building. *DO NOT USE ANY PATH WITH A WINDOWS DRIVE LETTER IN IT, I.E. "/c/idontlisten". THIS WILL CAUSE MUCH PAIN* I strongly suggest /usr/src.

 >>> mkdir /usr/src

Step 4: Download, build and install lwtools

Type these:

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


Step 5: Download, build and install the toolshed

Type these:

 >>> 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)


Step 6: Download and build NitrOS9!

 >>> cd /usr/src
 >>> hg clone -b lwtools-port 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.