Navit: Difference between revisions
imported>rpr New page: == Navit on N900 == Here is some N900 specific Navit information. === Compile === Here are instructions how to compile Navit on N900. ==== Create a SDK Image on the Phone ==== Sorry i ca... |
|||
| (5 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
Here is some [[Nokia N900|N900]]-specific Navit information. | |||
Here is some N900 specific Navit information. | |||
=== Compile | == Install Pre-Compiled Packages == | ||
Navit can be installed as described [http://talk.maemo.org/showpost.php?p=1025907&postcount=511 this post] | |||
== Compile == | |||
Here are instructions how to compile Navit on N900. | Here are instructions how to compile Navit on N900. | ||
=== Create a SDK Image on the Phone === | |||
Sorry | Sorry I can't remember exactly reproduceable steps. | ||
Most information about this come from [http://talk.maemo.org/showthread.php?t=32772 this thread]. | Most information about this come from [http://talk.maemo.org/showthread.php?t=32772 this thread]. | ||
# Install "easy chroot". | |||
# Download <code>maemo-sdk-v1_2.img.ext2</code> from qole. | |||
# Increase temp size "<code>mount -o remount,size=10M /tmp</code>" | |||
# Chroot into the image. | |||
# Install language package to fix the perl errors. | |||
# Install Nokia binaries. | |||
# Update distribution. | |||
# Download, compile and install [http://quox.org/install/gnu/ GNU autotools]. | |||
# Install "<code>librsvg2-bin</code>" to be able to convert SVG files into PNG files. | |||
# Install SVN client to be able to get the libgarmin source. | |||
=== Freetype2 === | |||
Maemo has a version with a bug. So use a newer one for Navit. | Maemo has a version with a bug. So use a newer one for Navit. | ||
Download source [http://mirrors.zerg.biz/nongnu/freetype/freetype-2.3.11.tar.gz] and unpack it. | Download source [http://mirrors.zerg.biz/nongnu/freetype/freetype-2.3.11.tar.gz] and unpack it. | ||
<pre> | |||
./configure --prefix=/opt/navit/lib/3rdparty --libdir=/opt/navit/lib/3rdparty | ./configure --prefix=/opt/navit/lib/3rdparty --libdir=/opt/navit/lib/3rdparty | ||
make | make | ||
| Line 30: | Line 32: | ||
</pre> | </pre> | ||
Note: The bug is fixed in CSSU. | |||
=== Libgarmin === | |||
To support garmin maps you need this driver. | To support garmin maps you need this driver. | ||
| Line 36: | Line 40: | ||
svn co http://libgarmin.svn.sourceforge.net/svnroot/libgarmin/libgarmin/dev libgarmin | svn co http://libgarmin.svn.sourceforge.net/svnroot/libgarmin/libgarmin/dev libgarmin | ||
<pre> | |||
./autosh.sh | ./autosh.sh | ||
./configure --prefix=/opt/navit/lib/3rdparty --libdir=/opt/navit/lib/3rdparty | ./configure --prefix=/opt/navit/lib/3rdparty --libdir=/opt/navit/lib/3rdparty | ||
| Line 48: | Line 52: | ||
</pre> | </pre> | ||
=== Navit === | |||
Now you can compile Navit | Now, you can compile Navit yourself: | ||
Download source [http://navit.svn.sourceforge.net/viewvc/navit/] and unpack it. | Download source [http://navit.svn.sourceforge.net/viewvc/navit/] and unpack it. | ||
<pre> | |||
export PKG_CONFIG_PATH=/opt/navit/lib/3rdparty/pkgconfig/ | export PKG_CONFIG_PATH=/opt/navit/lib/3rdparty/pkgconfig/ | ||
| Line 64: | Line 68: | ||
</pre> | </pre> | ||
=== Configure === | |||
You have to configure the XMLs in "/home/user/.navit". | You have to configure the XMLs in "<code>/home/user/.navit</code>". | ||
Now you can start Navit in SDK image: | Now you can start Navit in SDK image: | ||
<pre> | |||
export LD_LIBRARY_PATH=/opt/navit/lib/3rdparty:$LD_LIBRARY_PATH | export LD_LIBRARY_PATH=/opt/navit/lib/3rdparty:$LD_LIBRARY_PATH | ||
/opt/navit/bin/navit | /opt/navit/bin/navit | ||
</pre> | </pre> | ||
=== Package === | |||
Now create a deb package to install it on N900 outside of the SDK image. | Now create a deb package to install it on N900 outside of the SDK image. | ||
Script: | Script: | ||
<pre> | |||
echo "create root dir" | echo "create root dir" | ||
cd "/home/user/reini/package/navit" | cd "/home/user/reini/package/navit" | ||
| Line 111: | Line 115: | ||
</pre> | </pre> | ||
Now you have a "navit_0.2.0~svn3708-1_armel.deb" ready for installation on N900. | Now you have a "[http://members.aon.at/rpr-webs/n900/navit_0.2.0~svn3708-1_armel.deb navit_0.2.0~svn3708-1_armel.deb]" ready for installation on N900. | ||
=== Install === | |||
<pre> | |||
dpkg -i navit_0.2.0~svn3708-1_armel.deb | dpkg -i navit_0.2.0~svn3708-1_armel.deb | ||
</pre> | </pre> | ||
== Links == | |||
* [http://www.navit-project.org/ Navit Project Homepage] | * [http://www.navit-project.org/ Navit Project Homepage] | ||
* [http://talk.maemo.org/showthread.php?t=38800 Navit on N900 Discussion] | * [http://talk.maemo.org/showthread.php?t=38800 Navit on N900 Discussion] | ||
* [http://wiki.navit-project.org/index.php/Navit_on_Scratchbox_for_N8x0 Compile Navit] | * [http://wiki.navit-project.org/index.php/Navit_on_Scratchbox_for_N8x0 Compile Navit] | ||
* [ | * [[Navigation Tools]] | ||
[[Category:N900]] | |||
[[Category:Software]] | |||
[[Category:GPS]] | |||
Latest revision as of 20:12, 29 September 2012
Here is some N900-specific Navit information.
Install Pre-Compiled Packages
Navit can be installed as described this post
Compile
Here are instructions how to compile Navit on N900.
Create a SDK Image on the Phone
Sorry I can't remember exactly reproduceable steps. Most information about this come from this thread.
- Install "easy chroot".
- Download
maemo-sdk-v1_2.img.ext2from qole. - Increase temp size "
mount -o remount,size=10M /tmp" - Chroot into the image.
- Install language package to fix the perl errors.
- Install Nokia binaries.
- Update distribution.
- Download, compile and install GNU autotools.
- Install "
librsvg2-bin" to be able to convert SVG files into PNG files. - Install SVN client to be able to get the libgarmin source.
Freetype2
Maemo has a version with a bug. So use a newer one for Navit.
Download source [1] and unpack it.
./configure --prefix=/opt/navit/lib/3rdparty --libdir=/opt/navit/lib/3rdparty make make install
Note: The bug is fixed in CSSU.
Libgarmin
To support garmin maps you need this driver.
Download source: svn co http://libgarmin.svn.sourceforge.net/svnroot/libgarmin/libgarmin/dev libgarmin
./autosh.sh ./configure --prefix=/opt/navit/lib/3rdparty --libdir=/opt/navit/lib/3rdparty make make install # create so file: cd src gcc -shared -o libgarmin.so *.o cp libgarmin.so /opt/navit/lib/3rdparty
Navit
Now, you can compile Navit yourself:
Download source [2] and unpack it.
export PKG_CONFIG_PATH=/opt/navit/lib/3rdparty/pkgconfig/ ./autogen.sh ./configure --prefix=/opt/navit --disable-binding-python --enable-avoid-float --enable-avoid-unaligned --enable-svg2png-scaling="32,48,64" --enable-svg2png-scaling-flag="32,48,64" --enable-svg2png-scaling-nav="8,16,32,48,64" --disable-samplemap --disable-graphics-sdl --enable-vehicle-maemo --with-svg2png-use-rsvg-convert --disable-svg make make install
Configure
You have to configure the XMLs in "/home/user/.navit".
Now you can start Navit in SDK image:
export LD_LIBRARY_PATH=/opt/navit/lib/3rdparty:$LD_LIBRARY_PATH /opt/navit/bin/navit
Package
Now create a deb package to install it on N900 outside of the SDK image.
Script:
echo "create root dir"
cd "/home/user/reini/package/navit"
version="0.2.0~svn3708-1_armel"
navit="navit_${version}"
echo "init"
rm -R -f "$navit"
# my template dir has the following files
# /DEBIAN/prerm
# ./DEBIAN/postinst
# ./DEBIAN/control
# ./opt/navit/bin/navit.sh
cp -R ./template "$navit"
echo "copy navit configuration"
mkdir -p "$navit/home/user/.navit"
cp /home/user/.navit/*.xml "$navit/home/user/.navit"
mkdir -p "$navit/home/user/.navit/sample"
cp /home/user/.navit/sample/*.sh "$navit/home/user/.navit/sample"
cp /home/user/.navit/sample/*.bin "$navit/home/user/.navit/sample"
echo "copy navit binaries"
cp -R /opt/navit/ "$navit/opt"
(
# keep only so files from additional libs
cd "$navit/opt/navit/lib/3rdparty"
rm -R bin include pkgconfig share libfreetype.a libgarmin.a
)
echo "create deb"
dpkg-deb -b "$navit"
Now you have a "navit_0.2.0~svn3708-1_armel.deb" ready for installation on N900.
Install
dpkg -i navit_0.2.0~svn3708-1_armel.deb