[52d29f7] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[52d29f7] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[51718d1] | 7 | <!ENTITY libusb-download-http "https://github.com/libusb/libusb/releases/download/v&libusb-version;/libusb-&libusb-version;.tar.bz2">
|
---|
[bb30c5b] | 8 | <!ENTITY libusb-download-ftp " ">
|
---|
[5155c4d] | 9 | <!ENTITY libusb-md5sum "9c75660dfe1d659387c37b28c91e3160">
|
---|
| 10 | <!ENTITY libusb-size "608 KB">
|
---|
| 11 | <!ENTITY libusb-buildsize "5.8 MB">
|
---|
[0172b27] | 12 | <!ENTITY libusb-time "less than 0.1 SBU">
|
---|
[52d29f7] | 13 | ]>
|
---|
| 14 |
|
---|
[bdf5806e] | 15 | <sect1 id="libusb" xreflabel="libusb-&libusb-version;">
|
---|
[fc3e01f] | 16 | <?dbhtml filename="libusb.html"?>
|
---|
[4c3474fe] | 17 |
|
---|
[fc3e01f] | 18 | <sect1info>
|
---|
| 19 | <date>$Date$</date>
|
---|
| 20 | </sect1info>
|
---|
[4c3474fe] | 21 |
|
---|
[1f3b7a7] | 22 | <title>libusb-&libusb-version;</title>
|
---|
[4c3474fe] | 23 |
|
---|
[fc3e01f] | 24 | <indexterm zone="libusb">
|
---|
[bb30c5b] | 25 | <primary sortas="a-libusb">libusb</primary>
|
---|
[fc3e01f] | 26 | </indexterm>
|
---|
| 27 |
|
---|
| 28 | <sect2 role="package">
|
---|
[1f3b7a7] | 29 | <title>Introduction to libusb</title>
|
---|
[4c3474fe] | 30 |
|
---|
[bb30c5b] | 31 | <para>
|
---|
| 32 | The <application>libusb</application> package contains a library
|
---|
| 33 | used by some applications for USB device access.
|
---|
| 34 | </para>
|
---|
[4c3474fe] | 35 |
|
---|
[03a2986] | 36 | &lfs111_checked;
|
---|
[8c15e4c] | 37 |
|
---|
[fc3e01f] | 38 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 39 | <itemizedlist spacing="compact">
|
---|
| 40 | <listitem>
|
---|
[bb30c5b] | 41 | <para>
|
---|
| 42 | Download (HTTP): <ulink url="&libusb-download-http;"/>
|
---|
| 43 | </para>
|
---|
[fc3e01f] | 44 | </listitem>
|
---|
| 45 | <listitem>
|
---|
[bb30c5b] | 46 | <para>
|
---|
| 47 | Download (FTP): <ulink url="&libusb-download-ftp;"/>
|
---|
| 48 | </para>
|
---|
[fc3e01f] | 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
[bb30c5b] | 51 | <para>
|
---|
| 52 | Download MD5 sum: &libusb-md5sum;
|
---|
| 53 | </para>
|
---|
[fc3e01f] | 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
[bb30c5b] | 56 | <para>
|
---|
| 57 | Download size: &libusb-size;
|
---|
| 58 | </para>
|
---|
[fc3e01f] | 59 | </listitem>
|
---|
| 60 | <listitem>
|
---|
[bb30c5b] | 61 | <para>
|
---|
| 62 | Estimated disk space required: &libusb-buildsize;
|
---|
| 63 | </para>
|
---|
[fc3e01f] | 64 | </listitem>
|
---|
| 65 | <listitem>
|
---|
[bb30c5b] | 66 | <para>
|
---|
| 67 | Estimated build time: &libusb-time;
|
---|
| 68 | </para>
|
---|
[fc3e01f] | 69 | </listitem>
|
---|
| 70 | </itemizedlist>
|
---|
[4c3474fe] | 71 |
|
---|
[1f3b7a7] | 72 | <bridgehead renderas="sect3">libusb Dependencies</bridgehead>
|
---|
[4c3474fe] | 73 |
|
---|
[bb30c5b] | 74 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 75 | <para role="optional">
|
---|
| 76 | <xref linkend="doxygen"/>
|
---|
| 77 | </para>
|
---|
[4c3474fe] | 78 |
|
---|
[1039de3] | 79 | <para condition="html" role="usernotes">User Notes:
|
---|
[bb30c5b] | 80 | <ulink url="&blfs-wiki;/libusb"/>
|
---|
| 81 | </para>
|
---|
[fc3e01f] | 82 | </sect2>
|
---|
[4c3474fe] | 83 |
|
---|
[fc3e01f] | 84 | <sect2 role="installation">
|
---|
[1f3b7a7] | 85 | <title>Installation of libusb</title>
|
---|
[fc3e01f] | 86 |
|
---|
[bb30c5b] | 87 | <para>
|
---|
| 88 | Install <application>libusb</application> by running the following
|
---|
| 89 | commands:
|
---|
| 90 | </para>
|
---|
[fc3e01f] | 91 |
|
---|
[6aa48d38] | 92 | <screen><userinput>./configure --prefix=/usr --disable-static &&
|
---|
| 93 | make</userinput></screen>
|
---|
[fc3e01f] | 94 |
|
---|
[bb30c5b] | 95 | <para>
|
---|
| 96 | If <application>Doxygen</application> is installed and you wish to
|
---|
[5155c4d] | 97 | build the API documentation, issue the following commands:
|
---|
[bb30c5b] | 98 | </para>
|
---|
[fc3e01f] | 99 |
|
---|
[5155c4d] | 100 | <screen remap="doc"><userinput>pushd doc &&
|
---|
| 101 | doxygen -u doxygen.cfg &&
|
---|
| 102 | make docs &&
|
---|
| 103 | popd</userinput></screen>
|
---|
[4c3474fe] | 104 |
|
---|
[bb30c5b] | 105 | <para>
|
---|
| 106 | This package does not come with a test suite.
|
---|
| 107 | </para>
|
---|
[1f3b7a7] | 108 |
|
---|
[bb30c5b] | 109 | <para>
|
---|
| 110 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 111 | </para>
|
---|
[4c3474fe] | 112 |
|
---|
[fc3e01f] | 113 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 114 |
|
---|
[bb30c5b] | 115 | <para>
|
---|
| 116 | If you built the API documentation, install it using the following
|
---|
| 117 | commands as the <systemitem class="username">root</systemitem> user:
|
---|
| 118 | </para>
|
---|
[fc3e01f] | 119 |
|
---|
[a42c273] | 120 | <screen role="root"
|
---|
| 121 | remap="doc"><userinput>install -v -d -m755 /usr/share/doc/libusb-&libusb-version;/apidocs &&
|
---|
[370e9ba] | 122 | install -v -m644 doc/api-1.0/* \
|
---|
[d6fd371] | 123 | /usr/share/doc/libusb-&libusb-version;/apidocs</userinput></screen>
|
---|
[4c3474fe] | 124 |
|
---|
[fc3e01f] | 125 | </sect2>
|
---|
[5155c4d] | 126 | <!--
|
---|
[0172b27] | 127 | <sect2 role="commands">
|
---|
| 128 | <title>Command Explanations</title>
|
---|
| 129 |
|
---|
| 130 | <para>
|
---|
[8558044] | 131 | <command>sed -i ...</command>: This sed prevents some warnings when
|
---|
[0172b27] | 132 | building the documentation.
|
---|
| 133 | </para>
|
---|
| 134 | </sect2>
|
---|
[5155c4d] | 135 | -->
|
---|
[fc3e01f] | 136 | <sect2 role="configuration">
|
---|
| 137 | <title>Configuring Libusb</title>
|
---|
| 138 |
|
---|
[bb30c5b] | 139 | <para id="libusb-kernel">
|
---|
| 140 | To access raw USB devices (those not treated as a disk by the mass-storage
|
---|
| 141 | driver), appropriate support must be available in the kernel. Check your
|
---|
[38155d1] | 142 | kernel configuration:
|
---|
[bb30c5b] | 143 | </para>
|
---|
[9f12e36] | 144 |
|
---|
[38155d1] | 145 | <screen><literal>Device Drivers --->
|
---|
| 146 | [*] USB support ---> [CONFIG_USB_SUPPORT]
|
---|
| 147 | <*/M> Support for Host-side USB [CONFIG_USB]
|
---|
| 148 | (Select any USB hardware device drivers you may need on the same page)</literal></screen>
|
---|
| 149 |
|
---|
[fc3e01f] | 150 | <indexterm zone="libusb libusb-kernel">
|
---|
[bb30c5b] | 151 | <primary sortas="d-USB-device-filesystem">Support for Host-side USB</primary>
|
---|
[fc3e01f] | 152 | </indexterm>
|
---|
[9f12e36] | 153 |
|
---|
[bb30c5b] | 154 | <para>
|
---|
| 155 | For more details on setting up USB devices, see <xref
|
---|
| 156 | linkend="usb-device-issues"/>.
|
---|
| 157 | </para>
|
---|
| 158 |
|
---|
[fc3e01f] | 159 | </sect2>
|
---|
[4c3474fe] | 160 |
|
---|
[fc3e01f] | 161 | <sect2 role="content">
|
---|
| 162 | <title>Contents</title>
|
---|
| 163 |
|
---|
| 164 | <segmentedlist>
|
---|
[c3c56b2] | 165 | <segtitle>Installed Programs</segtitle>
|
---|
[aff3caf0] | 166 | <segtitle>Installed Library</segtitle>
|
---|
[4ee3a30] | 167 | <segtitle>Installed Directories</segtitle>
|
---|
[4c3474fe] | 168 |
|
---|
[fc3e01f] | 169 | <seglistitem>
|
---|
[c3c56b2] | 170 | <seg>
|
---|
| 171 | None
|
---|
| 172 | </seg>
|
---|
[bb30c5b] | 173 | <seg>
|
---|
| 174 | libusb-1.0.so
|
---|
| 175 | </seg>
|
---|
| 176 | <seg>
|
---|
| 177 | /usr/include/libusb-1.0 and
|
---|
| 178 | /usr/share/doc/libusb-&libusb-version;
|
---|
| 179 | </seg>
|
---|
[fc3e01f] | 180 | </seglistitem>
|
---|
| 181 | </segmentedlist>
|
---|
[4c3474fe] | 182 |
|
---|
[fc3e01f] | 183 | <variablelist>
|
---|
| 184 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 185 | <?dbfo list-presentation="list"?>
|
---|
| 186 | <?dbhtml list-presentation="table"?>
|
---|
[4c3474fe] | 187 |
|
---|
[fc3e01f] | 188 | <varlistentry id="libusb-lib">
|
---|
[4c24eb0a] | 189 | <term><filename class="libraryfile">libusb-1.0.so</filename></term>
|
---|
[fc3e01f] | 190 | <listitem>
|
---|
[bb30c5b] | 191 | <para>
|
---|
[4c24eb0a] | 192 | contains API functions used for accessing USB hardware
|
---|
[bb30c5b] | 193 | </para>
|
---|
[fc3e01f] | 194 | <indexterm zone="libusb libusb-lib">
|
---|
[bb30c5b] | 195 | <primary sortas="c-libusb">libusb-1.0.so</primary>
|
---|
[fc3e01f] | 196 | </indexterm>
|
---|
| 197 | </listitem>
|
---|
| 198 | </varlistentry>
|
---|
[4c3474fe] | 199 |
|
---|
[fc3e01f] | 200 | </variablelist>
|
---|
| 201 |
|
---|
| 202 | </sect2>
|
---|
[bdf5806e] | 203 |
|
---|
| 204 | </sect1>
|
---|