Opened 7 years ago
Last modified 7 years ago
#1284 new defect/bug
Problem compiling with gpsd
Reported by: | mariano muñoz | Owned by: | KaZeR |
---|---|---|---|
Priority: | major | Milestone: | version 1.0 |
Component: | core | Version: | git master |
Severity: | normal | Keywords: | |
Cc: |
Description
Hi When I try to compile navit with gpsd-3.13 I got the next crash: [ 0%] Building C object navit/vehicle/gpsd/CMakeFiles/vehicle_gpsd.dir/vehicle_gpsd.c.o
Building C object navit/vehicle/gpsd/CMakeFiles/vehicle_gpsd.dir/vehicle_gpsd.c.o /var/tmp/portage/app-misc/navit-svn-99999999/work/navit-svn-99999999/navit/vehicle/gpsd/vehicle_gpsd.c: In function 'vehicle_gpsd_callback': /var/tmp/portage/app-misc/navit-svn-99999999/work/navit-svn-99999999/navit/vehicle/gpsd/vehicle_gpsd.c:133:40: error: 'struct gps_data_t' has no member named 'ss'
if (data->ss[i] > 0)
Compilation works with gpsd-3.11 Thank you
Change History (2)
comment:1 Changed 7 years ago by sleske
comment:2 Changed 7 years ago by me.yahoo.com/a/_ij44v97roulszbeztrzcqzaaiyvlg--#9d14a
Hi again
I'm not an expert of gpsd
I've been searching the code and the atribute ss has been removed in gpsd>3.11.
The ss atribute has a signal-to-noise ratio (dB) as you can see in http://sourcecodebrowser.com/gpsd/2.95/gps_8h_source.html#l01014
I think that ratio is now in rtcm2_t struct in atribute snr
I replace the line if (data->ss[i]>0) with
if (data->rtcm2.conhealth.sat[i].snr!=-1)
It compiles, I hope this can help
Thank you
Yes, it looks like 'struct gps_data_t' changed in gpsd V3.12. We'll have to adapt the code. Ideally in a way that works with both old and new libgpsd...
This is documented in gps.h: