From Navit's Wiki
Revision as of 20:59, 17 June 2009 by (talk | contribs) (Iphone Draft)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Apple finally allows turn-by-turn directions on their Iphone 3G Device.

Navit can now be ported officially to Iphone 3.0 firmware.


Iphone screen1.jpg Iphone screen2.jpg


First you will need to compile below libraries:

  • FreeType
  • FontConfig
  • SDL
  • SDL_image
  • Png
  • ImageMagick
  • Jpeg6b (optional)
  • Tiff (optional)

Concerning App Store

Need a volunteer with a mac :)

  • SDL is ready for Xcode
  • ...

Concerning Opentoolchain

I assume that your cross-compiler is ready and that you are able to generate telesphoreo packages.

  • Cross-compiler: [1]
  • Telesphoreo: [2]
svn co  
export PATH=$PATH:$WHEREIS_YOUR_TOOLCHAIN/toolchain/pre/bin
export PKG_ARCH=iphoneos-arm

Png, tiff, Imagemagick are already available on telesphoreo which is the APT-based distribution of Unix software for modern smartphones started by Jay Freeman (saurik). So you can download it from Cydia. For others, you will find all necessary telesphoreo patches on below ticket: [3]

 patch -p0 < sdl_ft_fc_jpg_new_packages_telesphoreo.diff

Currently, I hope that above libs will be accepted on telesphoreo distribution to skip this first step.

Then we can deal with Navit code.


Please find below telesphoreo patch for navit. Navit_patch_iphone

Once your telesphoreo source code is patched with additional libs and Navit. Just enter below command

./ navit 

It will build navit and all other dependencies (above libs).

Upload your deb files (scp,ssh,...) to your device and install them thanks to dpkg ...

dpkg -i fontconfig_2.6.0-1_iphoneos-arm.deb
dpkg -i freetype_2.3.9-5_iphoneos-arm.deb
dpkg -i sdl-image_1.2.0-r4521-4_iphoneos-arm.deb
dpkg -i sdl_1.3.0-r4521-1_iphoneos-arm.deb
dpkg -i jpeg_6b-14-x_iphoneos-arm.deb
dpkg -i navit_0.1.0-r2307-x_iphoneos-arm.deb

PS: currently I have no ftp to make those debs available for download. If someone have a ftp, we can maybe put those files on it.

Then Have fun :)


OSM map files are expected as below:


A new navit.xml can be copied into /var/mobile/.navit/

Test feedback

  • OSM: Routing is very slow (long distance is a nightmare for user :()
  • Can't see the cursor