source: general/genlib/libusb.xml@ 7ea6667

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 7ea6667 was e73e361, checked in by Bruce Dubbs <bdubbs@…>, 18 years ago

Added 'About Devices' page.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@6099 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 8.6 KB
RevLine 
[52d29f7]1<?xml version="1.0" encoding="ISO-8859-1"?>
[ff769b8c]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
[52d29f7]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
[fc3e01f]7 <!ENTITY libusb-download-http "http://prdownloads.sourceforge.net/libusb/libusb-&libusb-version;.tar.gz">
[de49ebd]8 <!ENTITY libusb-download-ftp " ">
9 <!ENTITY libusb-md5sum "caf182cbc7565dac0fd72155919672e6">
10 <!ENTITY libusb-size "389 KB">
11 <!ENTITY libusb-buildsize "8.4 MB (includes installing all documentation)">
12 <!ENTITY libusb-time "0.3 SBU (includes building all documentation)">
[52d29f7]13]>
14
[bdf5806e]15<sect1 id="libusb" xreflabel="libusb-&libusb-version;">
[fc3e01f]16 <?dbhtml filename="libusb.html"?>
[4c3474fe]17
[fc3e01f]18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
[4f26c54]21 <keywordset>
22 <keyword role="package">libusb-&libusb-version;.tar</keyword>
[22ac237]23 <keyword role="ftpdir">libusb</keyword>
[4f26c54]24 </keywordset>
[fc3e01f]25 </sect1info>
[4c3474fe]26
[1f3b7a7]27 <title>libusb-&libusb-version;</title>
[4c3474fe]28
[fc3e01f]29 <indexterm zone="libusb">
30 <primary sortas="a-Libusb">Libusb</primary>
31 </indexterm>
32
33 <sect2 role="package">
[1f3b7a7]34 <title>Introduction to libusb</title>
[4c3474fe]35
[fc3e01f]36 <para>The <application>libusb</application> package contains a library
37 used by some applications for USB device access.</para>
[4c3474fe]38
[fc3e01f]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>
[4c3474fe]60
[1f3b7a7]61 <bridgehead renderas="sect3">libusb Dependencies</bridgehead>
[4c3474fe]62
[de49ebd]63 <bridgehead renderas="sect4">Optional</bridgehead>
64 <para role="optional"><xref linkend="pkgconfig"/></para>
65
66 <bridgehead renderas="sect4">Optional
67 (Required to Build the HTML User Manual)</bridgehead>
[4f26c54]68 <para role="optional"><xref linkend="openjade"/> and
[74390482]69 <ulink url="http://www.docbook.org/sgml/4.2/index.html"> DocBOOK SGML
[4c3474fe]70 DTD-4.2</ulink></para>
71
[de49ebd]72 <bridgehead renderas="sect4">Optional
73 (Required to Build the API Documentation)</bridgehead>
[4f26c54]74 <para role="optional"><xref linkend="doxygen"/> and
[6722219]75 <xref linkend="graphviz"/></para>
[4c3474fe]76
[1039de3]77 <para condition="html" role="usernotes">User Notes:
78 <ulink url="&blfs-wiki;/libusb"/></para>
79
[fc3e01f]80 </sect2>
[4c3474fe]81
[fc3e01f]82 <sect2 role="installation">
[1f3b7a7]83 <title>Installation of libusb</title>
[fc3e01f]84
[74390482]85 <para>Install <application>libusb</application> by running the following
[fc3e01f]86 commands:</para>
87
88<screen><userinput>./configure --prefix=/usr --disable-build-docs &amp;&amp;
89make</userinput></screen>
90
[1f3b7a7]91 <para>If you wish to build the API documentation (see the required
92 dependencies), issue the following command:</para>
[fc3e01f]93
94<screen><userinput>make apidox</userinput></screen>
[4c3474fe]95
[1f3b7a7]96 <para>To test the results, issue <command>make -k check</command>.</para>
97
[fc3e01f]98 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
[4c3474fe]99
[fc3e01f]100<screen role="root"><userinput>make install</userinput></screen>
101
[1f3b7a7]102 <para>If you built the HTML user manual (by having the required
103 dependencies installed and removing the
104 <parameter>--disable-build-docs</parameter> parameter from the
105 <command>configure</command> command), install it using the following
106 commands as the <systemitem class="username">root</systemitem> user:</para>
[fc3e01f]107
108<screen role="root"><userinput>install -v -d -m755 /usr/share/doc/libusb-&libusb-version;/html &amp;&amp;
109install -v -m644 doc/html/* /usr/share/doc/libusb-&libusb-version;/html</userinput></screen>
110
[1f3b7a7]111 <para>If you built the API documentation, install it using the following
112 commands as the <systemitem class="username">root</systemitem> user:</para>
[fc3e01f]113
114<screen role="root"><userinput>install -v -d -m755 /usr/share/doc/libusb-&libusb-version;/apidocs &amp;&amp;
[4c288b0]115install -v -m644 apidocs/html/* \
116 /usr/share/doc/libusb-&libusb-version;/apidocs</userinput></screen>
[4c3474fe]117
[fc3e01f]118 </sect2>
[4c3474fe]119
[fc3e01f]120 <sect2 role="commands">
121 <title>Command Explanations</title>
122
[1f3b7a7]123 <para><parameter>--disable-build-docs</parameter>: This switch avoids
[de49ebd]124 building the HTML user manual. Remove it if you have the required
125 dependencies installed and wish to build the manual.</para>
[4412b30b]126
[fc3e01f]127 </sect2>
[4c3474fe]128
[fc3e01f]129 <sect2 role="configuration">
130 <title>Configuring Libusb</title>
131
[33ca2b6]132<!--
[74390482]133 <para><application>libusb</application> requires the
134 <systemitem class="filesystem">usbfs</systemitem> kernel filesystem
135 to be mounted on <filename class="directory">/proc/bus/usb</filename>.
136 Applications require the files in this directory to be accessible to the user,
137 sometimes for both reading and writing. To restrict access to USB devices,
138 ensure the <systemitem class="filesystem">usb</systemitem> group exits
139 on your system. If necessary, create the <systemitem
[fc3e01f]140 class="filesystem">usb</systemitem> group using the following command:</para>
141
142<screen role='root'><userinput>groupadd -g 14 usb</userinput></screen>
[33ca2b6]143-->
[fc3e01f]144
[7bcc1669]145 <para id="libusb-kernel">To access raw USB devices (those not treated as a
146 disk by the mass-storage driver), appropriate support must be available in
147 the kernel. Check your kernel configuration for Device Drivers &rArr; USB
148 support &rArr; Support for Host-side USB. Select any USB hardware device
149 drivers you may need on the same page.</para>
150
[fc3e01f]151 <indexterm zone="libusb libusb-kernel">
[7bcc1669]152 <primary sortas="d-USB-device-filesystem">Support for Host-side USB</primary>
[fc3e01f]153 </indexterm>
[7bcc1669]154
[531886d]155 <para>To have raw USB devices set up properly, add the following
[7bcc1669]156 <application>udev</application> rule and add any users
[531886d]157 that need to access raw USB devices to the "usb" group.</para>
[7bcc1669]158
159<screen><literal>cat &gt; /etc/udev/rules.d/23-usb-rules &lt;&lt; "EOF"
[531886d]160# Set group ownership for raw USB devices
161SUBSYSTEM=="usb_device", GROUP="usb"
[7bcc1669]162EOF</literal></screen>
163
[e73e361]164<!--
[531886d]165 <para>Fine-tuning of permissions is also possible by creating extra rules,
[7bcc1669]166 matching on something like this (on one line). The vendor and product can
167 be found by searchng the <filename
[531886d]168 class='directory'>/sys/devices</filename> directory entries or using
169 <command>udevinfo</command> after the device has been attached. See the
170 documentation in the current udev directory of <filename
171 class='directory'>/usr/share/doc></filename> for details.</para>
[7bcc1669]172
173<screen><literal>SUBSYSTEM=="usb_device", SYSFS{idVendor}=="05d8",
174SYSFS{idProduct}=="4002", GROUP:="scanner"</literal></screen>
175
[531886d]176 <para>Some older applications, such as <application>VMware</application>,
177 need the following deprecated entry in the <filename>/etc/fstab</filename>
[93b8f83d]178 file. This is not normally needed.</para>
[fc3e01f]179
180<screen><literal>usbfs /proc/bus/usb usbfs devgid=14,devmode=0660 0 0</literal></screen>
[e73e361]181-->
[4c3474fe]182
[fc3e01f]183 </sect2>
[4c3474fe]184
[fc3e01f]185 <sect2 role="content">
186 <title>Contents</title>
187
188 <segmentedlist>
189 <segtitle>Installed Program</segtitle>
190 <segtitle>Installed Libraries</segtitle>
191 <segtitle>Installed Directory</segtitle>
[4c3474fe]192
[fc3e01f]193 <seglistitem>
[7833af6]194 <seg>libusb-config</seg>
[1039de3]195 <seg>libusb.{so,a} and libusbpp.{so,a}</seg>
[fc3e01f]196 <seg>/usr/share/doc/libusb-&libusb-version;</seg>
197 </seglistitem>
198 </segmentedlist>
[4c3474fe]199
[fc3e01f]200 <variablelist>
201 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
202 <?dbfo list-presentation="list"?>
203 <?dbhtml list-presentation="table"?>
[4c3474fe]204
[7833af6]205 <varlistentry id="libusb-config">
206 <term><command>libusb-config</command></term>
[fc3e01f]207 <listitem>
[74390482]208 <para>is a script that provides the right compiler and linker
209 flags for programs using
[fc3e01f]210 <filename class='libraryfile'>libusb</filename>.</para>
[7833af6]211 <indexterm zone="libusb libusb-config">
212 <primary sortas="b-libusb-config">libusb-config</primary>
[fc3e01f]213 </indexterm>
214 </listitem>
215 </varlistentry>
[4c3474fe]216
[fc3e01f]217 <varlistentry id="libusb-lib">
[1039de3]218 <term><filename class='libraryfile'>libusb.{so,a}</filename></term>
[fc3e01f]219 <listitem>
[74390482]220 <para> libraries contain C functions for accessing
[fc3e01f]221 USB hardware.</para>
222 <indexterm zone="libusb libusb-lib">
[1039de3]223 <primary sortas="c-libusb">libusb.{so,a}</primary>
[fc3e01f]224 </indexterm>
225 </listitem>
226 </varlistentry>
[4c3474fe]227
[fc3e01f]228 </variablelist>
229
230 </sect2>
[bdf5806e]231
232</sect1>
Note: See TracBrowser for help on using the repository browser.