To compile the code make sure you meet the following dependencies:

    * cmake - a make file generator  (>= Version 2.6)

For the bleeding edge of development you have to use the SVN repository. For
initial checkout:

    svn co https://qlandkartegt.svn.sourceforge.net/svnroot/qlandkartegt/GarminDev/trunk GarminDev

To build (out of source build, start one level above source root directory)1:

    mkdir build_GarminDev 

    cd  build_GarminDev 

    ccmake ../GarminDev 

CCmake can be controlled by keys. Watch out for key hints at the bottom.
Especially the"c" and"g" key. Next you do:

    make

The binary will be placed in ./bin. To catch up latest changes (in the source
root directory):

    svn up

To send a patch (in the source root directory):

    svn diff > patchname.diff

As user you might want to do a

    sudo make install

to copy all stuff into your system. 


Installation on Mac OS X
------------------------

On Mac OS X, you probably want to include the Garmin drivers in the bundle
where QLandkarteGT searches for them.  To this end, when running ccmake be sure
to set the variable QLANDKARTEGT_BUILD_DIR to the folder where you built
QLandkarteGT.  The default is "../build_QLandkarteGT", assuming that you use an
out-of-source build environment as suggested in the QLandkarteGT instructions.

Then, after running make, simply say

	make mac-deploy
	
which will copy all drivers to the bundle.

You should not use "make install" on Mac OS X.
