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.5/libgusb-0.4.5.tar.xz
Download MD5 sum: 6b8dfb57b2828562ed007fc84ab6af67
Download size: 52 KB
Estimated disk space required: 2.6 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,
umockdev-0.17.16, 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. If this option is used, use
the following command to fix the directory name of the API
documentation after this package is installed:
mv -v /usr/share/doc/libgusb{,-0.4.5}