Skip to content

Installation

pushkar3 edited this page Sep 18, 2011 · 11 revisions

The common prerequisites for rst are wxWidgets and OpenGL. The project uses git for version control. To configure and compile rst uses VS2010 in Windows and CMake in Ubuntu. To use rst the source code can be downloaded directly or use git to clone the rst repository.

The librst project creates a static library. This static library can be linked by external projects to utilize the simulators functionality. A template project shows how a project can be created and used.

Windows

Supported Platform: Windows 7, Visual Studio 2010

Setting up Git

  1. Create an account on github.com
  2. Install msysgit.
  3. Install TortoiseGit.
  4. Generate a key pair using sshkeygen.
  5. Login github, Account Settings > SSH Keys > Add your public key
  6. Save your private key. TortoiseGit will ask for it.
  7. If you want to contribute, we need to grant you write permisssion to the repository.

Install RST

  1. Install wxWidgets using our custom installer. It will install the necessary compiled wxWidgets libraries in C:\wxWidgets.
  2. Clone the repository from [email protected]:golems/rst.git. Right-click in Windows explorer and choose "Git clone...".
  3. Open the VS2010 solution file at win32/rst_all.sln.
  4. Compile the librst project, both in Release and Debug configuration.

Linux

Common Prerequisites

Use the Ubuntu APT tool to install the prerequisites.

  1. sudo apt-get install git-core. A guide to use git on Linux is here.
  2. sudo apt-get install libwxgtk2.8-dev libwxgtk2.8-dbg cmake cmake-curses-gui

Install and Compiling

To clone the rst repository use git clone git://github.com/golems/rst.git. If you want to use https authentication use git clone https://<username>@github.com/golems/rst.git. Use CMake to configure and compile the project.

  1. cd rst
  2. cmake .
  3. To create an Eclipse project use cmake -G"Eclipse CDT4 - Unix Makefiles" .
  4. make

Mac

Eclipse:

  1. Download wxWidgets2.9.x

  2. Go to wxWidgets2.9.x folder

  3. mkdir osx-build

  4. cd osx-build

  5. ../configure --with-osx_cocoa --enable-unicode --enable-universal-binary CFLAGS="-arch x86_64" CXXFLAGS="-arch x86_64" CPPFLAGS="-arch x86_64 " LDFLAGS="-arch x86_64" OBJCFLAGS="-arch x86_64" OBJCXXFLAGS="-arch x86_64 " --without-macosx-sdk

  6. make

  7. sudo make install

  8. Go to rst folder

  9. cmake -G"Eclipse CDT4 - Unix Makefiles" -D CMAKE_BUILD_TYPE=Debug .

  10. make

Clone this wiki locally