Difference between revisions of "Raspberry Pi"

From Navit's Wiki
Jump to: navigation, search
(Created page with " = Compiling for the Raspberry Pi = Compiling for the Pi is (of course) mostly like Compiling for Linux. (Thanks to Angelus88, who posted it here: [htt...")
 
m (higihlightning and light formating)
Line 6: Line 6:
 
(Thanks to Angelus88, who posted it here: [https://forum.navit-project.org/viewtopic.php?f=11&t=405].)
 
(Thanks to Angelus88, who posted it here: [https://forum.navit-project.org/viewtopic.php?f=11&t=405].)
  
 +
==Raspian==
 +
First of all, we will have to deal with the [[dependencies]]:
  
First of all, we will have to deal with the dependencies:
+
<source lang="bash">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 </source>
 
 
<pre>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 </pre>
 
  
 
This is for the compiling process:
 
This is for the compiling process:
  
<pre>sudo apt-get install gcc cmake zlib1g-dev libpng12-dev libgtk2.0-dev librsvg2-bin </pre>
+
<source lang="bash">sudo apt-get install gcc cmake zlib1g-dev libpng12-dev libgtk2.0-dev librsvg2-bin </source>
  
 
This is for the SDL graphics (suggested):
 
This is for the SDL graphics (suggested):
  
<pre>sudo apt-get install libsdl-image1.2-dev libdevil-dev libglc-dev freeglut3-dev libxmu-dev libfribidi-dev </pre>
+
<source lang="bash">sudo apt-get install libsdl-image1.2-dev libdevil-dev libglc-dev freeglut3-dev libxmu-dev libfribidi-dev </source>
  
 
This is for the OpenGL support:
 
This is for the OpenGL support:
  
<pre>sudo apt-get install libglc-dev freeglut3-dev libgl1-mesa-dev libfreeimage-dev </pre>
+
<source lang="bash">sudo apt-get install libglc-dev freeglut3-dev libgl1-mesa-dev libfreeimage-dev </source>
 
This is QT:
 
This is QT:
  
<pre>sudo apt-get install libqt4-dev </pre>
+
<source lang="bash">sudo apt-get install libqt4-dev </source>
  
 
This is for GPSd support (optional, I couldn't get GPSd working on my Rpi but you can try):
 
This is for GPSd support (optional, I couldn't get GPSd working on my Rpi but you can try):
  
<pre>sudo apt-get install libgps-dev </pre>
+
<source lang="bash">sudo apt-get install libgps-dev </source>
  
 
This is espeak, TTS (text to speech)(optional):
 
This is espeak, TTS (text to speech)(optional):
  
<pre>
+
<source lang="bash">
 
sudo apt-get install espeak
 
sudo apt-get install espeak
</pre>
+
</source>
  
 
Ok, now let's download the latest version of Navit from the repository (starting from your user's folder like /home/pi):
 
Ok, now let's download the latest version of Navit from the repository (starting from your user's folder like /home/pi):
  
<pre>svn co https://navit.svn.sourceforge.net/svnroot/navit/trunk/navit/ navit</pre>
+
<source lang="bash">svn co https://navit.svn.sourceforge.net/svnroot/navit/trunk/navit/ navit</source>
  
  
 
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.
 
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.
  
<pre>
+
<source lang="bash">
 
mkdir navit-build
 
mkdir navit-build
 
cd navit-build
 
cd navit-build
</pre>
+
</source>
 
Now the compiling (if you need CSV, keep reading!):
 
Now the compiling (if you need CSV, keep reading!):
  
<pre>
+
<source lang="bash">
 
cmake ~/navit
 
cmake ~/navit
 
make
 
make
</pre>
+
</source>
  
 
If you need the CSV support for POIs, you must use:
 
If you need the CSV support for POIs, you must use:
  
<pre>
+
<source lang="bash">
 
cmake --enable-map-csv ~/navit
 
cmake --enable-map-csv ~/navit
 
make
 
make
</pre>
+
</source>
 
This can take A LOT of time. At the end, you can start Navit (don't forget the configuration! Navit.xml):
 
This can take A LOT of time. At the end, you can start Navit (don't forget the configuration! Navit.xml):
  
<pre>
+
<source lang="bash">
 
cd ~/navit-build/navit/
 
cd ~/navit-build/navit/
 
./navit
 
./navit
</pre>
+
</source>
  
 
[[Category:Ports]]
 
[[Category:Ports]]
 
[[Category:Development]]
 
[[Category:Development]]

Revision as of 14:44, 17 June 2013

Compiling for the Raspberry Pi

Compiling for the Pi is (of course) mostly like Compiling for Linux.

(Thanks to Angelus88, who posted it here: [1].)

Raspian

First of all, we will have to deal with the dependencies:

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:

sudo apt-get install gcc cmake zlib1g-dev libpng12-dev libgtk2.0-dev librsvg2-bin

This is for the SDL graphics (suggested):

sudo apt-get install libsdl-image1.2-dev libdevil-dev libglc-dev freeglut3-dev libxmu-dev libfribidi-dev

This is for the OpenGL support:

sudo apt-get install libglc-dev freeglut3-dev libgl1-mesa-dev libfreeimage-dev

This is QT:

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):

sudo apt-get install libgps-dev

This is espeak, TTS (text to speech)(optional):

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):

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.

mkdir navit-build
cd navit-build

Now the compiling (if you need CSV, keep reading!):

cmake ~/navit
make

If you need the CSV support for POIs, you must use:

cmake --enable-map-csv ~/navit
make

This can take A LOT of time. At the end, you can start Navit (don't forget the configuration! Navit.xml):

cd ~/navit-build/navit/
./navit