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://people.freedesktop.org/~hughsient/releases/libgusb-0.4.1.tar.xz
Download MD5 sum: 8857f058a72d5a7ec1642a616ba34f2b
Download size: 52 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-014 (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 an old version of GTK-Doc, so it has to be disabled.