Menu

#27 Ubuntu 14.04 make error libusb

v1.0_(example)
open
nobody
None
1
2016-01-14
2016-01-12
Klona
No

Hi,
I am using Domotiga with OWFS for a while now, managing all my heating system with 3 zones.
before anything, I would like really to thanks all developers on OWFS, for their work, and the open source community spirit, that allow user not coders like me to benefit from their work.

Anyway, back to my story; My Hobby board master Hub failed after years, and I just get a new HB Master hub on USB which seems to be supported by OWFS since version "3.something" according a post I cannot find back.

I am starting a full new install based on Ubuntu 14.04 in a ESX VM.
./Configure is OK, excluding a small error at the end :
/bin/rm: cannot remove 'libtoolT': No such file or directory

But I get an libusb error when doing the make.

In file included from ow_dnssd.c:17:0:
../../../owlib/src/include/ow.h:302:20: fatal error: libusb.h: Aucun fichier ou dossier de ce type
include <libusb.h>
^
compilation terminated.

I find several posts with various patches for makefile.am and.in but I did not succeed at all.
Even the patch https://www.dropbox.com/s/hpnbttcegq8fy15/owfs_libusb.patch?dl=0 gaves me strange results but I am really not familiar with diff command.

Can someone point me to the right patch or procedure or testing ? or...

Or perhaps I should better get another ubuntu version ? or Debian ? or..

Thanks.

/klona

Discussion

  • Jan Kandziora

    Jan Kandziora - 2016-01-13

    You need to install the libusb-1.0-0-dev package. The libusb-dev package is for libusb0, which owfs don't use any more since at least two years. By the way, to get rid of all the libusb0 cruft, please use the latest version from the sf.net git archive.

    $ git clone git://git.code.sf.net/p/owfs/code owfs-code

    Kind regards,
    Jan

     
  • Klona

    Klona - 2016-01-14

    Hi Thanks a lot for your reply.
    I just noticed there is a new 3.1p1 version.
    Just try it and it compile directly. Already, Thanks again for this new version.

    EDIT : working perfectly with line : sudo /opt/owfs/bin/owserver --masterhub=/dev/ttyACM0 --debug

    Thanks,

    /Klona

     

    Last edit: Klona 2016-01-14
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.