1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!ENTITY libusb-download-http "http://prdownloads.sourceforge.net/libusb/libusb-&libusb-version;.tar.gz">
|
---|
8 | <!ENTITY libusb-download-ftp " ">
|
---|
9 | <!ENTITY libusb-md5sum "c6062b29acd2cef414bcc34e0decbdd1">
|
---|
10 | <!ENTITY libusb-size "375 KB">
|
---|
11 | <!ENTITY libusb-buildsize "7.4 MB (additional 1.3 MB to install documentation)">
|
---|
12 | <!ENTITY libusb-time "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 | <keywordset>
|
---|
22 | <keyword role="package">libusb-&libusb-version;.tar</keyword>
|
---|
23 | <keyword role="ftptdir">libusb</keyword>
|
---|
24 | </keywordset>
|
---|
25 | </sect1info>
|
---|
26 |
|
---|
27 | <title>Libusb-&libusb-version;</title>
|
---|
28 |
|
---|
29 | <indexterm zone="libusb">
|
---|
30 | <primary sortas="a-Libusb">Libusb</primary>
|
---|
31 | </indexterm>
|
---|
32 |
|
---|
33 | <sect2 role="package">
|
---|
34 | <title>Introduction to Libusb</title>
|
---|
35 |
|
---|
36 | <para>The <application>libusb</application> package contains a library
|
---|
37 | used by some applications for USB device access.</para>
|
---|
38 |
|
---|
39 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
40 | <itemizedlist spacing="compact">
|
---|
41 | <listitem>
|
---|
42 | <para>Download (HTTP): <ulink url="&libusb-download-http;"/></para>
|
---|
43 | </listitem>
|
---|
44 | <listitem>
|
---|
45 | <para>Download (FTP): <ulink url="&libusb-download-ftp;"/></para>
|
---|
46 | </listitem>
|
---|
47 | <listitem>
|
---|
48 | <para>Download MD5 sum: &libusb-md5sum;</para>
|
---|
49 | </listitem>
|
---|
50 | <listitem>
|
---|
51 | <para>Download size: &libusb-size;</para>
|
---|
52 | </listitem>
|
---|
53 | <listitem>
|
---|
54 | <para>Estimated disk space required: &libusb-buildsize;</para>
|
---|
55 | </listitem>
|
---|
56 | <listitem>
|
---|
57 | <para>Estimated build time: &libusb-time;</para>
|
---|
58 | </listitem>
|
---|
59 | </itemizedlist>
|
---|
60 |
|
---|
61 | <bridgehead renderas="sect3">Libusb Dependencies</bridgehead>
|
---|
62 |
|
---|
63 | <bridgehead renderas="sect4">Optional (Required to Build the HTML User
|
---|
64 | Manual)</bridgehead>
|
---|
65 | <para role="optional"><xref linkend="openjade"/> and
|
---|
66 | <ulink url="http://www.docbook.org/sgml/4.2/index.html"> DocBOOK SGML
|
---|
67 | DTD-4.2</ulink></para>
|
---|
68 |
|
---|
69 | <bridgehead renderas="sect4">Optional (Required to Build the API
|
---|
70 | Documentation)</bridgehead>
|
---|
71 | <para role="optional"><xref linkend="doxygen"/> and
|
---|
72 | <ulink url="http://www.graphviz.org/">GraphViz</ulink></para>
|
---|
73 |
|
---|
74 | </sect2>
|
---|
75 |
|
---|
76 | <sect2 role="installation">
|
---|
77 | <title>Installation of Libusb</title>
|
---|
78 |
|
---|
79 | <para>Install <application>libusb</application> by running the following
|
---|
80 | commands:</para>
|
---|
81 |
|
---|
82 | <screen><userinput>./configure --prefix=/usr --disable-build-docs &&
|
---|
83 | make</userinput></screen>
|
---|
84 |
|
---|
85 | <para>If you wish to build the API documentation, issue
|
---|
86 | the following command:</para>
|
---|
87 |
|
---|
88 | <screen><userinput>make apidox</userinput></screen>
|
---|
89 |
|
---|
90 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
91 |
|
---|
92 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
93 |
|
---|
94 | <para>If you built the HTML user manual, install it using the following commands
|
---|
95 | as the <systemitem class="username">root</systemitem> user:</para>
|
---|
96 |
|
---|
97 | <screen role="root"><userinput>install -v -d -m755 /usr/share/doc/libusb-&libusb-version;/html &&
|
---|
98 | install -v -m644 doc/html/* /usr/share/doc/libusb-&libusb-version;/html</userinput></screen>
|
---|
99 |
|
---|
100 | <para>If you built the API documentation, install it using the following commands
|
---|
101 | as the <systemitem class="username">root</systemitem> user:</para>
|
---|
102 |
|
---|
103 | <screen role="root"><userinput>install -v -d -m755 /usr/share/doc/libusb-&libusb-version;/apidocs &&
|
---|
104 | install -v -m644 apidocs/html/* \
|
---|
105 | /usr/share/doc/libusb-&libusb-version;/apidocs</userinput></screen>
|
---|
106 |
|
---|
107 | </sect2>
|
---|
108 |
|
---|
109 | <sect2 role="commands">
|
---|
110 | <title>Command Explanations</title>
|
---|
111 |
|
---|
112 | <para><parameter>--disable-build-docs</parameter>: This switch avoids building the
|
---|
113 | HTML user manual.</para>
|
---|
114 |
|
---|
115 | <!-- Disabling obsolete text
|
---|
116 |
|
---|
117 | If you wish to build the user manual, you
|
---|
118 | may need to remove the <application>OpenSP</application> catalog definitions
|
---|
119 | from the system SGML catalogs. Use the following command
|
---|
120 | before building the package to accomplish this:</para>
|
---|
121 |
|
---|
122 | <screen role='root'><userinput>sed -i.orig \
|
---|
123 | -e "/CATALOG \/etc\/sgml\/OpenSP-1.5.1.cat/d" \
|
---|
124 | /etc/sgml/catalog \
|
---|
125 | /etc/sgml/sgml-docbook.cat</userinput></screen>
|
---|
126 |
|
---|
127 | -->
|
---|
128 |
|
---|
129 | </sect2>
|
---|
130 |
|
---|
131 | <sect2 role="configuration">
|
---|
132 | <title>Configuring Libusb</title>
|
---|
133 |
|
---|
134 | <para><application>libusb</application> requires the
|
---|
135 | <systemitem class="filesystem">usbfs</systemitem> kernel filesystem
|
---|
136 | to be mounted on <filename class="directory">/proc/bus/usb</filename>.
|
---|
137 | Applications require the files in this directory to be accessible to the user,
|
---|
138 | sometimes for both reading and writing. To restrict access to USB devices,
|
---|
139 | ensure the <systemitem class="filesystem">usb</systemitem> group exits
|
---|
140 | on your system. If necessary, create the <systemitem
|
---|
141 | class="filesystem">usb</systemitem> group using the following command:</para>
|
---|
142 |
|
---|
143 | <screen role='root'><userinput>groupadd -g 14 usb</userinput></screen>
|
---|
144 |
|
---|
145 | <para id="libusb-kernel">Ensure that you have compiled the <quote>USB device
|
---|
146 | filesystem</quote> directly into the kernel or compiled it as a module
|
---|
147 | (listing the resulting <quote>usbcore</quote> module in the
|
---|
148 | <filename>/etc/sysconfig/modules</filename> file). You should also have an
|
---|
149 | entry similar to the line below in your <filename>/etc/fstab</filename>
|
---|
150 | file:</para>
|
---|
151 |
|
---|
152 | <indexterm zone="libusb libusb-kernel">
|
---|
153 | <primary sortas="d-USB-device-filesystem">USB device filesystem</primary>
|
---|
154 | </indexterm>
|
---|
155 |
|
---|
156 | <screen><literal>usbfs /proc/bus/usb usbfs devgid=14,devmode=0660 0 0</literal></screen>
|
---|
157 |
|
---|
158 | </sect2>
|
---|
159 |
|
---|
160 | <sect2 role="content">
|
---|
161 | <title>Contents</title>
|
---|
162 |
|
---|
163 | <segmentedlist>
|
---|
164 | <segtitle>Installed Program</segtitle>
|
---|
165 | <segtitle>Installed Libraries</segtitle>
|
---|
166 | <segtitle>Installed Directory</segtitle>
|
---|
167 |
|
---|
168 | <seglistitem>
|
---|
169 | <seg>usb-config</seg>
|
---|
170 | <seg>libusb.[so,a] and libusbpp.[so,a]</seg>
|
---|
171 | <seg>/usr/share/doc/libusb-&libusb-version;</seg>
|
---|
172 | </seglistitem>
|
---|
173 | </segmentedlist>
|
---|
174 |
|
---|
175 | <variablelist>
|
---|
176 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
177 | <?dbfo list-presentation="list"?>
|
---|
178 | <?dbhtml list-presentation="table"?>
|
---|
179 |
|
---|
180 | <varlistentry id="usb-config">
|
---|
181 | <term><command>usb-config</command></term>
|
---|
182 | <listitem>
|
---|
183 | <para>is a script that provides the right compiler and linker
|
---|
184 | flags for programs using
|
---|
185 | <filename class='libraryfile'>libusb</filename>.</para>
|
---|
186 | <indexterm zone="libusb usb-config">
|
---|
187 | <primary sortas="b-usb-config">usb-config</primary>
|
---|
188 | </indexterm>
|
---|
189 | </listitem>
|
---|
190 | </varlistentry>
|
---|
191 |
|
---|
192 | <varlistentry id="libusb-lib">
|
---|
193 | <term><filename class='libraryfile'>libusb.[so,a]</filename></term>
|
---|
194 | <listitem>
|
---|
195 | <para> libraries contain C functions for accessing
|
---|
196 | USB hardware.</para>
|
---|
197 | <indexterm zone="libusb libusb-lib">
|
---|
198 | <primary sortas="c-libusb">libusb.[so,a]</primary>
|
---|
199 | </indexterm>
|
---|
200 | </listitem>
|
---|
201 | </varlistentry>
|
---|
202 |
|
---|
203 | </variablelist>
|
---|
204 |
|
---|
205 | </sect2>
|
---|
206 |
|
---|
207 | </sect1>
|
---|