TomTom

From Navit's Wiki
Revision as of 16:07, 14 March 2010 by Xenos1984 (talk | contribs) (Software requirements)
Jump to: navigation, search

Navit has not been successfully ported to TomTom yet. However, there is work in progress. I will scratch my experiences here and, hopefully, end up with some guide on porting Navit to TomTom.

TomTom hardware

Lots of information can be found at http://www.opentom.org.

Prerequisities

Before we can start, we need to set up a compiler toolchain targetting TomTom devices. TomTom provides a a pre-compiled compiler toolchain for Linux and Windows. It can be downloaded from TomTom's website: http://www.tomtom.com/page.php?Page=gpl. This file needs to be unpacked into /usr/local/cross.

In order to use the TomTom compiler and libraries, we need to set some environment variables:

export PREFIX=/usr/local/cross/gcc-3.3.4_glibc-2.3.2/arm-linux/sys-root
export CFLAGS="-mcpu=arm920t -O2 -I$PREFIX/include -I$PREFIX/usr/include"
export CPPFLAGS="-I$PREFIX/include -I$PREFIX/usr/include"
export LDFLAGS="-L$PREFIX/lib -L$PREFIX/usr/lib"

The toolchain is now ready for use.

Porting libraries

Several libraries need are needed by Navit and must be ported as well.

zlib

libxml2

libfontconfig

DirectFB

SDL

SDL_Image

glib

Porting Navit