joyent/smartos-live — Issue #51: No symlink for libusb.so to libusb.so.1 for -lusb
Author: enmand
Created: 2012-01-26 16:27:52+00:00
State: open

In an attempt to compile apcusbd, we ran up against an issue linking libusb.

There is a libusb.so.1 in /usr/lib, but no libusb.so, which the configure script and linker are searching for with the -lusb flag.

Adding a symlink from libusb.so to libusb.so.1 resolves the issue:
``ln -s /usr/lib/libusb.so.1 /opt/local/lib/libusb.so``
``crle -u -l /opt/local/lib``

After that compiling with -lusb appears to function properly.