[Gpsd-users] Webgps update

Jason Hecker jhecker at wireless.org.au
Sun Nov 11 00:12:50 CET 2007


> Looks neat. Do you have any build instructions? Do I copy it into the gpsd
> tree and run make??

I modified Makefile.am as follows by making the following changes and the 
running configure:

------------
bin_PROGRAMS = $(DBUSPROGS) $(MOTIF_PROGS) $(RTCM104PROGS) sirfmon gpspipe 
gpsflash cgps webgps cgpxlogger

# Build webgps
webgps_SOURCES = webgps.c
webgps_LDADD = $(LIBM) $(LIBC) $(LIBNSL) $(LIBSOCKET) -lncurses libgps.la -lm 
$(LIBPTHREAD)
------------

Copy the webgps binary out of the .libs dir.

I also just tested the following command line:

gcc -Wall -I./gpsd-2.33 -lm -o webgps ./gpsd-2.33/.libs/libgps.so webgps.c

This assumes you have a built gpsd tree.

I am using 2.33 as that's what Ubuntu uses.  For 2.34 and above I have 
commented an include name change in the source.

I have also added a 4th command line parameter to allow defining the read 
cycle period.  10s is good as opposed to the old hardwired 1s.

Time to go.  It's hard to type when you're trying to deal with a fidgety 
infant!



More information about the Gpsd-users mailing list