InstallationC++ » History » Version 5

Version 4 (J. Moringen, 06/29/2011 09:58 AM) → Version 5/17 (J. Wienke, 08/09/2011 12:03 PM)

h1. Installation of C++ Implementation

h2. External Dependencies

* Boost (mostly dependencies of RSC library), in particular
** boost::uuid (can be installed from GAR installer via contrib/boost.uuid, maverick: libboost1.42-dev)
** libboost-thread-dev
** libboost-filesystem-dev
** libboost-signals-dev
* Google Protocol Buffers (ubuntu lucid package is ok, can also be installed from GAR installer via contrib/protobuf), in particular
** libprotobuf-dev
** protobuf-compiler
* Optional:
** Doxygen for documentation generation (ubuntu package)
** lcov and gcovr for coverage report (ubuntu package, gcovr from svn trunk) package)

Up to this step, in Maverick installing the dependencies should be as simple as:
<pre>
sudo apt-get install libprotobuf-java libprotobuf-dev protobuf-compiler libboost-thread-dev libboost-filesystem-dev libboost-signals-dev libboost-program-options-dev libboost-regex-dev libboost1.42-dev
</pre>

* Spread Toolkit for Spread multicast transport extension (lucid ubuntu package does *not* work, due to outdated version 3)
** Can be installed through GAR installer via contrib/spread or from source

h2. Installation of RSC, RSBProtocol and RSB

* Checkout RSB and its immediate dependencies from the Subversion repository:
** RSC: https://code.cor-lab.org/svn/rsc/trunk/rsc
** RSB Protocol: https://code.cor-lab.org/svn/rsb/trunk/protocol
** RSB C++: https://code.cor-lab.org/svn/rsb/trunk/cpp/core
* CMake is required to configure the projects.
* Build and install the RSB C++ core and its dependencies (in the order given below):
*# Build and install RSC Library:
<pre>
cd rsc/build && cmake .. -DCMAKE_INSTALL_PREFIX=$prefix && make && make install
</pre>
*# Install RSB Protocol Definitions
<pre>
cd protocol/build && cmake .. -DCMAKE_INSTALL_PREFIX=$prefix && make && make install
</pre>
_Note: these protocol definitions are shared across programming languages._
*# Build and install RSB C++ Core
<pre>
cd core/build && cmake .. -DCMAKE_INSTALL_PREFIX=$prefix -DRSC_DIR=$prefix/share/RSC && make && make install
</pre>