source: general/genlib/libusb.xml@ bf565e06

11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since bf565e06 was 3f2db3a6, checked in by Pierre Labastie <pierre.labastie@…>, 18 months ago

Remove sect1info tags

They only contain a date tag that is nowhere used.

  • Property mode set to 100644
File size: 5.6 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 &lfs112_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 <para condition="html" role="usernotes">User Notes:
77 <ulink url="&blfs-wiki;/libusb"/>
78 </para>
79 </sect2>
80
81 <sect2 role="installation">
82 <title>Installation of libusb</title>
83
84 <para>
85 Install <application>libusb</application> by running the following
86 commands:
87 </para>
88
89<screen><userinput>./configure --prefix=/usr --disable-static &amp;&amp;
90make</userinput></screen>
91
92 <para>
93 If <application>Doxygen</application> is installed and you wish to
94 build the API documentation, issue the following commands:
95 </para>
96
97<screen remap="doc"><userinput>pushd doc &amp;&amp;
98 doxygen -u doxygen.cfg &amp;&amp;
99 make docs &amp;&amp;
100popd</userinput></screen>
101
102 <para>
103 This package does not come with a test suite.
104 </para>
105
106 <para>
107 Now, as the <systemitem class="username">root</systemitem> user:
108 </para>
109
110<screen role="root"><userinput>make install</userinput></screen>
111
112 <para>
113 If you built the API documentation, install it using the following
114 commands as the <systemitem class="username">root</systemitem> user:
115 </para>
116
117<screen role="root"
118 remap="doc"><userinput>install -v -d -m755 /usr/share/doc/libusb-&libusb-version;/apidocs &amp;&amp;
119install -v -m644 doc/api-1.0/* \
120 /usr/share/doc/libusb-&libusb-version;/apidocs</userinput></screen>
121
122 </sect2>
123<!--
124 <sect2 role="commands">
125 <title>Command Explanations</title>
126
127 <para>
128 <command>sed -i ...</command>: This sed prevents some warnings when
129 building the documentation.
130 </para>
131 </sect2>
132-->
133 <sect2 role="configuration">
134 <title>Configuring Libusb</title>
135
136 <para id="libusb-kernel">
137 To access raw USB devices (those not treated as a disk by the mass-storage
138 driver), appropriate support must be available in the kernel. Check your
139 kernel configuration:
140 </para>
141
142<screen><literal>Device Drivers ---&gt;
143 [*] USB support ---&gt; [CONFIG_USB_SUPPORT]
144 &lt;*/M&gt; Support for Host-side USB [CONFIG_USB]
145 (Select any USB hardware device drivers you may need on the same page)</literal></screen>
146
147 <indexterm zone="libusb libusb-kernel">
148 <primary sortas="d-USB-device-filesystem">Support for Host-side USB</primary>
149 </indexterm>
150
151 <para>
152 For more details on setting up USB devices, see <xref
153 linkend="usb-device-issues"/>.
154 </para>
155
156 </sect2>
157
158 <sect2 role="content">
159 <title>Contents</title>
160
161 <segmentedlist>
162 <segtitle>Installed Programs</segtitle>
163 <segtitle>Installed Library</segtitle>
164 <segtitle>Installed Directories</segtitle>
165
166 <seglistitem>
167 <seg>
168 None
169 </seg>
170 <seg>
171 libusb-1.0.so
172 </seg>
173 <seg>
174 /usr/include/libusb-1.0 and
175 /usr/share/doc/libusb-&libusb-version;
176 </seg>
177 </seglistitem>
178 </segmentedlist>
179
180 <variablelist>
181 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
182 <?dbfo list-presentation="list"?>
183 <?dbhtml list-presentation="table"?>
184
185 <varlistentry id="libusb-lib">
186 <term><filename class="libraryfile">libusb-1.0.so</filename></term>
187 <listitem>
188 <para>
189 contains API functions used for accessing USB hardware
190 </para>
191 <indexterm zone="libusb libusb-lib">
192 <primary sortas="c-libusb">libusb-1.0.so</primary>
193 </indexterm>
194 </listitem>
195 </varlistentry>
196
197 </variablelist>
198
199 </sect2>
200
201</sect1>
Note: See TracBrowser for help on using the repository browser.