source: general/genlib/libusb.xml@ 6e7dd85

11.2 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/soup3 xry111/xf86-video-removal
Last change on this file since 6e7dd85 was ce1dd9df, checked in by Douglas R. Reno <renodr@…>, 22 months ago

Several tags

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