<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.8.20" xml:lang="en-US">
  <compounddef id="md__home_odroid_lomiri_libusermetrics-git_src_libusermetrics_doc_pages_building_source" kind="page">
    <compoundname>md__home_odroid_lomiri_libusermetrics-git_src_libusermetrics_doc_pages_building_source</compoundname>
    <title>Building the source</title>
    <briefdescription>
    </briefdescription>
    <detaileddescription>
<sect1 id="md__home_odroid_lomiri_libusermetrics-git_src_libusermetrics_doc_pages_building_source_1autotoc_md0">
<title>Getting libusermetrics</title>
<para>Libusermetrics is a project on Launchpad (<ulink url="https://launchpad.net/libusermetrics">https://launchpad.net/libusermetrics</ulink>). To grab a copy use the command: <verbatim>$ bzr branch lp:libusermetrics
</verbatim></para>
</sect1>
<sect1 id="md__home_odroid_lomiri_libusermetrics-git_src_libusermetrics_doc_pages_building_source_1autotoc_md1">
<title>Getting dependencies</title>
<para>To succesfully build libusermetrics there are a few packages required. The easiest way to get them is to use the packaging build dependencies: <verbatim>$ sudo apt-get install devscripts equivs cmake
$ sudo mk-build-deps --install --tool &quot;apt-get -y&quot; --build-dep debian/control
</verbatim></para>
</sect1>
<sect1 id="md__home_odroid_lomiri_libusermetrics-git_src_libusermetrics_doc_pages_building_source_1autotoc_md2">
<title>Building libusermetrics</title>
<para>Libusermetrics is built using cmake. To make life simpler, you can use the included wrapper script: <verbatim>$ ./build
</verbatim></para>
<para>This will run cmake in the directory <verbatim>../${BRANCH_NAME}-build
</verbatim></para>
<para>You can also ask it to create an Eclipse project as follows: <verbatim>$ ./build -e
</verbatim></para>
<para>The next step is to build the source and run the tests: <verbatim>$ cd ../libusermetrics-build/make (-j8)
$ make check
</verbatim></para>
</sect1>
<sect1 id="md__home_odroid_lomiri_libusermetrics-git_src_libusermetrics_doc_pages_building_source_1autotoc_md3">
<title>Installing libusermetrics</title>
<para>To install libusermetrics just use the normal make install command: <verbatim>$ make install
</verbatim></para>
<para>This will install the libusermetrics input / output libraries, storage service, and header files to the configured installation location (/usr/local by default). If you install to a non-standard location, keep in mind that you will probably need to properly set the PKG_CONFIG_PATH environment variable to allow other applications to build against libusermetrics, and LD_LIBRARY_PATH to allow applications to find the libusermetrics libraries at runtime. </para>
</sect1>
    </detaileddescription>
  </compounddef>
</doxygen>
