<div dir="ltr">Compiling against <a href="http://www.networkupstools.org/source/2.7/nut-2.7.4.tar.gz">http://www.networkupstools.org/source/2.7/nut-2.7.4.tar.gz</a>. I also have libusb-0.1-4<b> </b>installed but no joy.<br><b></b></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Mar 23, 2020 at 2:45 AM Jim Klimov <<a href="mailto:jimklimov@cos.ru">jimklimov@cos.ru</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On March 23, 2020 12:50:11 AM UTC, Tyler Montney <<a href="mailto:montneytyler@gmail.com" target="_blank">montneytyler@gmail.com</a>> wrote:<br>
>Came across this in the process of troubleshooting:<br>
><a href="https://alioth-lists.debian.net/pipermail/nut-upsuser/2011-November/007249.html" rel="noreferrer" target="_blank">https://alioth-lists.debian.net/pipermail/nut-upsuser/2011-November/007249.html</a><br>
><br>
>My whole reason for compiling from source is to add SSL support (as it<br>
>doesn't seem available through the package manager). Apt list shows<br>
>these<br>
>installed:<br>
><br>
>libusb-1.0-0-dev/stable,now 2:1.0.22-2 armhf [installed]<br>
>libusb-1.0-0/stable,now 2:1.0.22-2 armhf [installed]<br>
>libusb-1.0-doc/stable,now 2:1.0.22-2 all [installed,automatic]<br>
><br>
>Config.log shows this:<br>
><br>
>configure:8538: checking for libusb version via pkg-config<br>
>configure:8545: checking via libusb-config<br>
>configure:8557: result: none found<br>
><br>
>Tried compiling without USB, fails but now complains it can't find<br>
>OpenSSL.<br>
>Apt list shows this installed:<br>
><br>
>openssl/testing,now 1.1.1d-0+deb10u2+rpt1 armhf [installed]<br>
><br>
>Compiling without USB or SSL compiles successfully. I assume NUT<br>
>requires a<br>
>specific version of these libraries, and if so, which versions are the<br>
>right ones? Platform is a newly installed distro of latest Raspbian on<br>
>a<br>
>Raspberry Pi 3. When I installed from the package manager, everything<br>
>worked great (just missing the SSL support). I've been referring to<br>
>these<br>
>docs:<br>
><br>
><a href="https://networkupstools.org/docs/user-manual.chunked/ar01s05.html" rel="noreferrer" target="_blank">https://networkupstools.org/docs/user-manual.chunked/ar01s05.html</a><br>
><a href="https://networkupstools.org/docs/user-manual.chunked/ar01s09.html" rel="noreferrer" target="_blank">https://networkupstools.org/docs/user-manual.chunked/ar01s09.html</a><br>
<br>
You mention compiling against libusb-1.0 but do not mention which NUT codebase you use. The master branch at the moment does not support it, only libusb-0.1 and there are some known connectivity stability bugs associated with that.<br>
<br>
Currently there is a long-pending competition of several implementations, neither of which were merged yet since respective change authors did not consider their work perfect enough:<br>
<br>
<a href="https://github.com/networkupstools/nut/issues/300" rel="noreferrer" target="_blank">https://github.com/networkupstools/nut/issues/300</a><br>
<br>
<a href="https://github.com/networkupstools/nut/tree/libusb-1.0" rel="noreferrer" target="_blank">https://github.com/networkupstools/nut/tree/libusb-1.0</a><br>
<br>
<a href="https://github.com/networkupstools/nut/tree/libusb-1.0%2B0.1" rel="noreferrer" target="_blank">https://github.com/networkupstools/nut/tree/libusb-1.0%2B0.1</a><br>
<br>
<a href="https://github.com/networkupstools/nut/tree/libusb-compat-1.0" rel="noreferrer" target="_blank">https://github.com/networkupstools/nut/tree/libusb-compat-1.0</a><br>
<br>
I believe you should pick whichever works for you (please report on those which do not work and how, if any), sync with current master should be possible for all of them.<br>
<br>
Hope this helps,<br>
Jim Klimov<br>
<br>
--<br>
Typos courtesy of K-9 Mail on my Android<br>
</blockquote></div>