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.
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/hughsie/libgusb/releases/download/0.4.4/libgusb-0.4.4.tar.xz
Download MD5 sum: 26ce111db656e483fae46a07d60e9cf5
Download size: 48 KB
Estimated disk space required: 2.0 MB (with tests)
Estimated build time: less than 0.1 SBU (with tests)
JSON-GLib-1.6.6 and libusb-1.0.26
gobject-introspection-1.74.0,
usbutils-015 (for usb.ids
data file, which is also required for the
tests), and Vala-0.56.3
User Notes: https://wiki.linuxfromscratch.org/blfs/wiki/libgusb
Install libgusb by running the following commands:
mkdir build && cd build && meson --prefix=/usr --buildtype=release -Ddocs=false .. && ninja
To test the results, issue: ninja test.
Now, as the root
user:
ninja install
--buildtype=release
:
Specify a buildtype suitable for stable releases of the package, as
the default may produce unoptimized binaries.
-Ddocs=false
: building
documentation needs Gi-DocGen-2023.1. Remove this switch if you
have installed gi-docgen, and you
wish to build the API documentation.