-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
111 lines (82 loc) · 2.55 KB
/
README
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
A comprehensive guide for developers is available on the main documentation site:
http://www.rok4.org/documentation
ROK4/BE4 VERSIONS
+++++++++++++++++
ROK4 Version : 0.25.1
BE4 Version : 0.25.1
BEFORE BUILDING
+++++++++++++++
For Debian-based distributions :
1) Install a C++ compiler
sudo apt-get install build-essential
2) Install third party libraries
sudo apt-get install gettext
sudo apt-get install nasm
sudo apt-get install automake
3) Install PERL and perl libraries
sudo apt-get install perl
sudo apt-get install libxml2-dev
sudo apt-get install libgdal-perl
sudo apt-get install liblog-log4perl-perl libconfig-inifiles-perl libxml-libxml-simple-perl libfile-copy-link-perl
4) Install CMake (>2.6)
sudo apt-get install cmake
5) Optional : Install documentation libraries
sudo apt-get install doxygen
sudo apt-get install graphviz
sudo apt-get install naturaldocs
BUILDING
++++++++
Inside the source folder :
mkdir build
cd build
cmake .. [-DOPTION1 -DOPTION2]
make
make [install|package]
Example
-------
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=$HOME/rok4/target ..
make
make doc
make install
CMake Build Options
-------------------
Options are fed to CMake using the following syntax : -DOPTION
For example : cmake .. -DUNITTEST=TRUE -DBUILD_BE4=FALSE
CMAKE_INSTALL_PREFIX :
Installation Folder (PATH)
Default Value : /usr/local
DEP_PATH :
Path to compiled and installed ROK4 dependencies (PATH)
Default Value : ./target
BUILD_DEPENDENCIES :
Missing ROK4 dependencies compilation (BOOL)
These dependencies will be installed with ROK4
Default Value : TRUE
BUILD_ROK4 :
ROK4(Server) compilation (BOOL)
Default Value : TRUE
BUILD_BE4 :
BE4 compilation (BOOL)
Default Value : TRUE
BUILD_DOC :
Doxygen documentation creation (BOOL)
This option creates the "doc" target (to be used before make install or make package) : make doc
Default Value : TRUE
UNITTEST :
Units tests compilation (BOOL)
This option creates the "test" target (to be used before make install or make package) : make test
Default Value : FALSE
DEBUG_BUILD :
Debug mode build (BOOL)
Default Value : FALSE
RPM_PACKAGE : (EXPERIMENTAL)
Creates a RPM package instead of a tar.gz package : make all doc package
Default Value : FALSE
DEB_PACKAGE : (EXPERIMENTAL)
Creates a debian package instead of a tar.gz package (relies on the systems libraries) : make all doc package
Default Value : FALSE
USE_SYSTEM_LIB : (EXPERIMENTAL)
In order to compile against the system libraries
Default value : FALSE