InstallationC++ » History » Version 12

J. Moringen, 03/12/2012 12:22 PM
link to manual

1 1 S. Wrede
h1. Installation of C++ Implementation
2 2 S. Wrede
3 12 J. Moringen
*The information on this page has been superseded by the "RSB Manual":http://docs.cor-lab.org/rsb-manual/trunk/html.*
4 12 J. Moringen
5 10 J. Moringen
{{>toc}}
6 10 J. Moringen
7 11 J. Moringen
h2. Prerequisites
8 1 S. Wrede
9 11 J. Moringen
h3. Supported Operating Systems and Compilers
10 11 J. Moringen
11 11 J. Moringen
* Linux (GCC 4.x)
12 11 J. Moringen
* Windows (MS Visual Studio 9 2008)
13 11 J. Moringen
14 11 J. Moringen
Other combinations may be possible but are currently untested.
15 11 J. Moringen
16 10 J. Moringen
h3. Required Dependencies
17 10 J. Moringen
18 6 J. Wienke
* "Boost":http://www.boost.org/ >= 1.38 (for hardy available in the gar-installer, 1.34.1 untested)
19 6 J. Wienke
* "Boost.UUID":http://www.boost.org/doc/libs/1_42_0/libs/uuid/uuid.html (header-only, officially included in Boost since 1.42, headers from this version can be used with all older versions of boost, gar-installer package available)
20 6 J. Wienke
* "Google Protocol Buffers":http://code.google.com/p/protobuf/
21 6 J. Wienke
** Ubuntu Lucid packages are ok (libprotobuf-dev, protobuf-compiler)
22 6 J. Wienke
** can also be installed from GAR installer via contrib/protobuf
23 6 J. Wienke
* "Spread Toolkit":http://spread.org/ >= 4.0
24 1 S. Wrede
** Ubuntu Lucid package does *not* work, due to outdated version 3
25 1 S. Wrede
** Can be installed through GAR installer via contrib/spread or from source
26 1 S. Wrede
* "CMake":http://www.cmake.org/ (tested with 2.8)
27 1 S. Wrede
28 10 J. Moringen
h3. Optional Dependencies
29 10 J. Moringen
30 10 J. Moringen
_The C++ implementation can be built without these, but some features will be missing._
31 10 J. Moringen
32 10 J. Moringen
* "Doxygen":http://www.doxygen.nl/ for API generation
33 10 J. Moringen
* "Lcov":http://ltp.sourceforge.net/coverage/lcov.php for code coverage analysis
34 8 S. Wrede
* "cppcheck":http://sourceforge.net/apps/mediawiki/cppcheck/index.php?title=Main_Page for static code analysis
35 2 S. Wrede
36 6 J. Wienke
h3. Installation of Dependencies on Debian-based Systems
37 2 S. Wrede
38 6 J. Wienke
Example for Ubuntu 10.04:
39 6 J. Wienke
<pre>
40 6 J. Wienke
$ sudo apt-get install libprotobuf-dev protobuf-compiler build-essential libboost-dev
41 6 J. Wienke
</pre>
42 3 S. Wrede
43 2 S. Wrede
h2. Installation of RSC, RSBProtocol and RSB
44 4 J. Moringen
45 2 S. Wrede
* Checkout RSB and its immediate dependencies from the Subversion repository:
46 2 S. Wrede
** RSC: https://code.cor-lab.org/svn/rsc/trunk/rsc
47 2 S. Wrede
** RSB Protocol: https://code.cor-lab.org/svn/rsb/trunk/protocol
48 2 S. Wrede
** RSB C++: https://code.cor-lab.org/svn/rsb/trunk/cpp/core
49 2 S. Wrede
* CMake is required to configure the projects.
50 2 S. Wrede
* Build and install the RSB C++ core and its dependencies (in the order given below):
51 2 S. Wrede
*# Build and install RSC Library:
52 2 S. Wrede
<pre>
53 2 S. Wrede
cd rsc/build && cmake .. -DCMAKE_INSTALL_PREFIX=$prefix && make && make install
54 2 S. Wrede
</pre>
55 2 S. Wrede
*# Install RSB Protocol Definitions
56 2 S. Wrede
<pre>
57 2 S. Wrede
cd protocol/build && cmake .. -DCMAKE_INSTALL_PREFIX=$prefix && make && make install
58 2 S. Wrede
</pre>
59 2 S. Wrede
_Note: these protocol definitions are shared across programming languages._
60 2 S. Wrede
*# Build and install RSB C++ Core
61 2 S. Wrede
<pre>
62 9 J. Moringen
cd core/build && cmake .. -DCMAKE_INSTALL_PREFIX=$prefix -DRSC_DIR=$prefix/share/rsc && make && make install
63 1 S. Wrede
</pre>