<?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="building__source_8md" kind="file" language="Markdown">
    <compoundname>building_source.md</compoundname>
    <briefdescription>
    </briefdescription>
    <detaileddescription>
    </detaileddescription>
    <programlisting>
<codeline><highlight class="normal">Building<sp/>the<sp/>source</highlight></codeline>
<codeline><highlight class="normal">===================</highlight></codeline>
<codeline></codeline>
<codeline><highlight class="normal">Getting<sp/>libusermetrics</highlight></codeline>
<codeline><highlight class="normal">----------------------</highlight></codeline>
<codeline></codeline>
<codeline><highlight class="normal">Libusermetrics<sp/>is<sp/>a<sp/>project<sp/>on<sp/>Launchpad<sp/>(https://launchpad.net/libusermetrics).</highlight></codeline>
<codeline><highlight class="normal">To<sp/>grab<sp/>a<sp/>copy<sp/>use<sp/>the<sp/>command:</highlight></codeline>
<codeline></codeline>
<codeline><highlight class="normal"><sp/><sp/><sp/><sp/>$<sp/>bzr<sp/>branch<sp/>lp:libusermetrics</highlight></codeline>
<codeline></codeline>
<codeline></codeline>
<codeline><highlight class="normal">Getting<sp/>dependencies</highlight></codeline>
<codeline><highlight class="normal">--------------------</highlight></codeline>
<codeline></codeline>
<codeline><highlight class="normal">To<sp/>succesfully<sp/>build<sp/>libusermetrics<sp/>there<sp/>are<sp/>a<sp/>few<sp/>packages<sp/>required.<sp/>The</highlight></codeline>
<codeline><highlight class="normal">easiest<sp/>way<sp/>to<sp/>get<sp/>them<sp/>is<sp/>to<sp/>use<sp/>the<sp/>packaging<sp/>build<sp/>dependencies:</highlight></codeline>
<codeline></codeline>
<codeline><highlight class="normal"><sp/><sp/><sp/><sp/>$<sp/>sudo<sp/>apt-get<sp/>install<sp/>devscripts<sp/>equivs<sp/>cmake</highlight></codeline>
<codeline><highlight class="normal"><sp/><sp/><sp/><sp/>$<sp/>sudo<sp/>mk-build-deps<sp/>--install<sp/>--tool<sp/>&quot;apt-get<sp/>-y&quot;<sp/>--build-dep<sp/>debian/control</highlight></codeline>
<codeline></codeline>
<codeline></codeline>
<codeline><highlight class="normal">Building<sp/>libusermetrics</highlight></codeline>
<codeline><highlight class="normal">-----------------------</highlight></codeline>
<codeline></codeline>
<codeline><highlight class="normal">Libusermetrics<sp/>is<sp/>built<sp/>using<sp/>cmake.<sp/>To<sp/>make<sp/>life<sp/>simpler,<sp/>you<sp/>can<sp/>use<sp/>the</highlight></codeline>
<codeline><highlight class="normal">included<sp/>wrapper<sp/>script:</highlight></codeline>
<codeline></codeline>
<codeline><highlight class="normal"><sp/><sp/><sp/><sp/>$<sp/>./build</highlight></codeline>
<codeline></codeline>
<codeline><highlight class="normal">This<sp/>will<sp/>run<sp/>cmake<sp/>in<sp/>the<sp/>directory</highlight></codeline>
<codeline></codeline>
<codeline><highlight class="normal"><sp/><sp/><sp/><sp/>../${BRANCH_NAME}-build</highlight></codeline>
<codeline></codeline>
<codeline><highlight class="normal">You<sp/>can<sp/>also<sp/>ask<sp/>it<sp/>to<sp/>create<sp/>an<sp/>Eclipse<sp/>project<sp/>as<sp/>follows:</highlight></codeline>
<codeline></codeline>
<codeline><highlight class="normal"><sp/><sp/><sp/><sp/>$<sp/>./build<sp/>-e</highlight></codeline>
<codeline></codeline>
<codeline><highlight class="normal">The<sp/>next<sp/>step<sp/>is<sp/>to<sp/>build<sp/>the<sp/>source<sp/>and<sp/>run<sp/>the<sp/>tests:</highlight></codeline>
<codeline></codeline>
<codeline><highlight class="normal"><sp/><sp/><sp/><sp/>$<sp/>cd<sp/>../libusermetrics-build/make<sp/>(-j8)</highlight></codeline>
<codeline><highlight class="normal"><sp/><sp/><sp/><sp/>$<sp/>make<sp/>check</highlight></codeline>
<codeline></codeline>
<codeline><highlight class="normal">Installing<sp/>libusermetrics</highlight></codeline>
<codeline><highlight class="normal">-------------------------</highlight></codeline>
<codeline></codeline>
<codeline><highlight class="normal">To<sp/>install<sp/>libusermetrics<sp/>just<sp/>use<sp/>the<sp/>normal<sp/>make<sp/>install<sp/>command:</highlight></codeline>
<codeline></codeline>
<codeline><highlight class="normal"><sp/><sp/><sp/><sp/>$<sp/>make<sp/>install</highlight></codeline>
<codeline></codeline>
<codeline><highlight class="normal">This<sp/>will<sp/>install<sp/>the<sp/>libusermetrics<sp/>input<sp/>/<sp/>output<sp/>libraries,<sp/>storage<sp/>service,</highlight></codeline>
<codeline><highlight class="normal">and<sp/>header<sp/>files<sp/>to<sp/>the<sp/>configured<sp/>installation<sp/>location<sp/>(/usr/local<sp/>by</highlight></codeline>
<codeline><highlight class="normal">default).<sp/>If<sp/>you<sp/>install<sp/>to<sp/>a<sp/>non-standard<sp/>location,<sp/>keep<sp/>in<sp/>mind<sp/>that<sp/>you<sp/>will</highlight></codeline>
<codeline><highlight class="normal">probably<sp/>need<sp/>to<sp/>properly<sp/>set<sp/>the<sp/>PKG_CONFIG_PATH<sp/>environment<sp/>variable<sp/>to<sp/>allow</highlight></codeline>
<codeline><highlight class="normal">other<sp/>applications<sp/>to<sp/>build<sp/>against<sp/>libusermetrics,<sp/>and<sp/>LD_LIBRARY_PATH<sp/>to<sp/>allow</highlight></codeline>
<codeline><highlight class="normal">applications<sp/>to<sp/>find<sp/>the<sp/>libusermetrics<sp/>libraries<sp/>at<sp/>runtime.</highlight></codeline>
    </programlisting>
    <location file="/home/odroid/lomiri/libusermetrics-git/src/libusermetrics/doc/pages/building_source.md"/>
  </compounddef>
</doxygen>
