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.
LFS や依存パッケージが本ブックに示す最新安定バージョンでなかった場合には、BLFS 開発版においては、パッケージのビルドや処理実行が適切に行われないことがあります。
ダウンロード (HTTP): https://github.com/hughsie/libgusb/releases/download/0.4.8/libgusb-0.4.8.tar.xz
ダウンロード MD5 sum: edc0715ded0b886c063189deef94c754
ダウンロードサイズ: 52 KB
必要ディスク容量: 2.1 MB (テストとドキュメント込み)
概算ビルド時間: 0.1 SBU 以下 (テストとドキュメント込み)
JSON-GLib-1.8.0, libusb-1.0.26
gobject-introspection-1.78.1,
umockdev-0.17.18, usbutils-017 (for
usb.ids data file, which is also
required for the tests), and Vala-0.56.14
以下のコマンドを実行して libgusb をビルドします。
mkdir build &&
cd build &&
meson setup .. \
--prefix=/usr \
--buildtype=release \
-Ddocs=false &&
ninja
If you have Gi-DocGen-2023.3 installed and wish to build the API documentation for this package, issue:
sed -E "/output|install_dir/s/('libgusb)'/\1-0.4.8'/" \
-i ../docs/meson.build &&
meson configure -Ddocs=true &&
ninja
ビルド結果をテストする場合は ninja test を実行します。
root ユーザーになって以下を実行します。
ninja install
--buildtype=release:
本パッケージの安定版リリース向けに適したビルドタイプを指定します。
デフォルトにしていると、最適化されていないバイナリを生成する場合があるためです。
-Ddocs=false: Allow
building this package without Gi-DocGen-2023.3 installed. If you have
Gi-DocGen-2023.3 installed and you wish to
rebuild and install the API documentation, a meson configure command will
reset this option.