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

The initial development of Ren/C++ and Ren Garden was on a Kubuntu installation with Qt Creator. Using Kubuntu and Qt Creator is about the easiest situation you can find. Even if you don't run a Linux host, you might consider setting up a virtual machine with a recent installation:

Note that you'll need something newer than Debian "wheezy" stable to build it, as that only comes with GCC 4.7.2. You can--however--upgrade an older installation using the .deb package management (e.g. for "jessie")

To get CMake, all you should need to run is:

sudo apt-get install cmake

You will still have to install and build Rebol. (TBD...)

Once you've built Rebol, in Qt Creator open the CMakeLists.txt file. It should offer you a command line to type your settings into. To build Ren/C++ and Ren Garden type:

-DCMAKE_BUILD_TYPE=Debug -DRUNTIME=rebol -DCLASSLIB_QT=1 -DGARDEN=yes

(Adaptations for other Linuxes TBD...)

Kubuntu 14.10 (32bit)

Here are my steps for running on a local VM under virtual box.

First up the resolution is not right running under virtualbox so we need to fix that:

sudo apt-get install virtualbox-guest-dkms

Grab qt and install it (I had a few problems with the download, but it worked in the end):

wget http://download.qt-project.org/official_releases/online_installers/qt-opensource-linux-x86-online.run
chmod 755 qt-opensource-linux-x86-online.run
./qt-opensource-linux-x86-online.run

and install a few dependencies

sudo apt-get install cmake -y
sudo apt-get install ia32-libs -y
sudo apt-get install lib32z1 -y
sudo apt-get install libc6-dev-i386 -y

and a few more ...

sudo apt-get install build-essential -y
sudo apt-get install mesa-common-dev -y
sudo apt-get install libglu1-mesa-dev -y
sudo apt-get install git -y

Now setup a directory for Ren/C++:

mkdir ren
cd ren

Download the Ren/C forked source of Rebol into a directory called "rebol":

git clone https://github.com/metaeducation/ren-c rebol
cd rebol/make/

Grab a pre-built Rebol executable to run the make:

wget http://rebolsource.net/downloads/linux-x86/r3-g25033f8
chmod 755 r3-g25033f8 
cp r3-g25033f8 r3-make

Now build Rebol. For 32-bit Linux:

make -f makefile.boot OS_ID=0.4.4

If you are building for 64-bit:

make -f makefile.boot OS_ID=0.4.40

This should have successfully built Rebol.

Now change dir back to the ren dir, setup the path to Qt for cmake and grab the source for Ren/C++ into the ren-cpp directory:

export CMAKE_PREFIX_PATH=~/Qt/5.4/gcc_64/lib/cmake
git clone https://github.com/metaeducation/ren-cpp

Change dir to ren-cpp and build it (note: if you installed your Qt elsewhere be sure to update the path...)

cd ren-cpp
mkdir build
cd build
cmake .. -G "Unix Makefiles" -DRUNTIME=rebol -DGARDEN=1 -DCLASSLIB_QT=1 -DCMAKE_PREFIX_PATH=~/Qt/5.4/gcc/lib/cmake
make

If the make is successful then try to launch Ren Garden:

cd examples/workbench
./workbench

Clone this wiki locally