libgusb-0.4.9

Introduction to libgusb

The libgusb package contains the GObject wrappers for libusb-1.0 that makes it easy to do asynchronous control, bulk and interrupt transfers with proper cancellation and integration into a mainloop.

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

Package Information

libgusb Dependencies

Required

JSON-GLib-1.10.8 and libusb-1.0.29

Recommended

Optional

"gi-docgen" and "umockdev" (for full test coverage)

Installation of libgusb

Prepare libgusb by running the following commands:

meson setup build         \
      --prefix=/usr       \
      --buildtype=release \
      -D docs=false

To Build the packlage, issue:

ninja -C build

To test the results, issue:

ninja -C build test

Now, as the root user:

ninja -C build install

Command Explanations

--buildtype=release: Specify a buildtype suitable for stable releases of the package, as the default may produce unoptimized binaries.

-D docs=false: Allow building this package without Gi-DocGen-2025.5 installed.

Contents

Installed Programs: gusbcmd
Installed Library: libgusb.so
Installed Directories: /usr/include/gusb-1 and /usr/share/doc/libgusb-0.4.9 (if gi-docgen is used)

Short Descriptions

gusbcmd

is a debugging tool for the libgusb library

libgusb.so

contains the libgusb API functions