Download GPSBabel Documentation

Transcript
Chapter 1. Getting or Building
GPSBabel
Downloading - the easy way.
GPSBabel is distributed "ready to run" on most common operating systems via the download page [http://
www.gpsbabel.org/download.html].
As GPSBabel runs on a wide variety of operating systems, be sure to visit the OS-Specific notes [http://
www.gpsbabel.org/osnotes.html] for additional information.
Building from source.
For operating systems where no binary is provided or if you want the latest development version, you will
have to build it from source. The code should be compilable on any system with ISO C89 compilers, though
we use a smattering of C99 like double slash comments. It's tested on Linux, Mac OS/X, and Windows
cross compilers. Less frequently, someone will build on MSVC, FreeBSD, OpenBSD, Solaris, UnixWare,
OpenServer, etc. It's also exercised on a variety of processors and compilers.
You can grab a release from the GPSBabel download page [http://www.gpsbabel.org/download.html], but
if you're going to be doing any development, you'll find that working from the GPSBabel SVN tree [http://
code.google.com/p/gpsbabel/source/checkout] is easier.
For most cases, an anonymous checkout of the trunk is really all you need. That can be done easily with
the single command:
svn checkout http://gpsbabel.googlecode.com/svn/trunk/gpsbabel
In most cases, the code is as simple to build as running:
./configure && make
Expat [http://expat.sourceforge.net] is strongly recommended for source builds as it is required for reading
all the XML formats such as GPX. Fedora users may need to 'yum install expat-devel'. Ubuntu users may
need to 'apt-get install expat libexpat-dev'.
libusb [http://libusb.sourceforge.net] is recommended for OS/X and Linux if you want to use a USB
Garmin. Fedora users may need to 'yum install libusb-devel'. Ubuntu users may need to 'apt-get install
libusb-dev'.
There are additional flags that can be passed to configure to customize your build of GPSBabel.
./configure --help
lists all the supported options, but of interest we have:
--disable-shapefile Excludes the shapefile support.
--disable-pdb Excludes the Palm database support and all formats that rely on it.
1