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