mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-24 23:32:12 +08:00
5380ca3c3b
Tag most of General Libraries and dependencies git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@22709 af4574ff-66df-0310-9fd7-8a98e5e911e0
211 lines
5.7 KiB
XML
211 lines
5.7 KiB
XML
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
%general-entities;
|
|
|
|
<!ENTITY libusb-download-http "https://github.com//libusb/libusb/releases/download/v&libusb-version;/libusb-&libusb-version;.tar.bz2">
|
|
<!ENTITY libusb-download-ftp " ">
|
|
<!ENTITY libusb-md5sum "1e29700f6a134766d32b36b8d1d61a95">
|
|
<!ENTITY libusb-size "592 KB">
|
|
<!ENTITY libusb-buildsize "6.4 MB">
|
|
<!ENTITY libusb-time "less than 0.1 SBU">
|
|
]>
|
|
|
|
<sect1 id="libusb" xreflabel="libusb-&libusb-version;">
|
|
<?dbhtml filename="libusb.html"?>
|
|
|
|
<sect1info>
|
|
<othername>$LastChangedBy$</othername>
|
|
<date>$Date$</date>
|
|
</sect1info>
|
|
|
|
<title>libusb-&libusb-version;</title>
|
|
|
|
<indexterm zone="libusb">
|
|
<primary sortas="a-libusb">libusb</primary>
|
|
</indexterm>
|
|
|
|
<sect2 role="package">
|
|
<title>Introduction to libusb</title>
|
|
|
|
<para>
|
|
The <application>libusb</application> package contains a library
|
|
used by some applications for USB device access.
|
|
</para>
|
|
|
|
&lfs91_checked;
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
<itemizedlist spacing="compact">
|
|
<listitem>
|
|
<para>
|
|
Download (HTTP): <ulink url="&libusb-download-http;"/>
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Download (FTP): <ulink url="&libusb-download-ftp;"/>
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Download MD5 sum: &libusb-md5sum;
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Download size: &libusb-size;
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Estimated disk space required: &libusb-buildsize;
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Estimated build time: &libusb-time;
|
|
</para>
|
|
</listitem>
|
|
</itemizedlist>
|
|
|
|
<bridgehead renderas="sect3">libusb Dependencies</bridgehead>
|
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
|
<para role="optional">
|
|
<xref linkend="doxygen"/>
|
|
</para>
|
|
|
|
<para condition="html" role="usernotes">User Notes:
|
|
<ulink url="&blfs-wiki;/libusb"/>
|
|
</para>
|
|
</sect2>
|
|
|
|
<sect2 role="installation">
|
|
<title>Installation of libusb</title>
|
|
|
|
<note>
|
|
<para>
|
|
This package does not support parallel build.
|
|
</para>
|
|
</note>
|
|
|
|
<para>
|
|
Install <application>libusb</application> by running the following
|
|
commands:
|
|
</para>
|
|
|
|
<screen><userinput>sed -i "s/^PROJECT_LOGO/#&/" doc/doxygen.cfg.in &&
|
|
|
|
./configure --prefix=/usr --disable-static &&
|
|
make -j1</userinput></screen>
|
|
|
|
<para>
|
|
If <application>Doxygen</application> is installed and you wish to
|
|
build the API documentation, issue the following command:
|
|
</para>
|
|
|
|
<screen remap="doc"><userinput>make -C doc docs</userinput></screen>
|
|
|
|
<para>
|
|
This package does not come with a test suite.
|
|
</para>
|
|
|
|
<para>
|
|
Now, as the <systemitem class="username">root</systemitem> user:
|
|
</para>
|
|
|
|
<screen role="root"><userinput>make install</userinput></screen>
|
|
|
|
<para>
|
|
If you built the API documentation, install it using the following
|
|
commands as the <systemitem class="username">root</systemitem> user:
|
|
</para>
|
|
|
|
<screen role="root"
|
|
remap="doc"><userinput>install -v -d -m755 /usr/share/doc/libusb-&libusb-version;/apidocs &&
|
|
install -v -m644 doc/html/* \
|
|
/usr/share/doc/libusb-&libusb-version;/apidocs</userinput></screen>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="commands">
|
|
<title>Command Explanations</title>
|
|
|
|
<para>
|
|
<command>sed -i ...</command>: This sed prevents a warning when
|
|
building the documentation.
|
|
</para>
|
|
</sect2>
|
|
|
|
<sect2 role="configuration">
|
|
<title>Configuring Libusb</title>
|
|
|
|
<para id="libusb-kernel">
|
|
To access raw USB devices (those not treated as a disk by the mass-storage
|
|
driver), appropriate support must be available in the kernel. Check your
|
|
kernel configuration:
|
|
</para>
|
|
|
|
<screen><literal>Device Drivers --->
|
|
[*] USB support ---> [CONFIG_USB_SUPPORT]
|
|
<*/M> Support for Host-side USB [CONFIG_USB]
|
|
(Select any USB hardware device drivers you may need on the same page)</literal></screen>
|
|
|
|
<indexterm zone="libusb libusb-kernel">
|
|
<primary sortas="d-USB-device-filesystem">Support for Host-side USB</primary>
|
|
</indexterm>
|
|
|
|
<para>
|
|
For more details on setting up USB devices, see <xref
|
|
linkend="usb-device-issues"/>.
|
|
</para>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="content">
|
|
<title>Contents</title>
|
|
|
|
<segmentedlist>
|
|
<segtitle>Installed Programs</segtitle>
|
|
<segtitle>Installed Library</segtitle>
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
<seglistitem>
|
|
<seg>
|
|
None
|
|
</seg>
|
|
<seg>
|
|
libusb-1.0.so
|
|
</seg>
|
|
<seg>
|
|
/usr/include/libusb-1.0 and
|
|
/usr/share/doc/libusb-&libusb-version;
|
|
</seg>
|
|
</seglistitem>
|
|
</segmentedlist>
|
|
|
|
<variablelist>
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
<?dbfo list-presentation="list"?>
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
<varlistentry id="libusb-lib">
|
|
<term><filename class='libraryfile'>libusb-1.0.so</filename></term>
|
|
<listitem>
|
|
<para>
|
|
contains API functions used for accessing USB hardware.
|
|
</para>
|
|
<indexterm zone="libusb libusb-lib">
|
|
<primary sortas="c-libusb">libusb-1.0.so</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</sect2>
|
|
|
|
</sect1>
|