Difference between revisions of "IOS"

From Navit's Wiki
Jump to: navigation, search
(Iphone Draft)
 
m (Navit on Iphone moved to Navit on Iphone 3G: Only 3G device has GPS)
(No difference)

Revision as of 21:03, 17 June 2009

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

Navit can now be ported officially to Iphone 3.0 firmware.

Screenshots

Iphone screen1.jpg Iphone screen2.jpg

Libraries

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 http://www.telesphoreo.org/browser/trunk  
export PATH=$PATH:$WHEREIS_YOUR_TOOLCHAIN/toolchain/pre/bin
export PKG_BASE=~/WHEREIS_TELESPHOREO/trunk
export PKG_ARCH=iphoneos-arm
export PKG_CONFIG_LIBDIR=~/

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.

Navit

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

./package.sh 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 :)

Config

OSM map files are expected as below:

/var/mobile/Media/Maps/eu.bin
/var/mobile/Media/Maps/planet.bin

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