Not quite; <usb.h> is from the legacy 0.1 API; with libusb-1.0 one should include <libusb.h>
In fact I have $ ls -l /usr/include/libusb-1.0/ total 72 -rw-r--r-- 1 root root 70156 Jun 19 2014 libusb.h and $ grep libusb module/owlib/src/c/Makefile LIBUSB_CFLAGS = -I/usr/include/libusb-1.0 so the CFLAGS issue has already been fixed. In fact <libusb.h> is already included in <ow.h>, so I think that including <usb.h> in “ow_usb_cycle.h" is superfluous. $ git grep -n '#include <[a-z]*usb\.h>' module/owlib/src/include/ow.h:305:#include <libusb.h> module/owlib/src/include/ow_usb_cycle.h:58:#include <usb.h> BTW the whole hierarchy of include files is very hard to follow. A very welcome code refactoring effort could be to simplify the include tree. Stefano > On 25 Sep 2015, at 23:36, Jan Kandziora <j...@gmx.de> wrote: > > Am 25.09.2015 um 22:45 schrieb Stefano Miccoli: >> I’m unable to compile on my raspberry pi with Arch Linux ARM: >> >> [...] >> >> After deleting those lines compilation is fine. Unfortunately I cannot test >> USB >> support since I do not have an USB adapter at hand. >> > Stefano, > > actually that is because the supplied Makefile is missing a > > -I/usr/include/libusb-1.0/ > > when compiling for some unknown reason. You can add that include > directory to your ./configure line: > > CFLAGS="-I/usr/include/libusb-1.0/" ./configure [more flags] > > If you do this USB works, too. > > Kind regards > > Jan > > ------------------------------------------------------------------------------ > _______________________________________________ > 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