1
Building the source {#building_source}
2
======================================
7
Libusermetrics is a project on Launchpad (https://launchpad.net/libusermetrics).
8
To grab a copy use the command:
10
$ bzr branch lp:libusermetrics
16
To succesfully build libusermetrics there are a few packages required. The
17
easiest way to get them is to use the packaging build dependencies:
19
$ sudo apt-get install devscripts equivs cmake
20
$ sudo mk-build-deps --install --tool "apt-get -y" --build-dep debian/control
23
Building libusermetrics
24
-----------------------
26
Libusermetrics is built using cmake. To make life simpler, you can use the
27
included wrapper script:
31
This will run cmake in the directory
33
../${BRANCH_NAME}-build
35
You can also ask it to create an Eclipse project as follows:
39
The next step is to build the source and run the tests:
41
$ cd ../libusermetrics-build/make (-j8)
44
Installing libusermetrics
45
-------------------------
47
To install libusermetrics just use the normal make install command:
51
This will install the libusermetrics input / output libraries, storage service,
52
and header files to the configured installation location (/usr/local by
53
default). If you install to a non-standard location, keep in mind that you will
54
probably need to properly set the PKG_CONFIG_PATH environment variable to allow
55
other applications to build against libusermetrics, and LD_LIBRARY_PATH to allow
56
applications to find the libusermetrics libraries at runtime.