Close

Libresmartphone using Navit (Open source Navigation system)

A project log for libresmartphone

Open hardware smartphone

gerardGerard 09/20/2015 at 21:430 Comments

Instructions for installing Navit:

1) Install the following packages:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install gpsd gpsd-clients cmake subversion build-essential espeak freeglut3-dev imagemagick libdbus-1-dev libdbus-glib-1-dev libdevil-dev libfontconfig1-dev libfreetype6-dev libfribidi-dev libgarmin-dev libglc-dev libgps-dev libgtk2.0-dev libimlib2-dev libpq-dev libqt4-dev libqtwebkit-dev librsvg2-bin libsdl-image1.2-dev libspeechd-dev libxml2-dev ttf-liberation

2) Install navit

sudo apt-get install navit

3) Download the desired maps from http://maps9.navit-project.org/ . You can download the map from a predefined area or from a selection, if you want the whole planet it is 18Gb.

Rename the *.bin file to osm.bin. (Place it in /home/**user**/**desired_folder**)

4) Edit the navit.xml

sudo nano /etc/navit/navit.xml

Find the section with "openstreetmaps" (Ctrl+W) and modify to your needs (**user**/**desired_folder**):

 <!-- Mapset template for openstreetmaps -->
 <mapset enabled="yes">
 <map type="binfile" enabled="no" data="/media/mmc2/MapsNavit/osm_europe.bin"/>
 <map type="binfile" enabled="yes" data="/home/**user**/**desired_folder**/osm.bin"/>
 </mapset>

Set all other mapsets to “no”, to ensure, that only the new OSM-map is loaded an used:

 <mapset enabled="no">
 [...]

5) Run navit

navit

Discussions