Difference between revisions of "Build Environment"

From ReactOS Wiki
Jump to: navigation, search
 
(Better looks, and also "See also")
Line 2: Line 2:
  
  
= Required files =
+
== Required files ==
  
 
For latest releases go to http://www.mingw.org/download.shtml and download the following files:
 
For latest releases go to http://www.mingw.org/download.shtml and download the following files:
Line 16: Line 16:
 
If you wish to use GCC 3.4.1, instead, please see the [[Gcc 341 Issues]] page. Please note that newer binutils packages namely 2.15.9x have problems with forward linking export functions and therefore will not build ReactOS properly.
 
If you wish to use GCC 3.4.1, instead, please see the [[Gcc 341 Issues]] page. Please note that newer binutils packages namely 2.15.9x have problems with forward linking export functions and therefore will not build ReactOS properly.
  
= Building ReactOS =
+
== Building ReactOS ==
  
 
Run the make file from the root directory of ReactOS. In order to build a bootable ISO image, you must first build freeldr then run "make install" ; next you must run "make bootcd" from the root ReactOS directory. The ISO image will be located in the root ReactOS directory when it is finsihed.
 
Run the make file from the root directory of ReactOS. In order to build a bootable ISO image, you must first build freeldr then run "make install" ; next you must run "make bootcd" from the root ReactOS directory. The ISO image will be located in the root ReactOS directory when it is finsihed.
  
= Installation =
+
== Installation ==
  
 
First run MinGW-3.1.0-1.exe then unpack the other tarballs into the directory which you had installed MinGW.
 
First run MinGW-3.1.0-1.exe then unpack the other tarballs into the directory which you had installed MinGW.
  
= Optional stuff =
+
== Optional stuff ==
  
 
'''Subversion Client'''
 
'''Subversion Client'''
Line 45: Line 45:
 
[[Build Troubleshooting]]
 
[[Build Troubleshooting]]
 
----
 
----
See also:
+
== See also ==
[[... setup a build environment for windows]]
+
 
[[... setup a build environment for (Gentoo) Linux]]
+
*[[... setup a build environment for windows]]
 +
*[[... setup a build environment for (Gentoo) Linux]]

Revision as of 22:54, 30 January 2005


Required files

For latest releases go to http://www.mingw.org/download.shtml and download the following files:

Then go to http://sourceforge.net/projects/reactos and download binutils 2.15.90, because other versions have the INACCESIBLE_BOOT_DEVICE bug:


If you wish to use GCC 3.4.1, instead, please see the Gcc 341 Issues page. Please note that newer binutils packages namely 2.15.9x have problems with forward linking export functions and therefore will not build ReactOS properly.

Building ReactOS

Run the make file from the root directory of ReactOS. In order to build a bootable ISO image, you must first build freeldr then run "make install" ; next you must run "make bootcd" from the root ReactOS directory. The ISO image will be located in the root ReactOS directory when it is finsihed.

Installation

First run MinGW-3.1.0-1.exe then unpack the other tarballs into the directory which you had installed MinGW.

Optional stuff

Subversion Client

Get yourself a Subversion client and download the sources from the Subversion repository.

Patching

You can use WinMerge to see changes in source code visually. This is particularly useful for submitting and reviewing patches.

  1. Create a new directory. For example C:\mingw.
  2. Extract the files mentioned above in the directory you just created. It is important that you extract gcc-update.zip last because it overwrites the buggy gcc.exe from gcc-2.95.3-fastcall.zip.
  3. In your install directory (C:\mingw in this example), you fill find the file mingw32.bat. Change the line that updates the PATH variable according to your install directory (add C:\mingw\bin in this example).
  4. Run mingw32.bat before you want to use mingw. You can call it from autoexec.bat or you can call it whenever you open a shell window.



Build Troubleshooting


See also