I’m unable to compile on my raspberry pi with Arch Linux ARM:

In file included from ../include/ow_connection.h:78:0,
                 from ../include/ow_standard.h:18,
                 from ../include/ow_generic_read.h:38,
                 from ../include/ow_device.h:75,
                 from ../include/ow.h:340,
                 from ow_dnssd.c:16:
../include/ow_usb_cycle.h:58:17: fatal error: usb.h: No such file or directory

I would guess that in module/owlib/src/include/ow_usb_cycle.h the two lines 

#include <sys/types.h> // Mac needs this before <usb.h> according to Peter Peter Radcliffe's work
#include <usb.h>

are spurious, since ow.h already includes <libusb.h> and <sys/types.h>

After deleting those lines compilation is fine. Unfortunately I cannot test USB support since I do not have an USB adapter at hand.

Stefano

Simple patch included:

Attachment: 0001-quick-fix-for-usb-header.patch
Description: Binary data






On 25 Sep 2015, at 00:37, Jan Kandziora <j...@gmx.de> wrote:

Am 21.09.2015 um 23:29 schrieb Jan Kandziora:
Am 21.09.2015 um 07:28 schrieb Sven Giermann:
Well, I would like to...
But I've no experience in debugging on linux, so I had no luck to get it
running. My "solution" now is to switch all I/O ports to pure 1-Wire, but I
would still be interested in getting this to work!

Sven, Paul, and all who are interested:

I think I have this finally fixed. Please test the latest version from
the git archive. I've tested it, it works and it seems my changes have
no bad side effects. The mutex crash has vanished, too.


Paul, if you think it is fine I would suggest to release v3.1p1.


And, for completeness, I have attached patch 3/3.

Kind regards

Jan

<owlib_external_owserver_fix.diff>------------------------------------------------------------------------------
_______________________________________________
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

Reply via email to