This tutorial
will explain you how everybody can compile ReactOS with the minimalist GNU for
Win32 (MinGW)
- Firstly, you should download
the next 4 files (compiler):
- Open the MinGW-3.1.0.1.exe
and install it in 'C:\gcc' (the default directory).
- Extract the gcc-core-3.3.1-20030804-1.tar.gz
file in a temp directory (e.g. 'c:\temp') and copy all files (from gcc-core-3.3.1-20030804-1.tar.gz)
in the 'c:\gcc' directory.
- Do the same with gcc-g++-3.3.1-20030804-1.tar.gz
- Extract the nasm-0.98-win32.zip
in the 'c:\gcc\bin' directory
- Copy the file mingw32-make
from 'c:\gcc\bin' to 'c:\gcc\make'
- Set the environment variable:
- WinXP, Win2000:
- open the system property
(click right on 'My Computer')
- click on [Advanced]
- [Environment Variables]
- click on 'path' in the
'system variables'
- click [Edit]
- add 'c:\gcc\bin; c:\gcc;
' at the beginning
- [OK]
- Win9x:
- open the autoexec.bat
('C:\') and search 'path='
- add 'c:\gcc\bin; c:\gcc;
' at the beginning
- save the file and close
it
- restart Win9x
- Download the ReactOS-Source:
- Extract it e.g. in 'c:\rossource'
- Now open the DOS-Prompt:
- WinXP, Win2000:
- Click [Start]
- [Run…]
- type in 'cmd'
- click [OK]
- Win9x:
- Click [Start]
- [Programs]
- open the DOS BOX.
- Go to the root directory of
the source code (in DOS Prompt)
- type 'cd..' and press [Enter]
(on your keyboard), until you are at 'c:\'
- type 'cd rossource' and
press [Enter]
- type 'make' press [Enter] (the
compiler build ReactOS, wait some minutes)
- if the prompt is finish with
the last task (about 15 minutes), type 'make install' press [Enter]
Finished!
Installation
from sources
To install ReactOS after building
it, type 'make install'. This will create the directory 'reactos' in the top
directory. If the top directory is not "c:\" then copy this directory
to the root of your first partition on your first harddisk ("c:\").
Hint:
If you don't want to copy
the files manually every time you run a 'make install', you can specify the
directory where the files are to be copied to during installation.
In rules.mak find the variable
INSTALL_DIR and change the assigned value to the name of the directory where
the files are to be copied to.
INSTALL_DIR = c:\reactos
Save the changes to rules.mak and
run 'make install' to install the files to the new location. If you don't
want to change rules.mak, you can specify the installtion directory when invoking
make. Run 'make INSTALL_DIR=c:\reactos install' to install to c:\reactos.
Installation from binany distribution
To install ReactOS from the binary
distribution, extract the archive contents to c:\reactos. Remember to extract
the files with full paths.
Booting ReactOS
- Use 'boot.bat'
- Startup in DOS mode.
- 'cd' to c:\reactos
- type 'boot' and press [Enter]
- Use freeloader
Info:
Before recompile ReactOS please delete the dir 'reactos\reactos' and type 'make
clean'!
Tips:
Open the command prompt
in explorer with a mouse right click
- Extract the cmd.reg from the zip-file
(click download on the article homepage)
- open the cmd (command prompt /
DOS prompt)
- go to the directory (in cmd prompt;
e.g. 'cd xyz') where you extract the cmd.reg
- type 'regedit /s cmd.reg'
- restart your Operating System
(Win32)
- Open the explorer / file manager
- click on a folder with the right
mouse button
- now, there is a new context [Open
command prompt...], click on it
- cmd open the current folder (in
command prompt)
To be continued!
Klemens Friedl
http://www.reactos.net.tc
If you want this article
for offline times, use the download link!
last update: 08/02/2004 |