Building from source on Windows with MinGW

earl edited this page Jan 17, 2013 · 6 revisions

MinGW is a minimalistic tool for building software in a UNIX/Linux style.

Download the installer and, during installation, select at least the following components:

  • C compiler
  • MSYS basic system
  • MinGW developer toolkit

C Compiler on MinGW MSYS and Developer toolkit

MinGW will install into C:\MinGW. After installation has finished, open C:\MinGW\msys\1.0 and launch msys.bat. This will create a C:\MinGW\msys\1.0\home\<yourusername> folder which we'll use to build R3 in.

Next, download the R3 sources. You have two options here:

  1. Either download the sources as a Zip archive from GitHub, unzip the r3-master folder (containing make and src subfolders) as C:\MinGW\msys\1.0\home\r3-master and rename it to r3 afterwards;

  2. Or use Git to clone from into C:\MinGW\msys\1.0\home:

     git clone C:\MinGW\msys\1.0\home\r3

Finally, let's build Rebol 3. For that, you'll also need a ready-made Rebol 3 to bootstrap the build. Download it from and save the binary as C:\MinGW\msys\1.0\home\r3\make\r3-make.exe.

Launch the msys.bat file once again. You should see a similar console:

MinGW console

Now type the following commands in MinGW console:

cp -r ../r3 ./
cd r3/make/
r3-make ../src/tools/make-make.r 0.3.1 >NUL
make prep
cp r3.exe ../../../

Finished! You obtained the r3.exe binary inside C:\MinGW\msys\1.0\home.

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.