From ReactOS Wiki
Revision as of 00:25, 29 July 2010 by RideBMX (talk | contribs)
Jump to: navigation, search

Here are few steps required for compiling the branch (using Windows XP):

1. First of all we will need CMake from the CMake homepage. While installing please do not forget about adding it to the PATH variable. (You will probably need to logout from your account to apply the changes.)

2. Checkout the branch: (read more about subversion here)

3. Create two more folders in cmake-bringup:

mkdir build 
mkdir build-ros

4. Launch the RosBE command line. First we are going to build tools (you can change make to makex to use more than one processor/core):

cd build
cmake -G "MinGW Makefiles" ..\
cd ..

5. Now we can build ReactOS source using freshly compiled tools:

cd build-ros
cmake -G "MinGW Makefiles" -DCMAKE_TOOLCHAIN_FILE=toolchain-mingw32.cmake ..\
(cd ..) <- optionally

You can also build any of the modules separately, like:

make icu4ros

Or clean any of them, like:

make icu4ros clean

List of modules and build targets is available using:

make help

To clean the whole tree (like in RBuild):

make clean

6. As build tools are not changing very often, contents of build folder can be compiled once and does not need recompilation with every commit.

In case of any updated CMakeLists from other folders (like ReactOS headers, libraries or apps), it is best to remove content of build-ros folder, and repeat step 5