gpsd-users
[Top][All Lists]
Advanced

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

Re: Updates from 3.20 to 3.23


From: Nick Taylor
Subject: Re: Updates from 3.20 to 3.23
Date: Fri, 24 Sep 2021 09:27:45 +0100

Hi

Maybe try ldd gpsGetSatellites?

Nick


On 24 Sep 2021 at 09:20, David Taylor <gm8arv@yahoo.co.uk> wrote:

On 23/09/2021 16:02, Gary E. Miller wrote:

> Yo David!
>
> I looked at your program again.
>
> You do not need these four lines:
>
> /* from <gps_json.h> */
> #define GPS_JSON_RESPONSE_MAX 4096
>
> char gpsdMessage[GPS_JSON_RESPONSE_MAX];
> size_t gpsdMessageLen = 0;
>
> And you never use gpsdMessage, so just lose it.
>
> Change this:
>
> if (gps_read (&gpsdata, gpsdMessage, gpsdMessageLen) == -1) {
>
> To this:
>
> if (gps_read(&gpsdata, NULL, 0) == -1) {
>
>
> RGDS
> GARY

Thanks, Gary. I think the gpsdMessage and gpsdMessageLen were suggested when I
last asked about this program some time back when the API had changed to
version 7. This time I do understand the change - I don't need the message so
point to null, and say the length is zero. Linux/C is not my "first language".

When testing, I still get the error:

pi@RasPi-23:~ $ ./gpsGetSatellites -g .1.3.6.1.2.1.25.1.33
./gpsGetSatellites: error while loading shared libraries: libgps.so.29: cannot
open shared object file: No such file or directory

in spite of:

pi@RasPi-23:~ $ ls -l /usr/local/lib/libgps.*
lrwxrwxrwx 1 root root 16 Sep 23 10:46 /usr/local/lib/libgps.so ->
libgps.so.29.0.0
lrwxrwxrwx 1 root root 16 Sep 23 10:46 /usr/local/lib/libgps.so.29 ->
libgps.so.29.0.0
-rwxr-xr-x 1 root root 110336 Sep 23 10:46 /usr/local/lib/libgps.so.29.0.0

OS is the 64-bit:

Linux RasPi-23 5.10.60-v8+ #1449 SMP PREEMPT Wed Aug 25 15:01:33 BST 2021
aarch64 GNU/Linux

Cheers,
David
--
SatSignal Software - Quality software for you
Web: https://www.satsignal.eu
Email: david-taylor@blueyonder.co.uk
Twitter: @gm8arv



reply via email to

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