forked from psoetens/orocos-ocl
-
Notifications
You must be signed in to change notification settings - Fork 1
/
INSTALL
93 lines (60 loc) · 2.21 KB
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
Orocos Component Library
========================
Installation
============
For the minimal ocl library, do
tar -xjvf orocos-ocl-<version>-src.tar.bz2
cd orocos-ocl-<version>
cmake .
If all dependencies could be found, a Makefile is generated and you
can type:
make
make install
If you have some of the ocl dependencies installed in non-standard
locations, you have to specify this using environment variables.
Specify header locations using the CMAKE_INCLUDE_PATH variable.
E.g. using bash and fink in Mac OS X, the boost library headers are
installed in /sw/include, so you would specify
export CMAKE_INCLUDE_PATH=/sw/include
before running cmake. For libraries in non-default locations, use the
CMAKE_LIBRARY_PATH variable.
For selecting additional (hardware related) components, setting
include paths, or setting the installation prefix, do
cd orocos-ocl-<version>
cmake .
ccmake .
Now a config screen appears:
[ edit paths ]
[ press 'c' ]
[ check for errors, press 'e' ]
[ select additional components ]
[ press 'c'; check for errors, press 'e', ... ]
When all is fine, you can press 'g' in the config screen. If no 'g'
appears, the configuration is not yet correct.
Finally:
make
make install
Installation options
--------------------
* Orocos uses cmake (http://www.cmake.org) for its build configuration.
CMake is a cross-platform build system. Use version 2.2 or 2.4.
* Orocos uses the 'pkg-config' program to detect installed libraries.
* This library requires that the Orocos RTT (liborocos-rtt) is installed
(path in OROCOS_INSTALL) Some components require the Orocos KDL (path in KDL_INSTALL)
or the Orocos BFL (path in BFL_INSTALL).
* You can set the installation prefix in the CMAKE_INSTALL_PREFIX variable
using ccmake.
* You can additionally
1) do out-of-source builds:
$ mkdir build
$ cd build
$ cmake ..
$ make
2) set a different compiler:
$ CC="distcc gcc-3.3" CXX="distcc g++-3.3" cmake ..
or use the 'configure' wrapper script:
$ ../configure CC="distcc gcc-3.3" CXX="distcc g++-3.3"
3) use the GUI Configurator:
Use 'ccmake' rather than 'cmake' for a text-based configurator.
4) have packaging support:
$ make install DESTDIR=/staging/dir