User Tools

Site Tools


doc:appunti:hardware:eeepc_navit

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
doc:appunti:hardware:eeepc_navit [2008/04/21 18:32] – external edit 127.0.0.1doc:appunti:hardware:eeepc_navit [2011/04/22 11:32] – [Installing the GPS daemon] niccolo
Line 6: Line 6:
  
 ===== Compiling and installing Navit with Debian ===== ===== Compiling and installing Navit with Debian =====
- 
 {{  .:gps:navit_snapshot1.png?300|}} {{  .:gps:navit_snapshot1.png?300|}}
-The program is not yet packaged for Debian, so I had to compile the source code. First of all, install the following development packages: +The package entered Debian Squeeze.
- +
-  * libspeechd-dev +
-  * libgps-dev +
-  * libsdl1.2-dev +
-  * libglut3-dev +
-  * libcegui-mk2-dev +
-  * libglc-dev +
-  * libdevil-dev +
-  * libfribidi-dev +
- +
-then execute the standard **''./configure; make; make install''**.+
  
 +At present (2009-11) you can easily backport it to Debian Lenny, just download the three file **.dsc**, **.orig.tar.gz** and **.diff.gz** from the [[http://packages.debian.org/source/navit|Debian]] site and do:
  
 +<code>
 +dpkg-source -x navit_0.2.0~svn2663+dfsg.1-1.dsc
 +cd navit-0.2.0~svn2663+dfsg.1
 +dpkg-buildpackage -rfakeroot
 +</code>
  
 +... obviusly all the build dependencies must be installed before. The results are seven .deb packages that you can install with **''dpkg -i''**.
  
 ===== Getting the map from OpenStreetMap ===== ===== Getting the map from OpenStreetMap =====
Line 41: Line 36:
  
 ===== Installing the GPS daemon ===== ===== Installing the GPS daemon =====
 +
 +This was tested on Debian Squeeze 6.0.
  
 Before starting Navit the **gpsd** should be up and running. Install the gpsd package and configure it, this is the relevant part of **''/etc/default/gpsd''** file: Before starting Navit the **gpsd** should be up and running. Install the gpsd package and configure it, this is the relevant part of **''/etc/default/gpsd''** file:
Line 51: Line 48:
 </file> </file>
  
-It is convenient to let **udev** handle some operations: when I connect my **[[gps_logger_i_blue_747|i-Blue 747 USB GPS logger]]** I want gpsd to be started (if it was not)Just add the following line to the file **''/etc/udev/rules.d/z60_gpsd.rules''** and restart udev:+This will start **''gpsd''** at bootstrap, it will wait for the GPS to be connected to the USB port. **Note:** when the USB is connected, ''udev'' will not start ''gpsd'' if it is not already running (i.e. when ''START_DAEMON="false"''). 
 + 
 +**''udev''** will handle the automatic connection of the GPS via USB, there is a script **''/lib/udev/rules.d/60-gpsd.rules''** in Debian Squeeze which includes the **[[gps_logger_i_blue_747|i-Blue 747 USB GPS logger]]**. 
 + 
 +For previous Debian releases just add the following line to the file **''/etc/udev/rules.d/z60_gpsd.rules''** and restart ''udev'':
  
 <file> <file>
Line 58: Line 59:
 </file> </file>
  
-When the GPS is plugged into the USB port, udev creates the **''/dev/gps0''** device and starts **gpsd**. When the GPS is unplugged the Unix device is removed, but the daemon remains running.+When the GPS is plugged into the USB port, ''udev'' creates the **''/dev/gps0''** device, when the GPS is unplugged the Unix device is removed and the daemon remains running.
  
 A simple test to check that gpsd is working, is to run **''gpspipe -r''** (provided by the ''gpsd-clients'' package), it should print out the NMEA messages recevied from the GPS: A simple test to check that gpsd is working, is to run **''gpspipe -r''** (provided by the ''gpsd-clients'' package), it should print out the NMEA messages recevied from the GPS:
Line 74: Line 75:
 $GPGGA,112814.000,4353.5310,N,01106.0969,E,0,3,,102.4,M,47.6,M,,*4B $GPGGA,112814.000,4353.5310,N,01106.0969,E,0,3,,102.4,M,47.6,M,,*4B
 </code> </code>
- 
- 
- 
- 
- 
- 
- 
 ==== Problems to be solved with gpsd ==== ==== Problems to be solved with gpsd ====
  
doc/appunti/hardware/eeepc_navit.txt · Last modified: 2011/04/22 13:00 by niccolo