MacOS development

From Navit's Wiki
(Redirected from MacOS)
Jump to: navigation, search

Here are some notes about running navit under Apple Mac OSX.

What you will need[edit]

You need Xcode Tools and MacPorts in order to install navit.

MacPorts developers suggest to install Xcode Tools from and not from the Mac OSX install disk.

Make sure you don't have fink installed on your system, it can confuse MacPorts package building and installation.

GTK Gui[edit]

You should only need gtk2 and glib2 via macPorts

SDL Gui[edit]

Untested yet.

Installation instruction[edit]

Download Xcode Tools from and install it with X11 SDK

Download and Install MacPorts from, or update your version

 sudo port -d selfupdate

Open up a terminal

make sure your PATH variables has /opt/local/bin and /opt/local/sbin in it:

 echo $PATH 

Install automake, wget, libtool, gpsd (if you want gps support), gtk2 and glib2 (for gkt GUI) with

 sudo port install automake wget gpsd gtk2 glib2 libtool

Download navit or checkout it from SVN

  svn co

You may also need a header file to handle endian issues (for PPC only)


If you want to install navit along the MacPorts packages, you need to use the /opt/local directory as prefix:

 ./ && ./configure --prefix=/opt/local --disable-binding-python



to build NavIt, and

 sudo make install

to install it.

Then, you may edit and adapt your navit.xml file. The XML maptype is not supported, however normal Navit binfile works perfectly.


If you want (spoken) directions, get espeak from, install as advised and use the following snippet in your navit.xml:

          <speech type="cmdline" data="speak -vde+f4 '%s'"/>

This will tell speak to use a female (f) german (de) voice.

Using xcode[edit]

Download one of the svn sources that don't contain

Open X-Code and create a new project. Cocoa will suffice

Add in a new target by clicking the triangle next to "Targets" and selected the location of the navit folder. Delete the previous target.

Delete the default files, and add in the navit files.

In a terminal, go into the navit folder.

./configure --disable-binding-python --disable-sample-map --disable-maptool

xcode can now build the navit

You can also use CMake.

cd navit && cmake -G Xcode .

Something went wrong?[edit]

Please let us know.