Thread: Navit on N900
View Single Post
Posts: 12 | Thanked: 3 times | Joined on Jan 2010
#461
Originally Posted by Flandry View Post
Installing Latest Navit

Consider this to be Extras-devel level risk (experimental/may cause your navel to invert). It is a script that downloads a recent build from http://www.chollya.org/navit (the only developer building packages for Maemo), installs it and the dependencies, and also downloads the configuration files.

To install the latest version of Navit, download this with your N900: Attachment 14810 and save to "N900".

Then, make sure you have rootsh installed (use App Manager) and open an xterm window. Type:

Code:
mv MyDocs/navit-install.txt .
sudo gainroot
chmod a+x navit-install.txt
./navit-install.txt
exit
Pay attention to the output. You may need to answer "y" to a prompt.. There will be some warnings due to forced install and because of the file moving from the FAT filesystem to Ext. If all goes well it will eventually tell you "You need to copy your map to the navit_maps folder of N900. Name it mymap.bin."

Getting a map
(Note: this part could be done on N900, but is verrrrry slow--do it with a PC.) You can get a map of your area here. Save it to your PC, rename it mymap.bin, and then connect your N900 with USB in Mass Storage mode and copy mymap.bin to the navit_maps folder. Alternative method: If you must do this part on the N900, use a pre-processed map for your country of interest, which can be downloaded from here. Pick the <your country>.navit.bin.zip file and download it to navit_maps in the N900 folder (AKA MyDocs). Unzip it. Rename the resulting map to mymap.bin.

To use a free garmin map, you'll need to edit .navit/maps.xml and either copy the existing entry or change it. The type should be "garmin" and the map name altered as appropriate. Garmin maps end with ".img".

If the script ended with "Success", you're done. Run Navit from icon.

Let me know if it works for you (or doesn't ), so i can fix mistakes in my script and report bugs to the devs. I will update this post as needed.

Routing
To get routing instructions, you can either use bookmarks or tell navit to use a place as the destination. Do this by zooming in to the place you want to go to and going into the menu. Then select Actions->Map and either "Set as destination" or "Add as bookmark". Cancel routing from the Actions menu by selecting "Stop Navigation".

Tips and Tricks
  • Get as small of a map area as is useful for you. Map size affects performance. You can have multiple maps and enable/disable them from the GUI menu.
  • If things are sluggish, zoom in one level. The high-resolution screen of the N900 requires it to really process a lot of image elements at intermediate zoom levels (when many things are visible). I'm looking into changing the zoom level where some features show up to make the default install a bit more snappy.
  • You can enable the "Northing" option in the menu to make your map always stay with North "up" or rotate with your heading. This setting seems to periodically switch itself off. Sorry.

Known Issues
  • Some POI icons are broken in this release. This fixes it. This is because they are moving to all svg icons, but svg versions aren't available for some icons. If you have artistic abilities, you might help.
  • Quitting by "x" in upper right doesn't fully kill app. Use "Quit" button in Actions menu or Ctrl-C in xterm where the app was started to close it. If you accidentally close navit this way, type "killall navit" in xterm to get rid of the rogue process. 1
  • Starting from icon doesn't work if you have closed navit using the Maemo5 quit button. (See previous item.)
  • Selecting the fullscreen icon sometimes causes a crash. Going fullscreen from the GUI's display menu usually works. 2
  • Issue commented on in previous post can now be fixed by modifying config file for "vehicle" to increase the threshold. 3
  • Searching can be limited due to the nature of OSM and some limitations in navit.
  • Selecting POIs menu option in GUI leaves navit busy forever. Suggest not doing it. 4

Fullscreen mode with routing:
Attachment 11929

Updating navit
Due to the forced dependencies, it would be best to start by uninstalling the previous version. If you originally installed navit with the script, use the uninstall script. Otherwise use App Manager. Then get the latest install script and follow the install instructions above.

Removing navit
This script will uninstall navit. Download it and move/chown/etc. it in exactly the same way as the above script except that it is called navit-remove.txt instead of navit-install.txt.

Attachment 11936
This is w8 i get when trying to use navit
/home/user # navit
map_rect_new_textfile unable to open textfile /home/user/.navit/bookmark.txt
plugin_ossosso_navit:error initiating osso context
graphics_qt_qpainter:graphics_priv* graphics_qt_qpainter_new(navit*, graphics_methods*, attr**, callback_list*):enter
Maemo applications must be run with the run-standalone.sh script!
QGtkStyle was unable to detect the current GTK+ theme.
graphics_qt_qpainter:graphics_priv* graphics_qt_qpainter_new(navit*, graphics_methods*, attr**, callback_list*):return
navit:xinclude:Unable to include /home/user/.navit/OSD.xml
navit:xinclude:Unable to include /opt/navit/share/navit/maps/*.xml
navit:main_real:Error parsing '/home/user/.navit/navit.xml': element '��2@�
' not closed