gpsd-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Illegal instruction....


From: David J Taylor
Subject: Re: Illegal instruction....
Date: Tue, 26 May 2020 09:22:22 +0100

From: Paul Theodoropoulos via
[]
A quick sanity check - when you say that you 'made sure to delete the
distro versions' - did you run

apt purge gpsd

?

That's the only way to ensure that anything apt installed truly gets removed.

Paul Theodoropoulos
www.anastrophe.com
=================================================

Paul,

I did at one point, yes. I'm still unsure about the include file(s). Trying a very simple program:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#include <gps.h>
#include <stdio.h>
#include <string.h>

int main (int argc, char **argv) {
 struct gps_data_t gpsdata;

#if GPSD_API_MAJOR_VERSION >= 7
       printf ("GPSD API >= 7");
#else
       printf ("GPSD API < 7");
#endif
 return 0;
}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Also produces the "illegal instruction". I seem to have three include files so how can I force the use of the more recent one? I thought compiling in the /home/pi/gpsd directory might do that, but I recall there being something about different include file locations - system and local? I wonder how the build of gpsd got it right! Changing <gps.h> to "gps.h" while compiling in the gpsd directory still produced the illegal instruction.

Cheers,
David
--
SatSignal Software - Quality software for you
Web: https://www.satsignal.eu
Email: address@hidden
Twitter: @gm8arv


reply via email to

[Prev in Thread] Current Thread [Next in Thread]