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 11.3 platform.
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.4
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
If you have Gi-DocGen-2023.1 installed and wish to build the API documentation for this package, issue:
sed "/output: 'libgusb'/s/'\$/-0.4.5'/" -i ../docs/meson.build && meson configure -Ddocs=true && 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
: Allow
building this package without Gi-DocGen-2023.1 installed. If you have
Gi-DocGen-2023.1 installed and you wish to
rebuild and install the API documentation, a meson configure command will
reset this option.