libusb-1.0.30

#### Beyond Linux® From Scratch (System V Edition) - Version r13.0-1374

### Chapter 9. General Libraries

- Prev

  liburcu-0.15.6

- Next

  libuv-1.52.1

- Up
- Home

# libusb-1.0.30

## Introduction to libusb

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

### Note

This version of BLFS may not build or run some packages properly if LFS or dependencies have been updated since the most recent stable version of the System V books.

### Package Information

- Download (HTTP): https://github.com/libusb/libusb/releases/download/v1.0.30/libusb-1.0.30.tar.bz2

- Download MD5 sum: b0b0bacc2c6919515db8e863f0517db8

- Download size: 644 KB

- Estimated disk space required: 7.8 MB

- Estimated build time: less than 0.1 SBU

### libusb Dependencies

#### Optional

Doxygen-1.18.0 (for generating documentation) and umockdev-0.19.8 (for the test suite)

## Configuring Libusb

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 --->                                             [USB_SUPPORT]
        <*/M>   Support for Host-side USB                                      [USB]
        [*]     PCI based USB host interface                               [USB_PCI]
        # These are most common USB controller drivers for PC-like systems.
        # For modern systems often [USB_XHCI_HCD] is the only one needed
        # even if the system has USB 2.0 ports:
        < /*/M> xHCI HCD (USB 3.0) support                            [USB_XHCI_HCD]
        < /*/M> EHCI HCD (USB 2.0) support                            [USB_EHCI_HCD]
        < /*/M> OHCI HCD (USB 1.1) support                            [USB_OHCI_HCD]

For more details on setting up USB devices, see the section called “USB Device Issues”.

## Installation of 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

If you wish to run the tests, ensure that you have the umockdev-0.19.8 package installed and then add the `--enable-tests-build` switch to configure. After doing this, issue make check to run the tests.

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.30/apidocs &&
    install -v -m644    doc/api-1.0/* \
                        /usr/share/doc/libusb-1.0.30/apidocs

## Contents

Installed Programs: None
Installed Library: libusb-1.0.so
Installed Directories: /usr/include/libusb-1.0 and /usr/share/doc/libusb-1.0.30

### Short Descriptions

`libusb-1.0.so` | contains API functions used for accessing USB hardware

- Prev

  liburcu-0.15.6

- Next

  libuv-1.52.1

- Up
- Home