maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Navit on N900 (https://talk.maemo.org/showthread.php?t=38800)

drasu 2010-11-14 08:38

Re: Navit on N900
 
Quote:

Originally Posted by Flandry (Post 746245)
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. :cool:

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. :D 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_osso:osso_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

dchky 2010-11-19 11:30

Re: Navit on N900
 
Some months back I enabled a magic setting in the config somewhere that allowed me to press and hold on the display to bring up a menu on the map screen itself, just wondering if anyone might know the particular option so I can enable this again, it made interacting with Navit a pleasure.

Wikiwide 2010-11-19 21:28

Re: Navit on N900
 
Quick reply...
Quote:

Originally Posted by drasu (Post 872929)
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_osso:osso_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

Do you have /home/user/.navit/bookmark.txt? Are permissions correct?
The same about /home/user/.navit/OSD.xml
/opt/navit/share/navit/maps/*.xml

Either run as non-root or run with run-standalone.sh script.

In
/home/user/.navit/navit.xml
Where is ��2@�? It's causing problems, it's non-closed, xml cannot be parsed.

gianko 2010-11-27 23:35

Re: Navit on N900
 
Can someone update this page with informations about Navit on the N900? http://wiki.navit-project.org/index....n770/n800/n810

gnasgame3 2010-12-02 17:14

Re: Navit on N900
 
quote <<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".>>

cannot use garmin maps it says invalid type "garmin"
have changed the maps.xml to type garmin

vaporeso 2010-12-08 02:18

Re: Navit on N900
 
is anyone getting garmin maps to work on this? ive tried last, and 2 previous version and cant get it to work, ive modified the maps.xml on the type part and the file extension part but with no luck at all, any idea?

gerdich 2010-12-17 00:59

Re: Navit on N900
 
There seems to be a problem with my qpainter.

The letters of the names don't appear visible but they are there unvisible.

me/user # run-standalone.sh navit
graphics_qt_qpainter:graphics_priv* graphics_qt_qpainter_new(navit*, graphics_methods*, attr**, callback_list*):enter
graphics_qt_qpainter:graphics_priv* graphics_qt_qpainter_new(navit*, graphics_methods*, attr**, callback_list*):return
navit:plugin_load:can't load '/opt/navit/lib/navit/osd/libosd_core.so', already loaded
navit:xinclude:Unable to include /opt/navit/share/navit/maps/*.xml
map_binfile:map_binfile_open:Failed to load '/home/user/MyDocs/navit_maps/mymap.bin'
graphics_qt_qpainter:void RenderArea::do_resize(QSize):size 533x320
graphics_qt_qpainter:void RenderArea::do_resize(QSize):pixmap 0x216ad0 533x320
navit:main_real:Using '/home/user/.navit/navit.xml'
graphics_qt_qpainter:void RenderArea::do_resize(QSize):size 800x424
graphics_qt_qpainter:void RenderArea::do_resize(QSize):pixmap 0x216ad0 800x424
plugin_osso:osso_cb_hw_state_idle:(inact=0, save=0, shut=0, memlow=0, state=0)
navit:tracking_update:failed to get position data 1 1 1 0
navit:osd_std_click:calling command 'gui.menu()'
gui_internal:gui_internal_set_refresh_callback:con d=(null)
gui_internal:gui_internal_set_refresh_callback:con d=(null)
QPainter::end: Painter not active, aborted
gui_internal:gui_internal_search_list_set_default_ country:country Deutschland
QPainter::end: Painter not active, aborted
gui_internal:gui_internal_search_changed:Town now 'B'
gui_internal:gui_internal_search_changed:process
QPainter::end: Painter not active, aborted
gui_internal:gui_internal_search_changed:Town now 'Be'
gui_internal:gui_internal_search_changed:process
QPainter::end: Painter not active, aborted
gui_internal:gui_internal_search_changed:Town now 'Ber'
gui_internal:gui_internal_search_changed:process
QPainter::end: Painter not active, aborted
gui_internal:gui_internal_search_changed:Town now 'Berl'
gui_internal:gui_internal_search_changed:process
QPainter::end: Painter not active, aborted
gui_internal:gui_internal_search_changed:Town now 'Berli'
gui_internal:gui_internal_search_changed:process
QPainter::end: Painter not active, aborted
gui_internal:gui_internal_search_changed:Town now 'Berlin'
gui_internal:gui_internal_search_changed:process
QPainter::end: Painter not active, aborted
navit:tracking_update:failed to get position data 1 1 1 0
Cannot open file '/opt/navit/share/navit/xpm/gui_select_house_number.svg', because: No such file or directory
gui_internal:image_new_scaled:failed to load gui_select_house_number with 32,32
QPainter::end: Painter not active, aborted
gui_internal:gui_internal_set_refresh_callback:con d=(null)
QPainter::end: Painter not active, aborted
navit:debug_dump_mallocs:mallocs 0
/home/user #

benji.my 2010-12-21 13:58

Re: Navit on N900
 
anyone still have the 3541 package? i want to use garmin coz only got garmin as updated map here..

NerdKnight 2010-12-27 23:17

Re: Navit on N900
 
1 Attachment(s)
Quote:

Originally Posted by benji.my (Post 901299)
anyone still have the 3541 package? i want to use garmin coz only got garmin as updated map here..

I've uploaded the 3541 files, here you have an intaller with the new links

ChrisPZV 2011-01-03 12:57

Re: Navit on N900
 
I found another really good method to get Navit to your n900 on www.ethersex.org. Unfortunately there's a mistake in the repo which makes the n900 not to get the Packages-information from it. So I uploaded the necessary files on my webspaces, corrected the error and used the installation instructions but made one change:
Instead of using "http://chollya.org/navit/" as url to repo I replaced the url with "http://chpohl.de/navit_n900/".

I've to mention that I did an installation of a really old navit version from the maemo extra repo before and just updated it with 'my' repo to version 3684. Everything works fine that way but I assume that just do a clean install from chpohl.de-repo will do as well.

Complete installation instruction will be available on my site soon, I'll anounce it here. (That will include tuned configuration of osd and icons.)

Known bugs so far:
  • Navit does not give any spoken instructions when not in foreground.
  • When media player is running its sound will be muted while navit wants to say instructions (but one cannot hear anything from navit/espeak).

Have fun using NavIt!


All times are GMT. The time now is 09:08.

vBulletin® Version 3.8.8