howto_compile.md 1.46 KB
Newer Older
1 2 3 4 5 6 7
Librairies
==========

LMDB
----

This lib is necessary for all executables. Let your distribution do the job.
8
(liblmdb-dev on debian).
9 10 11 12 13 14 15

osmpbf
------

This lib is necessary only for the creation of route database. Do not do this in
the rv2 dir but in the dir which contains rv2 (or change rv2 src makefile).

16 17 18
This lib need libprotobuf to be build and the protobuf compiler. Let your
distribution do the job (libprotobuf-dev and protobuf-compiler on debian).

19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
{{{
    git clone https://github.com/inphos42/osmpbf.git
    cd osmpbf
    git clone https://github.com/inphos42/generics.git
    cmake .
    make
}}}

Build
=====

Go in the src dir, and use make for the target you want. The following target
are available:

 - elevation_create_database: creation of elevation database from srtm files
 
 - elevation_query_database: query of elevation by coordinates
 
 - lmdb_rewriter: rewrite a lmdb database, usefull to rewrite big sparse file as
   little dense one.

 - route_create_database_from_pbf: (needs osmpbf lib) creation of the route
   database (constituted by two db, lookup and nodes) from a pbf file and using
   elevation database.

 - route_query_lookup_database: query lookup db in route db to found nodes id
   near the given coordinates. Nodes are searched on the same connected
   component.

 - route_query_nodes_database: query nodes db in route db to have informations
   about given nodes id.

 - route: Give a route between given coordinated. The goal of the project.