As it looks like I'm one of the really few people having a Raspberry Pi and trying to use Navit on it, I'm going to show how to successfully install Navit on Raspbian, the Debian distro for Raspberry Pi.
You have two different ways to install Navit: the easy one and (of course) the hard one.
Now you could wonder: why should I choose the hard one? I'm going to explain it right now.
1) The easy way is through the apt-get:
Code:
sudo apt-get install navit
In this way you can easily install Navit on your raspberry pi avoiding dependency problems because it will automatically install everything it's needed.
This kind of install should be ok for most of you
if you don't want the last version neither the CSV support for POIs.
2) The hard way means that you will have to compile Navit for the Raspberry Pi.
Doing so will give you the last version of Navit (and all the improvements) and the possibility to use CSV files for POIs.
First of all, we will have to deal with the dependencies:
Code:
sudo apt-get install subversion freeglut3-dev imagemagick libdbus-1-dev libdbus-glib-1-dev libdevil-dev libfontconfig1-dev libfreetype6-dev libfribidi-dev libgarmin-dev libimlib2-dev libpq-dev libqtwebkit-dev librsvg2-bin libspeechd-dev libxml2-dev ttf-liberation
This is for the compiling process:
Code:
sudo apt-get install gcc cmake zlib1g-dev libpng12-dev libgtk2.0-dev librsvg2-bin
This is for the SDL graphics (suggested):
Code:
sudo apt-get install libsdl-image1.2-dev libdevil-dev libglc-dev freeglut3-dev libxmu-dev libfribidi-dev
This is for the OpenGL support:
Code:
sudo apt-get install libglc-dev freeglut3-dev libgl1-mesa-dev libfreeimage-dev
This is QT:
Code:
sudo apt-get install libqt4-dev
This is for GPSd support (optional, I couldn't get GPSd working on my Rpi but you can try):
Code:
sudo apt-get install libgps-dev
This is espeak, TTS (text to speech)(optional):
Code:
sudo apt-get install espeak
Ok, now let's download the latest version of Navit from the repository (starting from your user's folder like /home/pi):
Code:
svn co https://navit.svn.sourceforge.net/svnroot/navit/trunk/navit/ navit
CMake builds Navit in a separate directory of your choice - this means that the directory in which the SVN source was checked out remains untouched.
Code:
mkdir navit-build
cd navit-build
Now the compiling (if you need CSV, keep reading!):
Code:
cmake ~/navit
make
If you need the CSV support for POIs, you must use:
Code:
cmake --enable-map-csv ~/navit
make
This can take A LOT of time (for me, it took almost 1 hour and a half or a bit less). At the end, you can start Navit (don't forget the configuration! Navit.xml):
Code:
cd ~/navit-build/navit/
./navit
-------------------------------
Source:
http://wiki.navit-project.org/index.php/Linux_development