Thursday, May 22, 2008

"gpsbabel 1.3.5" for Ubuntu Hardy

Ubuntu Hardy Heron is out but sadly it comes with a rather old version of gpsbabel: 1.3.3. To read data from my Wintec WBT-201 I need at least gpsbabel version 1.3.4. With 1.3.5 already released I wanted the latest version - of course!

I tried to follow my own instructions given here to build a deb package for Hardy, but it didn't work... It wouldn't compile cleanly and errored out with:
lmx.c:34: Fehler: »link« als andere Symbolart redeklariert

(Sorry, got it in German only)

I googled a lot, but nothing... Compiling the sources worked well, but not if I tried to build the deb package via "uupdate". As I'm no expert in building packages this gave me a hard time, but finally I got it: you have to edit debian/rules a little and it works! But now, step by step.

So, get the gpsbabel 1.3.5 sources from here and follow the steps given in this post (of course change directory names accordingly) but add one step right before "dpkg-buildpackage -rfakeroot":
gedit debian/rules

Go to line 26 which should look like this:
$(SHELL) ./configure --with-zlib=system --with-doc=debian/doctmp \

and change it like this, by deleting "--with-zlib=system"
$(SHELL) ./configure --with-doc=debian/doctmp \

Then start "dpkg-buildpackage -rfakeroot" and follow the rest of the instructions given. This should leave you with a working .deb package for gpsbabel 1.3.5!

EDIT: If you have a very basic installation of Ubuntu, you might need to add some other packages to make gpsbabel compile:
sudo apt-get install texlive-base-bin texlive-base libusb-dev expat libxml2-utils xsltproc libexpat1-dev zlib1g-dev docbook-xml docbook-xsl autoconf automake

If you don't like to build it yourself you can download the package from here:

For Ubuntu Hardy amd64:
gpsbabel_1.3.5-1_amd64.deb (md5sum: 7dc2eec048185a44932fcf4c4130301b)
gpsbabel_1.3.5-1_amd64.deb.sig (signature)

For Ubuntu Hardy i386:
gpsbabel_1.3.5-1_i386.deb (md5sum: 1e4c053bdb46d508b7ceb211c7baaca3)
gpsbabel_1.3.5-1_i386.deb.sig (signature)

No comments:

Post a Comment