source: general/genlib/libusb.xml@ 3a001df8

12.0 12.1 ken/TL2024 ken/tuningfonts lazarus plabs/newcss python3.11 rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18
Last change on this file since 3a001df8 was 14891a90, checked in by Xi Ruoyao <xry111@…>, 12 months ago

treewide: More "User Notes" clean up

Remove links to pages w/o real contents.

  • Property mode set to 100644
File size: 5.5 KB
Line 
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 libusb-download-http "https://github.com/libusb/libusb/releases/download/v&libusb-version;/libusb-&libusb-version;.tar.bz2">
8 <!ENTITY libusb-download-ftp " ">
9 <!ENTITY libusb-md5sum "9c75660dfe1d659387c37b28c91e3160">
10 <!ENTITY libusb-size "608 KB">
11 <!ENTITY libusb-buildsize "5.8 MB">
12 <!ENTITY libusb-time "less than 0.1 SBU">
13]>
14
15<sect1 id="libusb" xreflabel="libusb-&libusb-version;">
16 <?dbhtml filename="libusb.html"?>
17
18
19 <title>libusb-&libusb-version;</title>
20
21 <indexterm zone="libusb">
22 <primary sortas="a-libusb">libusb</primary>
23 </indexterm>
24
25 <sect2 role="package">
26 <title>Introduction to libusb</title>
27
28 <para>
29 The <application>libusb</application> package contains a library
30 used by some applications for USB device access.
31 </para>
32
33 &lfs113_checked;
34
35 <bridgehead renderas="sect3">Package Information</bridgehead>
36 <itemizedlist spacing="compact">
37 <listitem>
38 <para>
39 Download (HTTP): <ulink url="&libusb-download-http;"/>
40 </para>
41 </listitem>
42 <listitem>
43 <para>
44 Download (FTP): <ulink url="&libusb-download-ftp;"/>
45 </para>
46 </listitem>
47 <listitem>
48 <para>
49 Download MD5 sum: &libusb-md5sum;
50 </para>
51 </listitem>
52 <listitem>
53 <para>
54 Download size: &libusb-size;
55 </para>
56 </listitem>
57 <listitem>
58 <para>
59 Estimated disk space required: &libusb-buildsize;
60 </para>
61 </listitem>
62 <listitem>
63 <para>
64 Estimated build time: &libusb-time;
65 </para>
66 </listitem>
67 </itemizedlist>
68
69 <bridgehead renderas="sect3">libusb Dependencies</bridgehead>
70
71 <bridgehead renderas="sect4">Optional</bridgehead>
72 <para role="optional">
73 <xref linkend="doxygen"/>
74 </para>
75
76 </sect2>
77
78 <sect2 role="installation">
79 <title>Installation of libusb</title>
80
81 <para>
82 Install <application>libusb</application> by running the following
83 commands:
84 </para>
85
86<screen><userinput>./configure --prefix=/usr --disable-static &amp;&amp;
87make</userinput></screen>
88
89 <para>
90 If <application>Doxygen</application> is installed and you wish to
91 build the API documentation, issue the following commands:
92 </para>
93
94<screen remap="doc"><userinput>pushd doc &amp;&amp;
95 doxygen -u doxygen.cfg &amp;&amp;
96 make docs &amp;&amp;
97popd</userinput></screen>
98
99 <para>
100 This package does not come with a test suite.
101 </para>
102
103 <para>
104 Now, as the <systemitem class="username">root</systemitem> user:
105 </para>
106
107<screen role="root"><userinput>make install</userinput></screen>
108
109 <para>
110 If you built the API documentation, install it using the following
111 commands as the <systemitem class="username">root</systemitem> user:
112 </para>
113
114<screen role="root"
115 remap="doc"><userinput>install -v -d -m755 /usr/share/doc/libusb-&libusb-version;/apidocs &amp;&amp;
116install -v -m644 doc/api-1.0/* \
117 /usr/share/doc/libusb-&libusb-version;/apidocs</userinput></screen>
118
119 </sect2>
120<!--
121 <sect2 role="commands">
122 <title>Command Explanations</title>
123
124 <para>
125 <command>sed -i ...</command>: This sed prevents some warnings when
126 building the documentation.
127 </para>
128 </sect2>
129-->
130 <sect2 role="configuration">
131 <title>Configuring Libusb</title>
132
133 <para id="libusb-kernel">
134 To access raw USB devices (those not treated as a disk by the mass-storage
135 driver), appropriate support must be available in the kernel. Check your
136 kernel configuration:
137 </para>
138
139<screen><literal>Device Drivers ---&gt;
140 [*] USB support ---&gt; [CONFIG_USB_SUPPORT]
141 &lt;*/M&gt; Support for Host-side USB [CONFIG_USB]
142 (Select any USB hardware device drivers you may need on the same page)</literal></screen>
143
144 <indexterm zone="libusb libusb-kernel">
145 <primary sortas="d-USB-device-filesystem">Support for Host-side USB</primary>
146 </indexterm>
147
148 <para>
149 For more details on setting up USB devices, see <xref
150 linkend="usb-device-issues"/>.
151 </para>
152
153 </sect2>
154
155 <sect2 role="content">
156 <title>Contents</title>
157
158 <segmentedlist>
159 <segtitle>Installed Programs</segtitle>
160 <segtitle>Installed Library</segtitle>
161 <segtitle>Installed Directories</segtitle>
162
163 <seglistitem>
164 <seg>
165 None
166 </seg>
167 <seg>
168 libusb-1.0.so
169 </seg>
170 <seg>
171 /usr/include/libusb-1.0 and
172 /usr/share/doc/libusb-&libusb-version;
173 </seg>
174 </seglistitem>
175 </segmentedlist>
176
177 <variablelist>
178 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
179 <?dbfo list-presentation="list"?>
180 <?dbhtml list-presentation="table"?>
181
182 <varlistentry id="libusb-lib">
183 <term><filename class="libraryfile">libusb-1.0.so</filename></term>
184 <listitem>
185 <para>
186 contains API functions used for accessing USB hardware
187 </para>
188 <indexterm zone="libusb libusb-lib">
189 <primary sortas="c-libusb">libusb-1.0.so</primary>
190 </indexterm>
191 </listitem>
192 </varlistentry>
193
194 </variablelist>
195
196 </sect2>
197
198</sect1>
Note: See TracBrowser for help on using the repository browser.