philrandal / gpsctl

GPS control and configuration for U-Blox GPS on Raspberry Pi 3B...
MIT License
44 stars 4 forks source link

Can't compile on debian bullseye #14

Closed mkmt closed 3 years ago

mkmt commented 3 years ago

Problem: /usr/bin/ld: /tmp/ccZyN4SF.o: in function actionTestPPS': gpsctl.c:(.text+0x3000): undefined reference towiringPiSetup' /usr/bin/ld: gpsctl.c:(.text+0x300c): undefined reference to pinMode' /usr/bin/ld: gpsctl.c:(.text+0x3058): undefined reference todigitalRead' collect2: error: ld returned 1 exit status

WiringPi installed. Debian version 11, raspbian.

philrandal commented 3 years ago

Unfortunately, I am not able to look at this at the moment.

I think it is caused by the the use of a newer gcc in Bullseye.

It's probably time to migrate to another C GPIO library.

philrandal commented 3 years ago

Removed wiringPi-dependent code

https://github.com/philrandal/gpsctl/releases/tag/v1.14