Skip to content
Brian Dickens edited this page Nov 2, 2015 · 2 revisions

Prerequisites

Qt setup wizard (see later) complains if Xcode is not installed. It may well work without it? All the other steps work fine just with the Command Line Tools.

  • You can use alternative GNU/GCC development environment instead of above. These can be installed via package tools like Homebrew or Macports. These package tools could also be used to install CMake and QT. (Note: You will need Clang older than version 3.1 to use this.)

Build with Ren Garden

The following steps are self-contained and are as simple as I can make them!

So from a terminal session:

mkdir RenGarden

This will be the working directory. You can give it any name and place it anyway on your hard disk. Examples that follow will use this nomenclature.

Installing QT and CMake

Double click the on the downloaded QT dmg package and follow the setup wizard:

  • Installation folder - Set this to be your working directory (ie. RenGarden folder)

  • Select Components - Fine to leave this as is. However it can be trimmed down to just clang 64-bit (and Qt Creator)

  • Click through rest of steps

(Note: Installing Qt Creator would allow you participate in the QT development of the project perhaps a little more easily, depending on which Qt Creator features wind up being used, for instance the Form and GUI designer tool.)

You should now have QT installed in our working directory. Next steps:

cd RenGarden
curl http://www.cmake.org/files/v3.1/cmake-3.1.1-Darwin-x86_64.tar.gz | tar -xz
ls -F

And you should see (something like) this in your working directory.

Qt5.4.0/
cmake-3.1.1-Darwin-x86_64/

We now have QT and CMake ready for us to continue.

Build Ren/C and Ren/C++

git clone https://github.com/metaeducation/ren-c rebol
git clone https://github.com/metaeducation/ren-cpp
cd rebol
curl http://rebolsource.net/downloads/osx-x86/r3-g25033f8 > ./make/r3-make

We are now ready to compile Rebol:

cd make
chmod +x ./r3-make
make -f makefile.boot OS_ID=0.2.40

If all went well we now have a brand new Rebol executable:

file r3

So lets build Ren/C++

cd ../../ren-cpp
PATH=$PATH:../Qt5.4.0/5.4/clang_64/bin ../cmake-3.1.1-Darwin-x86_64/CMake.app/Contents/bin/cmake -DRUNTIME=rebol -DCLASSLIB_QT=1 -DGARDEN=yes
make

If CMake gets to 100% then we are all good! Test Ren/C++ with following step:

./tests/test-rencpp

If no errors are reported then you're ready to open RenGarden.

open examples/workbench/

This will open a Finder window on desktop. Look for workbench, double click and enjoy :)