Hello, on the address: https://www.dropbox.com/s/hpnbttcegq8fy15/owfs_libusb.patch?dl=0 is an complete patch for owfs-3.1p0 to solve the problem with the LIBUSB. Please try this as there is more than one file to patch.
Best regards, Roland -----Ursprüngliche Nachricht----- From: Tomasz Torcz Sent: Sunday, June 14, 2015 3:45 PM To: owfs-developers@lists.sourceforge.net Subject: [Owfs-developers] LIBUSB_CFLAGS not passed to compiler? Hi, I digged through automake stuff but I did not find the way to fix. Basically, error boils down to make[1]: Entering directory '/tmp/owfs-3.1p0/module/owshell/src/c' gcc -DHAVE_CONFIG_H -I. -I../../../../src/include -I../include -I../../../owlib/src/include -fexceptions -Wall -W -Wundef -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wredundant-decls -D_FILE_OFFSET_BITS=64 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE=1 -D_ISOC99_SOURCE=1 -D_POSIX_C_SOURCE=200112L -g -O2 -m64 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE=1 -D_ISOC99_SOURCE=1 -D_POSIX_C_SOURCE=200112L -MT ow_dnssd.o -MD -MP -MF .deps/ow_dnssd.Tpo -c -o ow_dnssd.o ow_dnssd.c In file included from ../../../owlib/src/include/ow.h:90:0, from ow_dnssd.c:17: /usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^ 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 It fails, because libusb.h is located in /usr/include/libusb-1.0/libusb.h, but gcc invocation lacks "-I/usr/include/libusb-1.0". It is correctly determined by configure, but not put in gcc line: $ grep LIBUSB_CFLAGS config.log LIBUSB_CFLAGS='-I/usr/include/libusb-1.0 ' Which Makefile.am to patch and how? -- Tomasz Torcz ,,(...) today's high-end is tomorrow's embedded processor.'' xmpp: zdzich...@chrome.pl -- Mitchell Blank on LKML ------------------------------------------------------------------------------ _______________________________________________ Owfs-developers mailing list Owfs-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/owfs-developers ------------------------------------------------------------------------------ _______________________________________________ Owfs-developers mailing list Owfs-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/owfs-developers