view INSTALL @ 223:85dc47afeac7

Cleanup termination
author Sebastien Decugis <sdecugis@nict.go.jp>
date Tue, 23 Feb 2010 15:09:48 +0900
parents 277ec00d793e
children f91fe0b85928
line wrap: on
line source

This package uses CMake (cmake.org) as building system. You'll need the cmake tool in order 
to generate the Makefiles for your platform. You can also select which extensions must be built.

Building in a separate directory is recommended:
mkdir build
cd build
cmake ../
make

You can enable the unary tests by doing:
cmake -DSKIP_TESTS:BOOL=OFF ../
make
make tests

Note: instead of passing options on the command line, you can use a CMake front-end (for example cmake-gui)
or edit the CCmakeCache.txt file directly.

Note that there are dependencies on external tools that may not be enforced by the configure script.
On Ubuntu Intrepid, the following packages were required (aptitude install ...):
 gcc make flex bison libsctp1 libsctp-dev cmake libgnutls-dev libgcrypt-dev

On FreeBSD the following packages were required:
 cmake flex bison
Then the cmake command had to look like:
 cmake -DFLEX_EXECUTABLE:FILEPATH=/usr/local/bin/flex ...

make install has not been tested yet and will probably not behave as expected!

You can also configure which extensions to build with CMake:
IGNORE_ALL_EXTENSIONS:BOOL=OFF    (or the following are ignored)
BUILD_APP_TEST:BOOL=ON
BUILD_RT_ANY:BOOL=ON
BUILD_RT_DEBUG:BOOL=ON
BUILD_RT_DEFAULT:BOOL=ON
BUILD_SAMPLE:BOOL=ON

You can change the default configuration file pathname:
DEFAULT_CONF_FILE:STRING=/path/to/some/freeDiameter.conf

Build binary with symbols, for debug:
CMAKE_BUILD_TYPE:STRING=Debug
"Welcome to our mercurial repository"