Roger Price
2016-Jun-23 09:18 UTC
[Nut-upsdev] ./configure excludes USB drivers and documentation
Sorry for such a noob question, but I'm having a problem with 2.7.4 ./configure . I down loaded the 2.7.4 tarball, unzipped. read the INSTALL and typed ./configure . The output of ./configure shows "build serial drivers: yes" and build everything else is "no". Looking at config.log, I see configure:8104: checking for libusb version via pkg-config configure:8111: checking via libusb-config configure:8123: result: none found configure:8126: checking for libusb cflags configure:8143: result: configure:8146: checking for libusb ldflags configure:8163: result: -lusb configure:8168: checking for usb.h configure:8168: gcc -c conftest.c >&5 conftest.c:92:17: fatal error: usb.h: No such file or directory #include <usb.h> config.log also reports Configured with: ../configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 ... The 2.7.4 tarball includes ...nut-2.7.4/drivers/libusb.h in addition to installed file /usr/include/libusb-1.0/libusb.h but gcc doesn't see them. Is it the intention of the 2.7.4 tarball that ./configure, make and make install as described in INSTALL should produce a full rather than a crippled nut? There must be something simple and obvious that I'm missing here. Any hint or pointer would be much appreciated. Roger
Charles Lepple
2016-Jun-23 11:47 UTC
[Nut-upsdev] ./configure excludes USB drivers and documentation
On Jun 23, 2016, at 5:18 AM, Roger Price wrote:> > The 2.7.4 tarball includes ...nut-2.7.4/drivers/libusb.h > in addition to installed file /usr/include/libusb-1.0/libusb.hHi Roger, NUT still uses the libusb-0.1 API, which is typically provided by a separate libusb-compat package. libusb-1.0 switched from usb.h to libusb.h, and the internal libusb.h inside NUT is different (but does not seem to interfere with the public header). -- Charles Lepple clepple at gmail