−Table of Contents
General
You can find the tar.gz files for the individual versions on github:
Debian
Compiling without building a package
- Install all needed dependencies
sudo apt-get install build-essential subversion git-core xulrunner-dev zlib1g-dev libusb-dev libtinyxml-dev libgcrypt-dev
- Download source code
git clone http://github.com/adiesner/GarminPlugin.git
- Install garmintools-dev package
sudo apt-get install garmintools-dev
If it is not available, download garmintools source code and compile manually
svn export http://garmintools.googlecode.com/svn/trunk/ garmintools cd garmintools ./configure CXXFLAGS="-fPIC -g -O2" CFLAGS="-g -O2 -fPIC" make cd ..
- Compile garminplugin
cd GarminPlugin/src ./configure make
- Install garminplugin
cp npGarminPlugin.so ~/.mozilla/plugins
Compiling and creating a deb file
- Install all needed dependencies
sudo apt-get install build-essential subversion git-core xulrunner-dev zlib1g-dev libusb-dev tinyxml-dev pbuilder
- Download source code
git clone http://github.com/adiesner/GarminPlugin.git
- Create pbuilder package
cd GarminPlugin cd build cd debian createBuildEnv.sh natty 0.3.0
- Create deb file using pbuilder (your pbuilder environment must be set up)
cd ../../pbuilder dpkg-source -b garminplugin-0.3.0 sudo DIST=natty ARCH=amd64 pbuilder build garminplugin_0.3.0-1~natty.dsc
Gentoo
- install the dependencies
emerge -p sci-geosciences/garmintools sci-geosciences/gpsbabel dev-libs/tinyxml dev-libs/libusb
- Make sure that tinyxml is compiled with USE=“stl” and garmintools/gpsbabel with USE=“usb”.
- An ebuild for garmintools can be found here: https://bugs.gentoo.org/show_bug.cgi?id=371266
- then, as root, do:
cd /tmp git clone git://github.com/adiesner/GarminPlugin.git cd GarminPlugin/src ./configure && make cp npGarminPlugin.so /usr/lib/nsbrowser/plugins/