Closed derekatkins closed 1 year ago
FYI, just hit this again on F36
--- a/src/Makefile
+++ b/src/Makefile
@@ -44,7 +44,8 @@ OPTS += -DDRV_CONRAD
endif
ifeq ($(DRV_SAINSMART), y)
SRC += relay_drv_sainsmart.c
-LIBS += -lftdi
+LIBS += -lftdi1
+INCLUDE += -I/usr/include/libftdi1
OPTS += -DDRV_SAINSMART
endif
ifeq ($(DRV_SAINSMART16), y)
On Fedora, libftdi is actually libftdi1, and the headers are in a subdir of /usr/include. I had to change the Makefile locally to handle that, and also add -I/usr/include/libftdi1 to properly find the headers. I'm not sure the right way to change the makefile to deal properly on all platforms.