libusb-1.0.22

#### Beyond Linux® From Scratch - Version 2019-02-27

### Chapter 9. General Libraries

- Prev

  libunistring-0.9.10

- Next

  libuv-1.26.0

- Up
- Home

# libusb-1.0.22

## Introduction to libusb

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

This package is known to build and work properly using an LFS-8.4 platform.

### Package Information

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

- Download MD5 sum: 466267889daead47674df933cea9cacb

- Download size: 588 KB

- Estimated disk space required: 5.6 MB (add 1.6 MB for API documentation)

- Estimated build time: less than 0.1 SBU

### libusb Dependencies

#### Optional

Doxygen-1.8.15

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/libusb

## Installation of libusb

### Note

This package does not support parallel build.

Install libusb by running the following commands:

    sed -i "s/^PROJECT_LOGO/#&/" doc/doxygen.cfg.in &&

    ./configure --prefix=/usr --disable-static &&
    make -j1

If Doxygen is installed and you wish to build the API documentation, issue the following command:

    make -C doc docs

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.22/apidocs &&
    install -v -m644    doc/html/* \
                        /usr/share/doc/libusb-1.0.22/apidocs

## Command Explanations

sed -i ...: This sed prevents a warning when building the documentation.

## 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 --->                   [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”.

## Contents

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

### Short Descriptions

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

Last updated on 2019-02-15 15:01:29 -0600

- Prev

  libunistring-0.9.10

- Next

  libuv-1.26.0

- Up
- Home