ondrej1024 / crelay

Controlling different relay cards for home automation with a Linux software
GNU General Public License v2.0
81 stars 31 forks source link

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

Closed derekatkins closed 1 year ago

derekatkins commented 6 years ago

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 commented 2 years ago

FYI, just hit this again on F36

derekatkins commented 2 years ago
--- 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)