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