Difference between revisions of "Maemo"

From Navit's Wiki
Jump to: navigation, search
(Installing Navit on the Nokia n770/n800/n810)
Line 1: Line 1:
 
== Installing Navit on the Nokia n770/n800/n810 ==
 
== Installing Navit on the Nokia n770/n800/n810 ==
  
1.  [https://garage.maemo.org/frs/?group_id=594&release_id=1703 Download the binaries] or compile them within your scratchbox environment.
+
=== General instructions ===
  
2. Install navit and optionally support for garmin maps
+
# Install Navit. There's a Maemo project which provides some (currently rather dated) [https://garage.maemo.org/frs/?group_id=594&release_id=1703 binaries]. Alternatively, there are some "bleeding edge" binaries available in the [http://download.navit-project.org/navit/n800/svn/ download section].
  
3. Configure navit
+
# Get maps. It is possible to use Garmin maps, but maps of [http://openstreetmap.org openstreetmap], a wiki like world map, also should do a good job. There are several sources where you can download [http://wiki.navit-project.org/index.php/OpenStreetMaps Navit maps based on openstreetmap data]. Save them anywhere on your device, e.g. somewhere on the flash memory.
    The simplest way to get navit up and running is to use Open Street Maps as it is free and open source.
 
To do that, you should [http://wiki.navit-project.org/index.php/OpenStreetMaps download a binary version of the map] so it is ready to be used by navit.
 
  
    1. Edit navit.xml (must do this as root so the changes are saved, you can achieve this either by using SSH or become root).
+
# Configure Navit. Search for the file navit.xml as superuser root. Replace the path to the map file to fit your device and configuration:
      1.a Replace the path to the map file:
 
 
<mapset enabled="yes">
 
<mapset enabled="yes">
<map type="binfile" enabled="yes" data="/media/mmc2/map/planet.bin"/>
+
<map type="binfile" enabled="yes" data="/media/mmc2/map/planet.bin"/>
</mapset>
+
</mapset>
  
        For me, I put my planet file on the memory card in a folder called map.
 
  
 +
=== Notes ===
 +
* The navit project now has a project page on the maemo garage site, https://garage.maemo.org/projects/navit/.
 +
* The first binary version of navit for the Internet Tablets was created on another site, http://www.tecdencia.net/navit/.
  
Notes:
+
=== Compiling Navit from source ===
The navit project now has a project page on the maemo garage site, https://garage.maemo.org/projects/navit/.
 
The first binary version of navit for the Internet Tablets was created on another site, http://www.tecdencia.net/navit/.
 
  
 +
Developers may need to compile the source within the scratchbox environment, which currently (2008-12-20) will [http://trac.navit-project.org/ticket/260 not compile] out of the box. You need to have Scratchbox and the Nokia SDK installed. Place the source inside the scratchbox environment, log in to scratchbox, cd to the source directory and execute the following commands:
  
If you want to build navit yourself, you need to have scratchbox installed and should execute the following:
+
./autogen.sh
 +
./configure --disable-binding-python --disable-gui-sdl --disable-samplemap --enable-avoid-float --enable-avoid-unaligned
 +
make
 +
make install
  
 +
Others have used slightly different options for configure:
 +
* ./configure --prefix=/home/user/navit --disable-garmin --disable-samplemap --disable-hildon --disable-binding-python --disable-graphics-sdl --disable-gui-sdl --disable-postgresql --disable-svg2png
 +
* ./configure -q -enable-hildon -disable-binding-python -disable-gui-sdl -disable-samplemap -enable-avoid-float -enable-avoid-unaligned -prefix=/usr
  
You just have to build last version with this option : --disable-binding-python --disable-gui-sdl --disable-samplemap --enable-avoid-float --enable-avoid-unaligned
+
BTW: The Hildon support seems not to be that perfect yet.
 
 
Additional tips for this specific platform may be added. Feel free to contribute!
 
  
 
Some additional details (Nov 28, 2008):  
 
Some additional details (Nov 28, 2008):  

Revision as of 14:05, 20 December 2008

Installing Navit on the Nokia n770/n800/n810

General instructions

  1. Install Navit. There's a Maemo project which provides some (currently rather dated) binaries. Alternatively, there are some "bleeding edge" binaries available in the download section.
  1. Get maps. It is possible to use Garmin maps, but maps of openstreetmap, a wiki like world map, also should do a good job. There are several sources where you can download Navit maps based on openstreetmap data. Save them anywhere on your device, e.g. somewhere on the flash memory.
  1. Configure Navit. Search for the file navit.xml as superuser root. Replace the path to the map file to fit your device and configuration:

<mapset enabled="yes"> <map type="binfile" enabled="yes" data="/media/mmc2/map/planet.bin"/> </mapset>


Notes

Compiling Navit from source

Developers may need to compile the source within the scratchbox environment, which currently (2008-12-20) will not compile out of the box. You need to have Scratchbox and the Nokia SDK installed. Place the source inside the scratchbox environment, log in to scratchbox, cd to the source directory and execute the following commands:

./autogen.sh ./configure --disable-binding-python --disable-gui-sdl --disable-samplemap --enable-avoid-float --enable-avoid-unaligned make make install

Others have used slightly different options for configure:

  • ./configure --prefix=/home/user/navit --disable-garmin --disable-samplemap --disable-hildon --disable-binding-python --disable-graphics-sdl --disable-gui-sdl --disable-postgresql --disable-svg2png
  • ./configure -q -enable-hildon -disable-binding-python -disable-gui-sdl -disable-samplemap -enable-avoid-float -enable-avoid-unaligned -prefix=/usr

BTW: The Hildon support seems not to be that perfect yet.

Some additional details (Nov 28, 2008): I spent an evening getting Navit working on my N800, here are what else you need to do on Diablo with a Bluetooth GPS

  1. Install bluez-utils-test, have to get this from a Chinook repository for now
  2. Follow the instructions here [1]
  3. Change your navit.xml vehicle definition to use file:/dev/rfcomm0 instead of gpsd

Now each time you start Navit, the GPS connection gets made for you. This avoids workarounds such as starting Map or gpsview. --Gerritv 14:13, 29 November 2008 (CET)