Mercurial > hg > freeDiameter
annotate INSTALL @ 224:3caac3cd359d
Change state first, otherwise failover might re-select the same peer
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Tue, 23 Feb 2010 17:19:22 +0900 |
parents | 277ec00d793e |
children | f91fe0b85928 |
rev | line source |
---|---|
0 | 1 This package uses CMake (cmake.org) as building system. You'll need the cmake tool in order |
2 to generate the Makefiles for your platform. You can also select which extensions must be built. | |
3 | |
4 Building in a separate directory is recommended: | |
5 mkdir build | |
6 cd build | |
7 cmake ../ | |
8 make | |
9 | |
10 You can enable the unary tests by doing: | |
20
277ec00d793e
Backup before typhoon... Progress on server side
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
18
diff
changeset
|
11 cmake -DSKIP_TESTS:BOOL=OFF ../ |
0 | 12 make |
13 make tests | |
14 | |
1
bafb831ba688
Fix names to proper case for freeDiameter
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
0
diff
changeset
|
15 Note: instead of passing options on the command line, you can use a CMake front-end (for example cmake-gui) |
bafb831ba688
Fix names to proper case for freeDiameter
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
0
diff
changeset
|
16 or edit the CCmakeCache.txt file directly. |
0 | 17 |
1
bafb831ba688
Fix names to proper case for freeDiameter
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
0
diff
changeset
|
18 Note that there are dependencies on external tools that may not be enforced by the configure script. |
0 | 19 On Ubuntu Intrepid, the following packages were required (aptitude install ...): |
18
e7187583dcf8
Added CA helper script
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
1
diff
changeset
|
20 gcc make flex bison libsctp1 libsctp-dev cmake libgnutls-dev libgcrypt-dev |
0 | 21 |
22 On FreeBSD the following packages were required: | |
23 cmake flex bison | |
24 Then the cmake command had to look like: | |
25 cmake -DFLEX_EXECUTABLE:FILEPATH=/usr/local/bin/flex ... | |
26 | |
27 make install has not been tested yet and will probably not behave as expected! | |
28 | |
29 You can also configure which extensions to build with CMake: | |
1
bafb831ba688
Fix names to proper case for freeDiameter
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
0
diff
changeset
|
30 IGNORE_ALL_EXTENSIONS:BOOL=OFF (or the following are ignored) |
0 | 31 BUILD_APP_TEST:BOOL=ON |
32 BUILD_RT_ANY:BOOL=ON | |
33 BUILD_RT_DEBUG:BOOL=ON | |
34 BUILD_RT_DEFAULT:BOOL=ON | |
35 BUILD_SAMPLE:BOOL=ON | |
36 | |
1
bafb831ba688
Fix names to proper case for freeDiameter
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
0
diff
changeset
|
37 You can change the default configuration file pathname: |
bafb831ba688
Fix names to proper case for freeDiameter
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
0
diff
changeset
|
38 DEFAULT_CONF_FILE:STRING=/path/to/some/freeDiameter.conf |
0 | 39 |
20
277ec00d793e
Backup before typhoon... Progress on server side
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
18
diff
changeset
|
40 Build binary with symbols, for debug: |
277ec00d793e
Backup before typhoon... Progress on server side
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
18
diff
changeset
|
41 CMAKE_BUILD_TYPE:STRING=Debug |