MacOS development

From Navit's Wiki
Revision as of 08:40, 16 January 2008 by KaZeR (talk | contribs) (Removed deprecated 0.0.1 tips)
Jump to: navigation, search

Here are some notes about running navit under MacOS. This is a draft, feel free to improve it.

What you will need

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.


You should only need gtk2 and glib2 via macPorts


Untested yet.

Installation instruction

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, gpsd (if you want gps support), gtk2 and glib2 (for gkt GUI) with

 sudo port install automake wget gpsd gtk2 glib2

Download navit or checkout it from CVS

Edit and add


to the CFLAGS variable (note that the variables occurs 2 times in the file)

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

 ./ && ./configure --prefix=/opt/local



path in navit.xml with


Create the pidof program:

 nano pidof

type this script:

 ps axc|awk "{if (\$5==\"$1\") print \$1}";

save and exit

 chmod 755 pidof
 sudo mv pidof /bin