twilly / cm108

CM108/119 GPIO CLI Tool
GNU General Public License v2.0
4 stars 5 forks source link

compile on rpi? #1

Open SpudGunMan opened 1 year ago

SpudGunMan commented 1 year ago

I just tried and failed to compile on a pi4/64 any tricks? project still healthy? I see flagging -ludev ...

cm108.c:(.text+0x6b4): undefined reference to `udev_new'
/usr/bin/ld: cm108.c:(.text+0x6e0): undefined reference to `udev_enumerate_new'
SpudGunMan commented 1 year ago

got it to compile by reordering cc cm108.o -o cm108 -ludev

DGxInfinitY commented 4 months ago

This trick worked well for me under x86 Ubuntu. Got it working great with JS8Call by using a shell script to convert the 1 and 0 variables to on and off as used with JS8Call software.