2013-03-16 20:11:58 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
|
2021-11-28 03:06:58 +08:00
|
|
|
<!ENTITY libgusb-download-http "https://people.freedesktop.org/~hughsient/releases/libgusb-&libgusb-version;.tar.xz">
|
2013-03-16 20:11:58 +08:00
|
|
|
<!ENTITY libgusb-download-ftp " ">
|
2022-01-12 00:44:08 +08:00
|
|
|
<!ENTITY libgusb-md5sum "5effbae7609134a51f3ec295733302c3">
|
2021-12-13 02:56:44 +08:00
|
|
|
<!ENTITY libgusb-size "44 KB">
|
|
|
|
<!ENTITY libgusb-buildsize "1.6 MB (with tests)">
|
2015-12-03 06:29:53 +08:00
|
|
|
<!ENTITY libgusb-time "less than 0.1 SBU (with tests)">
|
2013-03-16 20:11:58 +08:00
|
|
|
]>
|
|
|
|
|
|
|
|
<sect1 id="libgusb" xreflabel="libgusb-&libgusb-version;">
|
|
|
|
<?dbhtml filename="libgusb.html"?>
|
|
|
|
|
|
|
|
<sect1info>
|
|
|
|
<date>$Date$</date>
|
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>libgusb-&libgusb-version;</title>
|
|
|
|
|
|
|
|
<indexterm zone="libgusb">
|
|
|
|
<primary sortas="a-libgusb">libgusb</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title>Introduction to libgusb</title>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
The <application>libgusb</application> package contains the GObject
|
|
|
|
wrappers for <application>libusb-1.0</application> that makes it
|
|
|
|
easy to do asynchronous control, bulk and interrupt transfers with
|
|
|
|
proper cancellation and integration into a mainloop.
|
|
|
|
</para>
|
|
|
|
|
2021-08-28 08:08:59 +08:00
|
|
|
&lfs110a_checked;
|
2013-03-16 20:11:58 +08:00
|
|
|
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download (HTTP): <ulink url="&libgusb-download-http;"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download (FTP): <ulink url="&libgusb-download-ftp;"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download MD5 sum: &libgusb-md5sum;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download size: &libgusb-size;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Estimated disk space required: &libgusb-buildsize;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Estimated build time: &libgusb-time;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect3">libgusb Dependencies</bridgehead>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Required</bridgehead>
|
|
|
|
<para role="required">
|
2014-11-22 00:35:29 +08:00
|
|
|
<xref linkend="libusb"/>
|
2013-03-16 20:11:58 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Recommended</bridgehead>
|
|
|
|
<para role="recommended">
|
2021-01-21 21:04:55 +08:00
|
|
|
<xref linkend="gtk-doc"/>,
|
2016-01-12 00:03:26 +08:00
|
|
|
<xref linkend="gobject-introspection"/>,
|
|
|
|
<xref linkend="usbutils"/> (for <filename>usb.ids</filename> data file,
|
|
|
|
which is also required for the tests), and
|
2013-03-16 20:11:58 +08:00
|
|
|
<xref linkend="vala"/>
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para condition="html" role="usernotes">
|
|
|
|
User Notes: <ulink url="&blfs-wiki;/libgusb"/>
|
|
|
|
</para>
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of libgusb</title>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Install <application>libgusb</application> by running the following
|
|
|
|
commands:
|
|
|
|
</para>
|
|
|
|
|
2018-02-20 13:41:51 +08:00
|
|
|
<screen><userinput>mkdir build &&
|
2018-02-20 23:05:34 +08:00
|
|
|
cd build &&
|
2018-02-20 13:41:51 +08:00
|
|
|
|
2021-06-04 20:06:48 +08:00
|
|
|
meson --prefix=/usr --buildtype=release -Ddocs=false .. &&
|
2018-02-20 13:41:51 +08:00
|
|
|
ninja</userinput></screen>
|
2013-03-16 20:11:58 +08:00
|
|
|
|
|
|
|
<para>
|
2018-02-20 13:41:51 +08:00
|
|
|
To test the results, issue: <command>ninja test</command>.
|
2013-03-16 20:11:58 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Now, as the <systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
|
|
|
|
2018-02-20 13:41:51 +08:00
|
|
|
<screen role="root"><userinput>ninja install</userinput></screen>
|
2013-03-16 20:11:58 +08:00
|
|
|
</sect2>
|
2018-02-21 02:34:45 +08:00
|
|
|
|
2013-03-16 20:11:58 +08:00
|
|
|
<sect2 role="commands">
|
|
|
|
<title>Command Explanations</title>
|
|
|
|
|
2021-06-04 20:06:48 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
|
|
href="../../xincludes/meson-buildtype-release.xml"/>
|
|
|
|
|
2018-02-21 02:34:45 +08:00
|
|
|
<para>
|
2018-08-15 01:08:52 +08:00
|
|
|
<option>-Ddocs=true</option>: Use this option if
|
|
|
|
<application>GTK-Doc</application> is installed and you wish to install
|
|
|
|
the documentation.
|
2018-02-21 02:34:45 +08:00
|
|
|
</para>
|
2013-03-16 20:11:58 +08:00
|
|
|
|
|
|
|
</sect2>
|
2018-02-21 02:34:45 +08:00
|
|
|
|
2013-03-16 20:11:58 +08:00
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
|
|
|
<segtitle>Installed Library</segtitle>
|
|
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
|
|
|
<seg>
|
2018-01-13 11:33:35 +08:00
|
|
|
gusbcmd
|
2013-03-16 20:11:58 +08:00
|
|
|
</seg>
|
|
|
|
<seg>
|
|
|
|
libgusb.so
|
|
|
|
</seg>
|
|
|
|
<seg>
|
|
|
|
/usr/include/gusb-1 and
|
2018-02-21 02:34:45 +08:00
|
|
|
/usr/share/gtk-doc/html/gusb (if gtk-doc is used)
|
2013-03-16 20:11:58 +08:00
|
|
|
</seg>
|
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
2018-01-13 11:33:35 +08:00
|
|
|
<varlistentry id="gusbcmd">
|
|
|
|
<term><command>gusbcmd</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2021-02-19 23:20:16 +08:00
|
|
|
is a debugging tool for the libgusb library
|
2018-01-13 11:33:35 +08:00
|
|
|
</para>
|
|
|
|
<indexterm zone="libgusb gusbcmd">
|
|
|
|
<primary sortas="b-gusbcmd">gusbcmd</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2013-03-16 20:11:58 +08:00
|
|
|
<varlistentry id="libgusb-lib">
|
|
|
|
<term><filename class="libraryfile">libgusb.so</filename></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2021-02-19 23:20:16 +08:00
|
|
|
contains the <application>libgusb</application> API functions
|
2013-03-16 20:11:58 +08:00
|
|
|
</para>
|
|
|
|
<indexterm zone="libgusb libgusb-lib">
|
|
|
|
<primary sortas="c-libgusb">libgusb.so</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
</sect1>
|