source: general/genlib/libusb.xml@ 5cd0959d

10.0 10.1 11.0 11.1 11.2 6.0 6.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 krejzi/svn lazarus nosym perl-modules plabs/python-mods qt5new systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/soup3 xry111/test-20220226
Last change on this file since 5cd0959d was 5cd0959d, checked in by Archaic <archaic@…>, 18 years ago

Resetting keywords

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

  • Property mode set to 100644
File size: 5.5 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
3 "http://www.oasis-open.org/docbook/xml/4.3/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-size "314 KB">
10<!ENTITY libusb-buildsize "2.1 MB">
11<!ENTITY libusb-time "0.03 SBU">
12
13]>
14
15<sect1 id="libusb" xreflabel="libusb-&libusb-version;">
16<sect1info>
17<othername>$LastChangedBy$</othername>
18<date>$Date$</date>
19</sect1info>
20<?dbhtml filename="libusb.html"?>
21<title>libusb-&libusb-version;</title>
22
23<sect2>
24<title>Introduction to <application>libusb</application></title>
25
26<para>The <application>libusb</application> package contains a library
27used by some applications for <acronym>USB</acronym> device access.</para>
28
29<sect3><title>Package information</title>
30<itemizedlist spacing='compact'>
31<listitem><para>Download (HTTP): <ulink url="&libusb-download-http;"/></para></listitem>
32<listitem><para>Download (FTP): <ulink url="&libusb-download-ftp;"/></para></listitem>
33<listitem><para>Download size: &libusb-size;</para></listitem>
34<listitem><para>Estimated Disk space required: &libusb-buildsize;</para></listitem>
35<listitem><para>Estimated build time: &libusb-time;</para></listitem></itemizedlist>
36</sect3>
37
38<sect3><title><application>libusb</application> dependencies</title>
39<sect4><title>Optional</title>
40<para><xref linkend="openjade"/> and <xref linkend="sgml-dtd-3"/></para></sect4>
41</sect3>
42
43</sect2>
44
45<sect2>
46<title>Installation of <application>libusb</application></title>
47
48<para>Install <application>libusb</application> by running the following commands:</para>
49
50<screen><userinput><command>./configure --prefix=/usr --disable-build-docs &amp;&amp;
51make &amp;&amp;
52make install</command></userinput></screen>
53
54</sect2>
55
56<sect2>
57<title>Command explanations</title>
58
59<para><parameter>--disable-build-docs</parameter>: This switch turns off
60the default enabled building of documentation since it requires
61<application>OpenJade</application>.</para>
62</sect2>
63
64<sect2>
65<title>Configuring <application>libusb</application></title>
66
67<!-- To be reviewed when hotplug enters the LFS book -->
68
69<para>libusb requires the usbfs kernel filesystem to be mounted on
70<filename class="directory">/proc/bus/usb</filename>. Applications
71require the files in this directory to be accessible to the user,
72sometimes for both reading and writing.</para>
73
74<para>To restrict access to <acronym>USB</acronym> devices, create the
75usb group:</para>
76
77<screen><userinput><command>groupadd -g 15 usb</command></userinput></screen>
78
79<para>To get usbfs mounted on boot, we will create a special init script,
80because just putting an extra line into
81<filename>/etc/fstab</filename> does not work for those who compiled
82"USB device filesystem" as a kernel module.
83Install <filename>/etc/rc.d/init.d/usb</filename>
84init script included in the
85<xref linkend="intro-important-bootscripts"/> package.</para>
86
87
88<screen><userinput><command>make install-usb</command></userinput></screen>
89
90</sect2>
91
92<sect2>
93<title>Contents</title>
94
95<para>The <application>libusb</application> package contains
96<filename class="libraryfile">libusb</filename> libraries,
97the <filename>/usr/include/usb.h</filename> header,
98and a <command>usb-config</command> script.</para>
99
100</sect2>
101
102<sect2><title>Description</title>
103
104<sect3><title>libusb libraries</title>
105<para><filename class="libraryfile">libusb</filename> libraries contain C functions for
106accessing <acronym>USB</acronym> hardware.</para></sect3>
107
108<sect3><title>usb-config</title>
109<para>The <command>usb-config</command> script provides the right
110compiler and linker flags for programs using
111this library.</para></sect3>
112
113</sect2>
114
115</sect1>
116
Note: See TracBrowser for help on using the repository browser.