CMake

From Navit's Wiki
Revision as of 19:11, 25 November 2010 by Akashihi (talk | contribs) (Added small recipes for building with cmake)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Building navit with CMake on different platforms:

Known limitations

* Samplemap building is not implemented yet
* Not everything is copied to the build directory, so navit may fail to start after build

Building on *nix systems

Dependencies

* CMake 2.6 or newer 
* modern gcc (and g++ for Qt)
* FreeType 2.3.10 or newer 
* Glib (optional, but highly recommended)
* zlib (optional, but highly recommended)
* libpng (optional, but highly recommended)
* gtk2 for gtk graphics and gtk gui
* Qt for qt graphics. With qt 4.7 or newer qml gui is available
* SDL for sdl graphics
* OpenGL for opengl graphics
* libgpsd

Building

Get navit source code, create somewhere a directory for the build and then type

   cd /path/to/build/directory
   cmake /path/to/navit/source
   make

with cmake -i youll be able to configure various build aspects

Building on windows

Building with MinGW

You'll need MinGW with development headers and libs and CMake 2.6 or newer. FreeType is a required library, so get it from the http://www.gtk.org/download-windows.html It is recommended to download a pkc-config and gettext from the site, mentioned above. You may get full GTK2 download too, as you will be able to use a gtk graphics and gui. Qt graphics modules works fine too, but Qml gui have issues.

When build environment is ready, get the navit source code, create directory for build and issue following commands:

 cd drive:/path/to/build/directory
 cmake drive:/path/to/navit/source -G "MinGW Makefiles"
 mingw32-make