libusb-0.1.8

Introduction to libusb

The libusb package contains a library used by some applications for USB device access.

Package information

libusb dependencies

Installation of libusb

Install libusb by running the following commands:

./configure --prefix=/usr --disable-build-docs &&
make &&
make install

Command explanations

--disable-build-docs: This switch turns off by default enabled building of documentation since it requires OpenJade.

Configuring libusb

libusb requires the usbfs kernel filesystem to be mounted on /proc/bus/usb. Applications require the files in this directory to be accessible to the user, sometimes for both reading and writing.

To restrict access to USB devices, create the usb group:

groupadd -g 15 usb

To get usbfs mounted on boot, we will create a special init script, because just putting an extra line into /etc/fstab does not work for those who compiled "USB device filesystem" as a kernel module. Install /etc/rc.d/init.d/usb init script included in the blfs-bootscripts-5.1 package.

make install-usb

Contents

The libusb package contains libusb libraries, the /usr/include/usb.h header, and a usb-config script.

Description

libusb libraries

libusb libraries contain C functions for accessing USB hardware.

usb-config

The usb-config script provides the right compiler and linker flags for programs using this library.