Building NitrOS9 in Windows using MinGW
Building NitrOS9 with MinGW - Step by Step
Step 1: Get MinGW
Visit [1]
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 [2]
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.