Navit

(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...)
(Freetype2)
 
(5 intermediate revisions not shown)
Line 1: Line 1:
-
== Navit on N900 ==
+
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 ====
+
=== Create a SDK Image on the Phone ===
-
Sorry i can't remember exactly reproduceable steps.
+
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".
+
# Install "easy chroot".
-
* Download maemo-sdk-v1_2.img.ext2 from qole.
+
# Download <code>maemo-sdk-v1_2.img.ext2</code> from qole.
-
* Increase temp size "mount -o remount,size=10M /tmp"
+
# Increase temp size "<code>mount -o remount,size=10M /tmp</code>"
-
* Chroot into the image.
+
# Chroot into the image.
-
* Install language package to fix the perl errors.
+
# Install language package to fix the perl errors.
-
* Install Nokia binaries.
+
# Install Nokia binaries.
-
* Update distribution.
+
# Update distribution.
-
* Download, compile and install [http://quox.org/install/gnu/ GNU autotools].
+
# Download, compile and install [http://quox.org/install/gnu/ GNU autotools].
-
* Install "librsvg2-bin" to be able to convert svg files into png files.
+
# 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.
+
# Install SVN client to be able to get the libgarmin source.
-
==== Freetype2 ====
+
=== 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.
-
<br/><pre>
+
<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>
-
==== Libgarmin ====
+
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
-
<br/><pre>
+
<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 ====
+
=== 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.
-
<br/><pre>
+
<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 ====
+
=== 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:
-
<br/><pre>
+
<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 ====
+
=== 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:
-
<br/><pre>
+
<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 ====
+
=== Install ===
-
<br/><pre>
+
<pre>
dpkg -i navit_0.2.0~svn3708-1_armel.deb
dpkg -i navit_0.2.0~svn3708-1_armel.deb
</pre>
</pre>
-
=== Links ===
+
== 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]
-
* [http://wiki.maemo.org/Navigation_Tools Navigation Tools]
+
* [[Navigation Tools]]
 +
 
 +
[[Category:N900]]
 +
[[Category:Software]]
 +
[[Category:GPS]]

Latest revision as of 20:12, 29 September 2012

Here is some N900-specific Navit information.

Contents

[edit] Install Pre-Compiled Packages

Navit can be installed as described this post

[edit] Compile

Here are instructions how to compile Navit on N900.

[edit] Create a SDK Image on the Phone

Sorry I can't remember exactly reproduceable steps. Most information about this come from this thread.

  1. Install "easy chroot".
  2. Download maemo-sdk-v1_2.img.ext2 from qole.
  3. Increase temp size "mount -o remount,size=10M /tmp"
  4. Chroot into the image.
  5. Install language package to fix the perl errors.
  6. Install Nokia binaries.
  7. Update distribution.
  8. Download, compile and install GNU autotools.
  9. Install "librsvg2-bin" to be able to convert SVG files into PNG files.
  10. Install SVN client to be able to get the libgarmin source.

[edit] 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.

[edit] 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

[edit] 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

[edit] 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

[edit] 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.

[edit] Install

dpkg -i navit_0.2.0~svn3708-1_armel.deb

[edit] Links

Retrieved from "http://wiki.maemo.org/Navit"