User talk:Stressedpiper

From Navit's Wiki
Jump to: navigation, search

Some notes on installation[edit]

I use a mingw/msys environment to build/compile Navit, and CodeBlocks to edit. Personally I found that getting the mingw/msys environemnt under Windows to work took a bit of effort. However, once it is set up it works fine. Following are my installation notes.

Install MinGW from (select Automated MinGW installer)

Install MSYS etc as per the instructions at

Install GTK from (select gtk+-win32-devel)

Install CodeBlocks (NB, the version without mingw bundled in) - (I use the latest Nightly Build avaialible from the CodeBlocks wiki rather than the release as the overnight build has all the features.)

Run the msys shell, cd /usr, mkdir local, cd /usr/local, mkdir share
Fix /c/GTK/bin/autopoint or /usr/local/bin/autopoint (line 117) to handle DOS paths, and fix the install path (line 29) to be C:/GTK or /usr/local
	29: prefix="/c/GTK"

	117: replace "curr_installdir=`echo "$curr_executable" | sed -e 's,/[^/]*$,,'`" with:
	  case "$curr_executable" in
	    ?:\\*) curr_installdir=`echo "$curr_executable" | sed -e 's,\\\\[^\\\\]*$,,'` ;;
	    *) curr_installdir=`echo "$curr_executable" | sed -e 's,/[^/]*$,,'` ;;

Remove "pixman-1" from inside /c/GTK/lib/pkgconfig/cairo.pc

Download SVN "trunk" source tree to C:\navit

Copy /mingw/share/aclocal/*.m4 files to /usr/share/aclocal. NB, AM_GNU_GETTEXT_VERSION etc defined in these files

cd /c/navit/trunk/navit


If you get the error 'Can't locate object "path" via package "Autom4te::Request"' then delete /c/navit/trunk/navit/autom4te.cache and run again:
        As per "That can happen if you have a stale cache (ie. generated by an older version)" ...
	consequently: rm -fR ./autom4te.cache and then autoconf -f works fine :-)

Repeat multiple times, may need to do the following if there are errors.
	Instead of running ./ can do:
	autoreconf --verbose
	autopoint --force
	aclocal --verbose 
	automake --add-missing
	libtoolize --force
	autoreconf --verbose

Add X11/XF86keysym.h to ./navit/support/win32/sys (or C:\MinGW\include)

Add "#define SIGWINCH 28" definition to /c/mingw/include/signal.h

Add "typedef unsigned int speed_t" etc to /c/mingw/include/sys/types.h

To enable serial GPS under Windows, refer to bug 332 on trac (
	Copy serial_io.h and serial_io.c to navit/support/win32, and add serial_io.c to
	Edit function vehicle_file_io in vehicle_file.c to inluce WIN32 support


"windres" may need to be added to ./navit/Makefile in WINDRES line



Navit should then compile.