Hi,

trying to compile owfs 3.1p0 for the raspberry, I'm getting this error:

In file included from ow_dnssd.c:17:0:
../../../owlib/src/include/ow.h:302:20: fatal error: libusb.h: No such 
file or directory
compilation terminated.

Googling, I have found that previously there was a similar thread here: 
http://comments.gmane.org/gmane.comp.file-systems.owfs.devel/12056

I applied the patch suggested in that thread:

diff -urN owfs-3.1p0.orig/module/owshell/src/c/Makefile.am 
owfs-3.1p0/module/owshell/src/c/Makefile.am
--- owfs-3.1p0.orig/module/owshell/src/c/Makefile.am    2015-01-11 
02:31:32.000000000 +0100
+++ owfs-3.1p0/module/owshell/src/c/Makefile.am    2015-03-16 
21:20:41.177284197 +0100
<at> <at> -41,7 +41,9 <at> <at>
      -Wcast-align \
      -Wstrict-prototypes \
      -Wredundant-decls \
-    ${EXTRACFLAGS}
+    ${EXTRACFLAGS} \
+    ${LIBUSB_CFLAGS} \
+    ${PTHREAD_CFLAGS}

-LDADD = ${LD_EXTRALIBS} ${OSLIBS}
+LDADD = ${LIBUSB_LIBS} ${PTHREAD_LIBS} ${LD_EXTRALIBS} ${OSLIBS}

diff -urN owfs-3.1p0.orig/module/owshell/src/c/Makefile.in 
owfs-3.1p0/module/owshell/src/c/Makefile.in
--- owfs-3.1p0.orig/module/owshell/src/c/Makefile.in    2015-03-15 
02:38:32.000000000 +0100
+++ owfs-3.1p0/module/owshell/src/c/Makefile.in    2015-03-16 
21:19:50.726241228 +0100
<at> <at> -498,9 +498,11 <at> <at>
      -Wcast-align \
      -Wstrict-prototypes \
      -Wredundant-decls \
-    ${EXTRACFLAGS}
+    ${EXTRACFLAGS} \
+    ${LIBUSB_CFLAGS} \
+    ${PTHREAD_CFLAGS}

-LDADD = ${LD_EXTRALIBS} ${OSLIBS}
+LDADD = ${LIBUSB_LIBS} ${PTHREAD_LIBS} ${LD_EXTRALIBS} ${OSLIBS}
all: all-am

.SUFFIXES:

Then I ran configure again, and then make. But I'm still getting the 
error...?

Please help!

Thanks, Chris


------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to