Opened 3 years ago

Last modified 2 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:


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 3 years ago by sleske

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:

Major Version 6:

The shape of the skyview structure has changed to make working with the
satellites-used bits less confusing.
(January 2015, release 3.12).
Last edited 3 years ago by sleske (previous) (diff)

comment:2 Changed 2 years ago by

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

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

Note: See TracTickets for help on using tickets.