[John Goerzen]
> Unfortunately, gpsbabel only supports USB on Windows.

Are you sure?  There seem to be code there to handle libusb.  By using
this patch and adding libusb-dev as a build-dependency, USB support
seem to be compiled into the linux version as well.  I'm not sure if
it is working or not.  I'm still testing that part. :)

My garmin etrax legend c do not seem to provide any tty-like
interface. :(

-- gpsbabel-1.2.4.orig/Makefile
+++ gpsbabel-1.2.4/Makefile
@@ -8,7 +8,8 @@
 # USB may required non-standard libraries (like libusb) be installed
 # and may not be available on all OSes.  Uncomment this to remove the key
 # parts of USB from the build.
-INHIBIT_USB=-DNO_USB
+#INHIBIT_USB=-DNO_USB
+LIBUSB=-lusb

 #
 # Enable either or both of these as you wish.
@@ -54,7 +56,7 @@
 all: gpsbabel

 gpsbabel: $(OBJS)
-       $(CC) $(CFLAGS) $(OBJS) -o gpsbabel $(LIBEXPAT) -lm
+       $(CC) $(CFLAGS) $(OBJS) -o gpsbabel $(LIBEXPAT) $(LIBUSB) -lm

 main.o:
        $(CC) -c $(CFLAGS) -DVERSION=\"$(VERSIOND)\" $<


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to