crelay icon indicating copy to clipboard operation
crelay copied to clipboard

Can't find libftdi on fedora -- it's libftdi1 (and headers in /usr/include/libftdi1)

Open derekatkins opened this issue 7 years ago • 2 comments

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.

derekatkins avatar Aug 18 '18 23:08 derekatkins

FYI, just hit this again on F36

derekatkins avatar Jul 05 '22 16:07 derekatkins

--- 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)

derekatkins avatar Jul 05 '22 16:07 derekatkins