1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!ENTITY libgusb-download-http "https://github.com/hughsie/libgusb/releases/download/&libgusb-version;/libgusb-&libgusb-version;.tar.xz">
|
---|
8 | <!ENTITY libgusb-download-ftp " ">
|
---|
9 | <!ENTITY libgusb-md5sum "26ce111db656e483fae46a07d60e9cf5">
|
---|
10 | <!ENTITY libgusb-size "48 KB">
|
---|
11 | <!ENTITY libgusb-buildsize "2.0 MB (with tests)">
|
---|
12 | <!ENTITY libgusb-time "less than 0.1 SBU (with tests)">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="libgusb" xreflabel="libgusb-&libgusb-version;">
|
---|
16 | <?dbhtml filename="libgusb.html"?>
|
---|
17 |
|
---|
18 |
|
---|
19 | <title>libgusb-&libgusb-version;</title>
|
---|
20 |
|
---|
21 | <indexterm zone="libgusb">
|
---|
22 | <primary sortas="a-libgusb">libgusb</primary>
|
---|
23 | </indexterm>
|
---|
24 |
|
---|
25 | <sect2 role="package">
|
---|
26 | <title>Introduction to libgusb</title>
|
---|
27 |
|
---|
28 | <para>
|
---|
29 | The <application>libgusb</application> package contains the GObject
|
---|
30 | wrappers for <application>libusb-1.0</application> that makes it
|
---|
31 | easy to do asynchronous control, bulk and interrupt transfers with
|
---|
32 | proper cancellation and integration into a mainloop.
|
---|
33 | </para>
|
---|
34 |
|
---|
35 | &lfs112_checked;
|
---|
36 |
|
---|
37 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
38 | <itemizedlist spacing="compact">
|
---|
39 | <listitem>
|
---|
40 | <para>
|
---|
41 | Download (HTTP): <ulink url="&libgusb-download-http;"/>
|
---|
42 | </para>
|
---|
43 | </listitem>
|
---|
44 | <listitem>
|
---|
45 | <para>
|
---|
46 | Download (FTP): <ulink url="&libgusb-download-ftp;"/>
|
---|
47 | </para>
|
---|
48 | </listitem>
|
---|
49 | <listitem>
|
---|
50 | <para>
|
---|
51 | Download MD5 sum: &libgusb-md5sum;
|
---|
52 | </para>
|
---|
53 | </listitem>
|
---|
54 | <listitem>
|
---|
55 | <para>
|
---|
56 | Download size: &libgusb-size;
|
---|
57 | </para>
|
---|
58 | </listitem>
|
---|
59 | <listitem>
|
---|
60 | <para>
|
---|
61 | Estimated disk space required: &libgusb-buildsize;
|
---|
62 | </para>
|
---|
63 | </listitem>
|
---|
64 | <listitem>
|
---|
65 | <para>
|
---|
66 | Estimated build time: &libgusb-time;
|
---|
67 | </para>
|
---|
68 | </listitem>
|
---|
69 | </itemizedlist>
|
---|
70 |
|
---|
71 | <bridgehead renderas="sect3">libgusb Dependencies</bridgehead>
|
---|
72 |
|
---|
73 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
74 | <para role="required">
|
---|
75 | <xref linkend="json-glib"/> and
|
---|
76 | <xref linkend="libusb"/>
|
---|
77 | </para>
|
---|
78 |
|
---|
79 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
80 | <para role="recommended">
|
---|
81 | <xref linkend="gobject-introspection"/>,
|
---|
82 | <xref linkend="usbutils"/> (for <filename>usb.ids</filename> data file,
|
---|
83 | which is also required for the tests), and
|
---|
84 | <xref linkend="vala"/>
|
---|
85 | </para>
|
---|
86 |
|
---|
87 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
88 | <para role="optional">
|
---|
89 | <xref linkend="gi-docgen"/>
|
---|
90 | </para>
|
---|
91 |
|
---|
92 | <para condition="html" role="usernotes">
|
---|
93 | User Notes: <ulink url="&blfs-wiki;/libgusb"/>
|
---|
94 | </para>
|
---|
95 | </sect2>
|
---|
96 |
|
---|
97 | <sect2 role="installation">
|
---|
98 | <title>Installation of libgusb</title>
|
---|
99 |
|
---|
100 | <para>
|
---|
101 | Install <application>libgusb</application> by running the following
|
---|
102 | commands:
|
---|
103 | </para>
|
---|
104 |
|
---|
105 | <screen><userinput>mkdir build &&
|
---|
106 | cd build &&
|
---|
107 |
|
---|
108 | meson --prefix=/usr --buildtype=release -Ddocs=false .. &&
|
---|
109 | ninja</userinput></screen>
|
---|
110 |
|
---|
111 | <para>
|
---|
112 | To test the results, issue: <command>ninja test</command>.
|
---|
113 | </para>
|
---|
114 |
|
---|
115 | <para>
|
---|
116 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
117 | </para>
|
---|
118 |
|
---|
119 | <screen role="root"><userinput>ninja install</userinput></screen>
|
---|
120 | </sect2>
|
---|
121 |
|
---|
122 | <sect2 role="commands">
|
---|
123 | <title>Command Explanations</title>
|
---|
124 |
|
---|
125 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
126 | href="../../xincludes/meson-buildtype-release.xml"/>
|
---|
127 |
|
---|
128 | <para>
|
---|
129 | <parameter>-Ddocs=false</parameter>: building documentation needs
|
---|
130 | <xref linkend="gi-docgen"/>. Remove this switch if you have
|
---|
131 | installed <application>gi-docgen</application>, and you wish to build
|
---|
132 | the API documentation. If this option is used, use the following
|
---|
133 | command to fix the directory name of the API documentation after
|
---|
134 | this package is installed:
|
---|
135 | </para>
|
---|
136 |
|
---|
137 | <screen role='nodump'><userinput>mv -v /usr/share/doc/libgusb{,-&libgusb-version;}</userinput></screen>
|
---|
138 |
|
---|
139 | </sect2>
|
---|
140 |
|
---|
141 | <sect2 role="content">
|
---|
142 | <title>Contents</title>
|
---|
143 |
|
---|
144 | <segmentedlist>
|
---|
145 | <segtitle>Installed Programs</segtitle>
|
---|
146 | <segtitle>Installed Library</segtitle>
|
---|
147 | <segtitle>Installed Directories</segtitle>
|
---|
148 |
|
---|
149 | <seglistitem>
|
---|
150 | <seg>
|
---|
151 | gusbcmd
|
---|
152 | </seg>
|
---|
153 | <seg>
|
---|
154 | libgusb.so
|
---|
155 | </seg>
|
---|
156 | <seg>
|
---|
157 | /usr/include/gusb-1 and
|
---|
158 | /usr/share/doc/libgusb-&libgusb-version; (if gi-docgen is used)
|
---|
159 | </seg>
|
---|
160 | </seglistitem>
|
---|
161 | </segmentedlist>
|
---|
162 |
|
---|
163 | <variablelist>
|
---|
164 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
165 | <?dbfo list-presentation="list"?>
|
---|
166 | <?dbhtml list-presentation="table"?>
|
---|
167 |
|
---|
168 | <varlistentry id="gusbcmd">
|
---|
169 | <term><command>gusbcmd</command></term>
|
---|
170 | <listitem>
|
---|
171 | <para>
|
---|
172 | is a debugging tool for the libgusb library
|
---|
173 | </para>
|
---|
174 | <indexterm zone="libgusb gusbcmd">
|
---|
175 | <primary sortas="b-gusbcmd">gusbcmd</primary>
|
---|
176 | </indexterm>
|
---|
177 | </listitem>
|
---|
178 | </varlistentry>
|
---|
179 |
|
---|
180 | <varlistentry id="libgusb-lib">
|
---|
181 | <term><filename class="libraryfile">libgusb.so</filename></term>
|
---|
182 | <listitem>
|
---|
183 | <para>
|
---|
184 | contains the <application>libgusb</application> API functions
|
---|
185 | </para>
|
---|
186 | <indexterm zone="libgusb libgusb-lib">
|
---|
187 | <primary sortas="c-libgusb">libgusb.so</primary>
|
---|
188 | </indexterm>
|
---|
189 | </listitem>
|
---|
190 | </varlistentry>
|
---|
191 |
|
---|
192 | </variablelist>
|
---|
193 |
|
---|
194 | </sect2>
|
---|
195 |
|
---|
196 | </sect1>
|
---|