I'm trying to get the Waveshare stepper motor HAT running on my Pi 4. One of the requirements for building Kevin's indi-wmh-focuser driver is the wiringpi library. It should be installable via a simple "sudo apt install wiringpi" but I get the dreaded "E: Unable to locate package" message when I do so. Tried installing it on my Pi 3 with an earlier version of SM OS and it all went fine, building and installing the driver too.
I tried building it from two different source packages but ran into link errors. Rather use the package manager anyway, if I can.
BTW I got this to build without errors -- Kevin started me on the road by suggesting a fix to the similar problem I was having with building his indi-wmh-focuser driver. In the Makefile for the library, I added (if memory serves) -pthread -lrt -lcrypt to the LIB (LIBS?) variable. Bingo. Basically I Googled whatever function call the linker was complaining about (shm_open was one) and from that deduced what library contained it. Added that library and off to the races.
That said, if anyone knows how to obtain the package for StellarMate OS, I'd still love to know.
I got the demo code from Waveshare compiled and running without errors, but the motor never moved. Grrr.
Last edit: 3 years 10 months ago by Rick Wayne. Reason: One of the library names was misspelled