Installation » History » Version 21

J. Wienke, 05/27/2011 03:40 PM

1 1 S. Wrede
h1. Installation
2 1 S. Wrede
3 21 J. Wienke
h2. C++
4 1 S. Wrede
5 21 J. Wienke
h3. External Dependencies
6 21 J. Wienke
7 6 S. Wrede
* Boost (mostly dependencies of RSC library), in particular 
8 6 S. Wrede
** boost::uuid (can be installed from GAR installer via contrib/boost.uuid, maverick: libboost1.42-dev)
9 6 S. Wrede
** libboost-thread-dev
10 1 S. Wrede
** libboost-filesystem-dev
11 18 J. Wienke
** libboost-signals-dev
12 1 S. Wrede
* Google Protocol Buffers (ubuntu lucid package is ok, can also be installed from GAR installer via contrib/protobuf), in particular
13 1 S. Wrede
** libprotobuf-dev
14 1 S. Wrede
** protobuf-compiler
15 21 J. Wienke
* Optional:
16 21 J. Wienke
** Doxygen for documentation generation (ubuntu package)
17 21 J. Wienke
** lcov for coverage report (ubuntu package)
18 1 S. Wrede
19 6 S. Wrede
Up to this step, in Maverick installing the dependencies should be as simple as:
20 6 S. Wrede
<pre>
21 6 S. Wrede
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
22 6 S. Wrede
</pre>
23 1 S. Wrede
24 6 S. Wrede
* Spread Toolkit for Spread multicast transport extension (lucid ubuntu package does *not* work, due to outdated version 3) 
25 6 S. Wrede
** Can be installed through GAR installer via contrib/spread or from source
26 1 S. Wrede
27 21 J. Wienke
h3. Installation of RSBProtocol, RSC, RSB
28 1 S. Wrede
29 8 S. Wrede
* Check out sources from SVN, see landing page of this and the RSC project
30 6 S. Wrede
* RSC SVN URL: https://code.cor-lab.org/svn/rsc/trunk/rsc/
31 21 J. Wienke
* CMake is required to configure the projects, however then it should be as simple as:
32 1 S. Wrede
33 1 S. Wrede
<pre>
34 21 J. Wienke
cd RS{BProtocol,C,B}/build && cmake .. -DCMAKE_INSTALL_PREFIX=$prefix && make && make install
35 1 S. Wrede
</pre>
36 1 S. Wrede
37 21 J. Wienke
h2. Python
38 1 S. Wrede
39 21 J. Wienke
h3. External Dependencies
40 1 S. Wrede
41 1 S. Wrede
* install python setuptools and python-dev
42 21 J. Wienke
* spread-python (e.g. via GAR installer, sources can be downloaded here: http://www.spread.org/files/SpreadModule-1.5spread4.tgz, the version automatically installed by setuptools is NOT working!)
43 21 J. Wienke
* python-protobuf (via ubuntu package python-protobuf or protobuf sources)
44 1 S. Wrede
45 21 J. Wienke
h3. Installation
46 21 J. Wienke
47 21 J. Wienke
* get sources
48 21 J. Wienke
* edit setup.cfg and replace protocolroot with the path to the RSBPRobotocol files (e.g. protocolroot=${prefix}/share/rsbprotocol)
49 21 J. Wienke
50 1 S. Wrede
<pre>
51 21 J. Wienke
export PYTHONPATH=$prefix/lib/python2.6/site-packages
52 1 S. Wrede
python setup.py build
53 21 J. Wienke
python setup.py install --prefix=$prefix
54 1 S. Wrede
</pre>
55 12 S. Wrede
56 21 J. Wienke
Afterwards, @import rsb@ should be possible in a python shell.
57 14 S. Wrede
58 21 J. Wienke
h2. Java
59 2 J. Wienke
60 21 J. Wienke
h3. External Dependencies
61 21 J. Wienke
62 21 J. Wienke
* libprotobuf-java
63 21 J. Wienke
* ant
64 21 J. Wienke
* Optional:
65 21 J. Wienke
** javadoc
66 21 J. Wienke
67 21 J. Wienke
h3. Installation
68 21 J. Wienke
69 1 S. Wrede
* Download src from SVN (see front page)
70 1 S. Wrede
* cd src and edit build.properties according to your installation
71 21 J. Wienke
* @ant install@ installs jars to prefix of your choice, e.g., ${prefix}/share/java (defined via property)
72 1 S. Wrede
* for rsb-xml you also need to install XOM (included in RSBJava src or via ubuntu)