source: general/genlib/libusb.xml@ 6722219

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 6722219 was 6722219, checked in by Randy McMurchy <randy@…>, 18 years ago

Added new package Graphviz-2.8 to BLFS

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

  • Property mode set to 100644
File size: 7.4 KB
Line 
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 "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)">
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="ftpdir">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</bridgehead>
64 <para role="optional"><xref linkend="pkgconfig"/></para>
65
66 <bridgehead renderas="sect4">Optional
67 (Required to Build the HTML User Manual)</bridgehead>
68 <para role="optional"><xref linkend="openjade"/> and
69 <ulink url="http://www.docbook.org/sgml/4.2/index.html"> DocBOOK SGML
70 DTD-4.2</ulink></para>
71
72 <bridgehead renderas="sect4">Optional
73 (Required to Build the API Documentation)</bridgehead>
74 <para role="optional"><xref linkend="doxygen"/> and
75 <xref linkend="graphviz"/></para>
76
77 <para condition="html" role="usernotes">User Notes:
78 <ulink url="&blfs-wiki;/libusb"/></para>
79
80 </sect2>
81
82 <sect2 role="installation">
83 <title>Installation of libusb</title>
84
85 <para>Install <application>libusb</application> by running the following
86 commands:</para>
87
88<screen><userinput>./configure --prefix=/usr --disable-build-docs &amp;&amp;
89make</userinput></screen>
90
91 <para>If you wish to build the API documentation (see the required
92 dependencies), issue the following command:</para>
93
94<screen><userinput>make apidox</userinput></screen>
95
96 <para>To test the results, issue <command>make -k check</command>.</para>
97
98 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
99
100<screen role="root"><userinput>make install</userinput></screen>
101
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>
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
111 <para>If you built the API documentation, install it using the following
112 commands as the <systemitem class="username">root</systemitem> user:</para>
113
114<screen role="root"><userinput>install -v -d -m755 /usr/share/doc/libusb-&libusb-version;/apidocs &amp;&amp;
115install -v -m644 apidocs/html/* \
116 /usr/share/doc/libusb-&libusb-version;/apidocs</userinput></screen>
117
118 </sect2>
119
120 <sect2 role="commands">
121 <title>Command Explanations</title>
122
123 <para><parameter>--disable-build-docs</parameter>: This switch avoids
124 building the HTML user manual. Remove it if you have the required
125 dependencies installed and wish to build the manual.</para>
126
127 </sect2>
128
129 <sect2 role="configuration">
130 <title>Configuring Libusb</title>
131
132 <para><application>libusb</application> requires the
133 <systemitem class="filesystem">usbfs</systemitem> kernel filesystem
134 to be mounted on <filename class="directory">/proc/bus/usb</filename>.
135 Applications require the files in this directory to be accessible to the user,
136 sometimes for both reading and writing. To restrict access to USB devices,
137 ensure the <systemitem class="filesystem">usb</systemitem> group exits
138 on your system. If necessary, create the <systemitem
139 class="filesystem">usb</systemitem> group using the following command:</para>
140
141<screen role='root'><userinput>groupadd -g 14 usb</userinput></screen>
142
143 <para id="libusb-kernel">Ensure that you have compiled the <quote>USB device
144 filesystem</quote> directly into the kernel or compiled it as a module
145 (listing the resulting <quote>usbcore</quote> module in the
146 <filename>/etc/sysconfig/modules</filename> file). You should also have an
147 entry similar to the line below in your <filename>/etc/fstab</filename>
148 file:</para>
149
150 <indexterm zone="libusb libusb-kernel">
151 <primary sortas="d-USB-device-filesystem">USB device filesystem</primary>
152 </indexterm>
153
154<screen><literal>usbfs /proc/bus/usb usbfs devgid=14,devmode=0660 0 0</literal></screen>
155
156 </sect2>
157
158 <sect2 role="content">
159 <title>Contents</title>
160
161 <segmentedlist>
162 <segtitle>Installed Program</segtitle>
163 <segtitle>Installed Libraries</segtitle>
164 <segtitle>Installed Directory</segtitle>
165
166 <seglistitem>
167 <seg>usb-config</seg>
168 <seg>libusb.{so,a} and libusbpp.{so,a}</seg>
169 <seg>/usr/share/doc/libusb-&libusb-version;</seg>
170 </seglistitem>
171 </segmentedlist>
172
173 <variablelist>
174 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
175 <?dbfo list-presentation="list"?>
176 <?dbhtml list-presentation="table"?>
177
178 <varlistentry id="usb-config">
179 <term><command>usb-config</command></term>
180 <listitem>
181 <para>is a script that provides the right compiler and linker
182 flags for programs using
183 <filename class='libraryfile'>libusb</filename>.</para>
184 <indexterm zone="libusb usb-config">
185 <primary sortas="b-usb-config">usb-config</primary>
186 </indexterm>
187 </listitem>
188 </varlistentry>
189
190 <varlistentry id="libusb-lib">
191 <term><filename class='libraryfile'>libusb.{so,a}</filename></term>
192 <listitem>
193 <para> libraries contain C functions for accessing
194 USB hardware.</para>
195 <indexterm zone="libusb libusb-lib">
196 <primary sortas="c-libusb">libusb.{so,a}</primary>
197 </indexterm>
198 </listitem>
199 </varlistentry>
200
201 </variablelist>
202
203 </sect2>
204
205</sect1>
Note: See TracBrowser for help on using the repository browser.