The libusb package contains a library used by some applications for USB device access.
Development versions of BLFS may not build or run some packages properly if dependencies have been updated since the most recent stable versions of the book.
Download (HTTP): https://github.com/libusb/libusb/releases/download/v1.0.26/libusb-1.0.26.tar.bz2
Download MD5 sum: 9c75660dfe1d659387c37b28c91e3160
Download size: 608 KB
Estimated disk space required: 5.8 MB
Estimated build time: less than 0.1 SBU
User Notes: https://wiki.linuxfromscratch.org/blfs/wiki/libusb
Install libusb by running the following commands:
./configure --prefix=/usr --disable-static && make
If Doxygen is installed and you wish to build the API documentation, issue the following commands:
pushd doc && doxygen -u doxygen.cfg && make docs && popd
This package does not come with a test suite.
Now, as the root
user:
make install
If you built the API documentation, install it using the following
commands as the root
user:
install -v -d -m755 /usr/share/doc/libusb-1.0.26/apidocs && install -v -m644 doc/api-1.0/* \ /usr/share/doc/libusb-1.0.26/apidocs
To access raw USB devices (those not treated as a disk by the mass-storage driver), appropriate support must be available in the kernel. Check your kernel configuration:
Device Drivers --->
[*] USB support ---> [CONFIG_USB_SUPPORT]
<*/M> Support for Host-side USB [CONFIG_USB]
(Select any USB hardware device drivers you may need on the same page)
For more details on setting up USB devices, see the section called “USB Device Issues”.