Install latest navit on qtmoko without gpsd / GTA02

Davide Scaini dscaini at gmail.com
Mon Jan 28 11:29:03 CET 2013


Thanks! I'll try this on SHR ;)
d

On Mon, Jan 28, 2013 at 9:05 AM, robin <spielraum at web.de> wrote:

> #Maybe this is of interest to some of you. If you want a more recent
> version of
> #navit you may do the following. The QtMoko QX b) solution removes the
> needs for
> #gpsd as the serial output can be used by navit directly. It only worked
> with
> #one baudrate though and I don't know if or how this would influence the
> max
> # speed at which navit would process nmea.
>
> SOLVED for SHR / QtMoko QX
> UNSOLVED for QtMoko without QX
> thanks for all your answers, here is my summary
>
> SHR (not tested):
> get the latest package and install with opkg
> http://download.navit-project.org/navit/openmoko/svn/
> (maybe you have to backup your navit.xml beforehand?)
>
>
> QtMoko (QX only):
> a) via navit from wheezy instead of squeeze  (not tested)
>
> echo "deb-src http://ftp.debian.org/debian wheezy main" >>
>  /etc/apt/sources.list
> sudo apt-get update
> sudo apt-get build-dep navit
> apt-get --build source navit
> (maybe you have to backup your navit.xml beforehand?)
>
>
> b) by building navit from source without gpsd (tested, works)
>
> ### ASSUMPTIONS:
> ## your map is in /media/card/Maps/Navit/
> ## in the end you have to UNCHECK THE ENABLE GPS TOGGLE in the QX ...
> ## ... Settings for Navit!!! < I don't know how this is done automatically
> ## Please read through the script before just copy and pasting!
> ## exectute PARTS I - III one after the other
> ###################### INITIAL SETUP ######################
> ### PART I
> ## backup your old navit.xml
> cp /usr/share/navit/navit.xml /media/card/Maps/Navit
>
> ## uninstall gpsd
> apt-get purge gpsd espeak
> apt-get autoremove
>
> ## create new navit launcher script
> cat > /usr/bin/navit.custom.sh << EOF
> #!/bin/bash
> xset -dpms
> xset s off
>
> /opt/qtmoko/bin/gps-poweron.sh
>
> navit
>
> /opt/qtmoko/bin/gps-poweroff.sh
>
> xset +dpms
> xset s on
>
> EOF
>
> ## make it execuatable
> chmod a+x /usr/bin/navit.custom.sh
>
> ## create desktop entry for new navit
> cat > /usr/share/applications/navit.desktop << EOF
> [Desktop Entry]
> Version=1.0
> Name=Navit
> Name[de]=Navit
> Name[fr]=Navit
> Comment=The open source vector based navigation program with routing engine
> Comment[de]=Ein vektorbasiertes Navigationsprogramm
> Comment[fr]=Le logiciel opensource de navigation vectorielle
> Exec=navit.custom.sh
> Icon=navit
> StartupNotify=true
> Terminal=false
> Type=Application
> Categories=GTK;Utility;Geography;
> GenericName=Navit
> GenericName[de]=Navit
>
> EOF
>
> ## install newest navit
> rm /media/card/Maps/Navit/navit-current.tar.gz
> cd /media/card/Maps/Navit
> wget
> http://download.navit-project.org/navit/openmoko/svn/navit-current.tar.gz
> cd /
> tar -xzvf /media/card/Maps/Navit/navit-current.tar.gz
> rm /media/card/Maps/Navit/navit-current.tar.gz
>
> ## backup the newest original navit file for comparison /merging
> cp /usr/share/navit/navit.xml /media/card/Maps/Navit/navit.xml.orig
>
> ### PART II
> ### EDIT the /media/card/Maps/Navit/navit.xml to your needs as this one
> ### will be used later on
> ## you can use diffuse to compare the files locally and then copy the
> ## merged file back
>
> ### PART III
> ## restore your navit.xml
> cp /media/card/Maps/Navit/navit.xml /usr/share/navit/navit.xml
>
> ## make sure your vehicle uses the serial:
> sed -e 's/source="gpsd://localhost" gpsd_query="w+xj"/source="file:
> /dev/ttySAC1" baudrate="9600" follow="1" >/g' /usr/share/navit/navit.xml >>
> /usr/share/navit/navit.xml
>
> ## update the map to your map which can have any name but must lie in
> /media/card/Maps/Navit/
> echo '<map type="binfile" enabled="yes"
> data="/media/card/Maps/Navit/*.bin"/>' >
> /usr/share/navit/maps/osm_bbox_11.3,47.9,11.7,48.2.xml
>
> ## UNCHECK THE ENABLE GPS TOGGLE in the QX Settings for Navit!!! < I don't
> ## know how this is done automatically
>
>
>
> ############ if the inital setup worked and you just want to update
> ########
> ###################### UPDATING SETUP ######################
> ## backup your old navit.xml
> ### PART I
> cp /usr/share/navit/navit.xml /media/card/Maps/Navit
>
> ## install newest navit
> rm /media/card/Maps/Navit/navit-current.tar.gz
> cd /media/card/Maps/Navit
> wget
> http://download.navit-project.org/navit/openmoko/svn/navit-current.tar.gz
> cd /
> tar -xzvf /media/card/Maps/Navit/navit-current.tar.gz
> rm /media/card/Maps/Navit/navit-current.tar.gz
>
> ## backup the newest original navit file for comparison /merging
> cp /usr/share/navit/navit.xml /media/card/Maps/Navit/navit.xml.orig
>
> ### PART II
> ### EDIT the /media/card/Maps/Navit/navit.xml to your needs as this one
> ### will be used later on
>
> ### PART III
> ## restore your navit.xml
> cp /media/card/Maps/Navit/navit.xml /usr/share/navit/navit.xml
>
> ## update the map to your map
> echo '<map type="binfile" enabled="yes"
> data="/media/card/Maps/Navit/*.bin"/>' >
> /usr/share/navit/maps/osm_bbox_11.3,47.9,11.7,48.2.xml
>
> ## update the desktop file
> sed -e 's/Exec=navit/Exec=navit.custom.sh/g' /usr/share/applications
> /navit.desktop >> /usr/share/applications/navit.desktop
>
>
>
>
>
>
>
>
>
> br robin
>
>
> _______________________________________________
> Openmoko community mailing list
> community at lists.openmoko.org
> http://lists.openmoko.org/mailman/listinfo/community
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openmoko.org/pipermail/community/attachments/20130128/036fa0be/attachment.htm>


More information about the community mailing list