glfs/general/genlib/libusb.xml
Pierre Labastie a2c3ec7901 GCC 6 tags
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@17334 af4574ff-66df-0310-9fd7-8a98e5e911e0
2016-05-07 20:01:40 +00:00

199 lines
5.4 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 "&sourceforge-repo;/libusb/libusb-&libusb-version;.tar.bz2">
<!ENTITY libusb-download-ftp " ">
<!ENTITY libusb-md5sum "1d4eb194eaaa2bcfbba28102768c7dbf">
<!ENTITY libusb-size "777 KB">
<!ENTITY libusb-buildsize "7.6 MB (additional 2.8 MB for API documentation)">
<!ENTITY libusb-time "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>
&lfs79_checked;&gcc6_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>./configure --prefix=/usr --disable-static &amp;&amp;
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><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"><userinput>install -v -d -m755 /usr/share/doc/libusb-&libusb-version;/apidocs &amp;&amp;
install -v -m644 doc/html/* \
/usr/share/doc/libusb-&libusb-version;/apidocs</userinput></screen>
</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 ---&gt;
[*] USB support ---&gt; [CONFIG_USB_SUPPORT]
&lt;*/M&gt; 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>