2007-06-05 13:08:26 +00:00
|
|
|
ReactOS Build Environment
|
2019-04-27 12:29:14 +00:00
|
|
|
Version 2.2 for Unix-based operating systems
|
2009-02-11 14:37:48 +00:00
|
|
|
Base package and i386 build tools
|
2019-10-20 10:39:28 +00:00
|
|
|
by Colin Finck (colin@reactos.org), Pierre Schweitzer (pierre@reactos.org)
|
2007-06-05 13:08:26 +00:00
|
|
|
|
|
|
|
Introduction
|
|
|
|
-------------
|
|
|
|
The ReactOS Build Environment ("RosBE") is a Build Environment for building
|
|
|
|
ReactOS. This version is targeted at Unix-based operating systems such as
|
|
|
|
Linux or FreeBSD.
|
|
|
|
The Installation process of the Build Environment is divided into two parts.
|
|
|
|
First a script builds the needed compiler tools for your operating system
|
|
|
|
and installs them. Therefore the "gcc" compiler for your system and some
|
|
|
|
other build tools have to be installed.
|
|
|
|
Then another script creates a shortcut for you. This shortcut opens a
|
|
|
|
Terminal window and prepares all environment settings for building ReactOS.
|
|
|
|
|
|
|
|
|
|
|
|
Needed Applications
|
|
|
|
--------------------
|
|
|
|
Make sure that the following applications are installed on your system.
|
|
|
|
They are needed to build the compiler tools. The "RosBE-Builder.sh" script
|
|
|
|
automatically checks for them:
|
|
|
|
|
|
|
|
* GNU Bash
|
|
|
|
The executable file and the package name are often called "bash".
|
2018-06-28 08:06:56 +00:00
|
|
|
All scripts are designed to work only under the Bash shell.
|
2007-06-05 13:08:26 +00:00
|
|
|
|
|
|
|
* GNU GCC
|
2009-02-14 18:22:46 +00:00
|
|
|
You need a GCC compiler, which is suitable for your system. The
|
2007-06-05 13:08:26 +00:00
|
|
|
executable file and the package name are often called "gcc".
|
|
|
|
Your GCC compiler needs to be able to compile both C and C++ sources.
|
|
|
|
Therefore the "g++" module also has to be installed.
|
2009-02-14 18:22:46 +00:00
|
|
|
The compiler needs to be in version 3.4 or later.
|
2007-06-05 13:08:26 +00:00
|
|
|
|
|
|
|
* Grep
|
|
|
|
The executable file and the package name are often called "grep".
|
|
|
|
|
|
|
|
* GNU Make
|
|
|
|
Make sure that you have the GNU version of "make" installed. For example
|
|
|
|
FreeBSD uses another version. The executable file and the package name
|
|
|
|
are often called "make" or "gmake".
|
|
|
|
|
|
|
|
* GNU Makeinfo
|
|
|
|
The executable file is often called "makeinfo". Usually this file is in a
|
|
|
|
package called "texinfo".
|
|
|
|
|
|
|
|
|
2014-02-12 20:30:55 +00:00
|
|
|
Needed Libraries
|
|
|
|
--------------------
|
|
|
|
Make sure that the following libraries are installed on your system.
|
|
|
|
They are needed to extract the compiler tools. The "RosBE-Builder.sh" script
|
|
|
|
automatically checks for them:
|
|
|
|
|
|
|
|
* zlib
|
|
|
|
The library file is generally called "libz.so".
|
|
|
|
|
|
|
|
|
2007-06-05 13:08:26 +00:00
|
|
|
Installation
|
|
|
|
-------------
|
|
|
|
The Installation of RosBE is very simple, since there are scripts, which do
|
|
|
|
most of the work for you. Follow these steps to compile and install RosBE for
|
|
|
|
your used operating system:
|
|
|
|
|
|
|
|
1. Open a Terminal window and type "su" to become "root" user.
|
2009-02-11 14:37:48 +00:00
|
|
|
NOTE: Becoming a root user is only required for installing RosBE into the
|
|
|
|
default directory ("/usr/local/RosBE"). If you want to install it into a
|
|
|
|
personal directory, you don't need superuser privileges.
|
2007-06-05 13:08:26 +00:00
|
|
|
2. Call the "RosBE-Builder.sh" script in the directory of the unpacked
|
|
|
|
RosBE files.
|
2012-01-28 17:37:45 +00:00
|
|
|
NOTE: Advanced users can make use of CFLAGS, CC, CXX variables to modulate
|
|
|
|
the way tools will be built.
|
2007-06-05 13:08:26 +00:00
|
|
|
3. Follow the directions on the screen until the script ends with "Finished
|
|
|
|
successfully!"
|
|
|
|
4. Type "exit" to switch back to your normal user account. Then call the
|
|
|
|
"createshortcut.sh" script in the installation directory (usually this
|
2009-02-11 14:37:48 +00:00
|
|
|
is "/usr/local/RosBE").
|
2007-06-05 13:08:26 +00:00
|
|
|
5. Follow the directions on the screen to create a shortcut for the Build
|
|
|
|
Environment.
|
|
|
|
|
|
|
|
After that you can easily open a Build Environment for ReactOS by opening
|
|
|
|
the shortcut.
|
|
|
|
|
|
|
|
|
2009-02-14 18:22:46 +00:00
|
|
|
Uninstallation
|
|
|
|
---------------
|
|
|
|
If you want to uninstall RosBE, just delete the entire installation directory
|
|
|
|
and any shortcuts you have created.
|
|
|
|
|
|
|
|
|
2007-06-05 13:08:26 +00:00
|
|
|
Version Information
|
|
|
|
--------------------
|
|
|
|
This version of RosBE for Unix-based operating systems uses the following
|
|
|
|
components:
|
|
|
|
|
2019-08-18 14:05:59 +00:00
|
|
|
* GNU Binutils v2.32
|
|
|
|
compiled for i686-w64-mingw32
|
2007-06-05 13:08:26 +00:00
|
|
|
|
2019-08-18 14:05:59 +00:00
|
|
|
* GCC, The GNU Compiler Collection v8.3.0
|
|
|
|
compiled for i686-w64-mingw32
|
2007-06-05 13:08:26 +00:00
|
|
|
|
2007-12-22 15:22:53 +00:00
|
|
|
NOTE: This GCC version only supports C and C++
|
2007-06-05 13:08:26 +00:00
|
|
|
|
2019-12-22 11:55:03 +00:00
|
|
|
* Bison 3.5
|
2019-12-24 07:49:27 +00:00
|
|
|
patched with:
|
|
|
|
- https://raw.githubusercontent.com/reactos/RosBE/master/Patches/bison-3.5-reactos-fix-win32-build.patch
|
|
|
|
|
2019-12-22 11:55:03 +00:00
|
|
|
* CMake 3.16.2
|
|
|
|
* Flex 2.6.4+ (revision 8b1fbf674f2e038df9cf1fe7725617e3837ae2a9)
|
2019-04-27 12:29:14 +00:00
|
|
|
* GMP 6.1.2
|
2019-08-18 14:05:59 +00:00
|
|
|
* Mingw-w64 6.0.0
|
2019-04-27 12:29:14 +00:00
|
|
|
* MPC 1.1.0
|
2019-08-18 14:05:59 +00:00
|
|
|
* MPFR 4.0.2
|
|
|
|
* Ninja 1.9.0
|
|
|
|
patched with:
|
|
|
|
- https://raw.githubusercontent.com/reactos/RosBE/master/Patches/ninja-v1.9.0-Fix-MinGW-bootstrap-build.patch
|
2007-06-05 13:08:26 +00:00
|
|
|
|
|
|
|
|
|
|
|
Tested Operating Systems
|
|
|
|
-------------------------
|
2009-02-11 14:37:48 +00:00
|
|
|
The Build Environment was designed to work on all Unix-based operating
|
|
|
|
systems. Nevertheless, it is impossible to test it on all possible systems out
|
|
|
|
there.
|
2018-08-21 10:05:53 +00:00
|
|
|
The current primary development and test system is Ubuntu 18.04. But users
|
2009-02-11 14:37:48 +00:00
|
|
|
also reported that it works well under other Linux systems such as Fedora or
|
|
|
|
openSUSE and Unix derivates like FreeBSD or Mac OS X.
|
|
|
|
You should be able to compile the build tools on both i386 (32-bit) and
|
2007-06-05 13:08:26 +00:00
|
|
|
x86_64 (64-bit) systems.
|
|
|
|
|
|
|
|
|
|
|
|
Websites
|
|
|
|
---------
|
|
|
|
Binutils, the Binary Tools Collection
|
2015-10-11 10:10:58 +00:00
|
|
|
https://www.gnu.org/software/binutils
|
2007-06-05 13:08:26 +00:00
|
|
|
|
2019-12-22 11:55:03 +00:00
|
|
|
Bison, general-purpose parser generator
|
|
|
|
https://www.gnu.org/software/bison
|
|
|
|
|
2011-12-05 21:40:23 +00:00
|
|
|
CMake, Cross Platform Make
|
2015-10-11 10:10:58 +00:00
|
|
|
https://cmake.org
|
2011-12-05 21:40:23 +00:00
|
|
|
|
2019-12-22 11:55:03 +00:00
|
|
|
Flex, The Fast Lexical Analyzer
|
|
|
|
https://github.com/westes/flex
|
|
|
|
|
2007-06-05 13:08:26 +00:00
|
|
|
GCC, the GNU Compiler Collection
|
2015-10-11 10:10:58 +00:00
|
|
|
https://gcc.gnu.org
|
2007-06-05 13:08:26 +00:00
|
|
|
|
2011-12-05 21:40:23 +00:00
|
|
|
GMP, the GNU MP Bignum library
|
2015-10-11 10:10:58 +00:00
|
|
|
https://gmplib.org
|
2011-12-05 21:40:23 +00:00
|
|
|
|
|
|
|
The GNU MPFR library
|
|
|
|
http://www.mpfr.org
|
2007-06-05 13:08:26 +00:00
|
|
|
|
2019-08-18 14:05:59 +00:00
|
|
|
Mingw-w64
|
|
|
|
https://mingw-w64.org
|
2007-06-05 13:08:26 +00:00
|
|
|
|
|
|
|
Credits
|
|
|
|
--------
|
2009-11-07 17:16:41 +00:00
|
|
|
Colin Finck (colin@reactos.org)
|
2012-02-10 22:16:06 +00:00
|
|
|
Pierre Schweitzer (pierre@reactos.org)
|
2007-12-22 15:22:53 +00:00
|
|
|
|
|
|
|
Thanks go also to the members of the RosBE-Windows team, namely:
|
2011-12-05 21:40:23 +00:00
|
|
|
Daniel Reimer (daniel.reimer@reactos.org)
|
2007-12-22 15:22:53 +00:00
|
|
|
Peter Ward (dralnix@gmail.com)
|
|
|
|
|
|
|
|
Special thanks to ROSFan, who created the nice ReactOS Build Environment
|
|
|
|
Logo.
|
|
|
|
Special thanks also goes out to all those who provide so much help by
|
|
|
|
testing out new versions, you know who you are. Without them the RosBE
|
|
|
|
would not be what it is.
|
|
|
|
Credits go to Gregor Anich who created the original ReactOS Build
|
|
|
|
Environment v0.2-3.4.4.
|
|
|
|
|
|
|
|
Inspired by Dazzle from TinyKRNL (http://tinykrnl.org/).
|
2009-11-07 17:16:41 +00:00
|
|
|
|