[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 |
|
---|
[ff0a4dc] | 7 | <!ENTITY libusb-download-http "&sourceforge-repo;/libusb/libusb-&libusb-version;.tar.bz2">
|
---|
[bb30c5b] | 8 | <!ENTITY libusb-download-ftp " ">
|
---|
[54ad89b] | 9 | <!ENTITY libusb-md5sum "f9e2bb5879968467e5ca756cb4e1fa7e">
|
---|
| 10 | <!ENTITY libusb-size "512 KB">
|
---|
| 11 | <!ENTITY libusb-buildsize "7.3 MB (additional 2.8 MB for API documentation)">
|
---|
[4ee3a30] | 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 |
|
---|
[ff204822] | 37 | &lfs76_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 |
|
---|
[bb30c5b] | 88 | <para>
|
---|
| 89 | Install <application>libusb</application> by running the following
|
---|
| 90 | commands:
|
---|
| 91 | </para>
|
---|
[fc3e01f] | 92 |
|
---|
[ff204822] | 93 | <screen><userinput>sed -i "s:PROJECT_LOGO:#PROJECT_LOGO:g" -i doc/doxygen.cfg.in &&
|
---|
[f59eaba] | 94 | ./configure --prefix=/usr --disable-static &&
|
---|
[fc3e01f] | 95 | make</userinput></screen>
|
---|
| 96 |
|
---|
[bb30c5b] | 97 | <para>
|
---|
| 98 | If <application>Doxygen</application> is installed and you wish to
|
---|
| 99 | build the API documentation, issue the following command:
|
---|
| 100 | </para>
|
---|
[fc3e01f] | 101 |
|
---|
[bb30c5b] | 102 | <screen><userinput>make -C doc docs</userinput></screen>
|
---|
[4c3474fe] | 103 |
|
---|
[bb30c5b] | 104 | <para>
|
---|
| 105 | This package does not come with a test suite.
|
---|
| 106 | </para>
|
---|
[1f3b7a7] | 107 |
|
---|
[bb30c5b] | 108 | <para>
|
---|
| 109 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 110 | </para>
|
---|
[4c3474fe] | 111 |
|
---|
[fc3e01f] | 112 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 113 |
|
---|
[bb30c5b] | 114 | <para>
|
---|
| 115 | If you built the API documentation, install it using the following
|
---|
| 116 | commands as the <systemitem class="username">root</systemitem> user:
|
---|
| 117 | </para>
|
---|
[fc3e01f] | 118 |
|
---|
| 119 | <screen role="root"><userinput>install -v -d -m755 /usr/share/doc/libusb-&libusb-version;/apidocs &&
|
---|
[d6fd371] | 120 | install -v -m644 doc/html/* \
|
---|
| 121 | /usr/share/doc/libusb-&libusb-version;/apidocs</userinput></screen>
|
---|
[4c3474fe] | 122 |
|
---|
[fc3e01f] | 123 | </sect2>
|
---|
[4c3474fe] | 124 |
|
---|
[58fb69a] | 125 | <sect2 role="commands">
|
---|
| 126 | <title>Command Explanations</title>
|
---|
| 127 |
|
---|
| 128 | <para>
|
---|
| 129 | <command>sed -i "s:PROJECT_LOGO:#PROJECT_LOGO:g" ...</command>: This <command>sed</command>
|
---|
| 130 | fixes building of the documentation.
|
---|
| 131 | </para>
|
---|
| 132 |
|
---|
| 133 | </sect2>
|
---|
| 134 |
|
---|
[fc3e01f] | 135 | <sect2 role="configuration">
|
---|
| 136 | <title>Configuring Libusb</title>
|
---|
| 137 |
|
---|
[bb30c5b] | 138 | <para id="libusb-kernel">
|
---|
| 139 | To access raw USB devices (those not treated as a disk by the mass-storage
|
---|
| 140 | driver), appropriate support must be available in the kernel. Check your
|
---|
| 141 | kernel configuration for Device Drivers ⇒ USB support ⇒ Support
|
---|
| 142 | for Host-side USB. Select any USB hardware device drivers you may need
|
---|
| 143 | on the same page.
|
---|
| 144 | </para>
|
---|
[9f12e36] | 145 |
|
---|
[fc3e01f] | 146 | <indexterm zone="libusb libusb-kernel">
|
---|
[bb30c5b] | 147 | <primary sortas="d-USB-device-filesystem">Support for Host-side USB</primary>
|
---|
[fc3e01f] | 148 | </indexterm>
|
---|
[9f12e36] | 149 |
|
---|
[bb30c5b] | 150 | <para>
|
---|
| 151 | For more details on setting up USB devices, see <xref
|
---|
| 152 | linkend="usb-device-issues"/>.
|
---|
| 153 | </para>
|
---|
| 154 |
|
---|
[fc3e01f] | 155 | </sect2>
|
---|
[4c3474fe] | 156 |
|
---|
[fc3e01f] | 157 | <sect2 role="content">
|
---|
| 158 | <title>Contents</title>
|
---|
| 159 |
|
---|
| 160 | <segmentedlist>
|
---|
[c3c56b2] | 161 | <segtitle>Installed Programs</segtitle>
|
---|
[aff3caf0] | 162 | <segtitle>Installed Library</segtitle>
|
---|
[4ee3a30] | 163 | <segtitle>Installed Directories</segtitle>
|
---|
[4c3474fe] | 164 |
|
---|
[fc3e01f] | 165 | <seglistitem>
|
---|
[c3c56b2] | 166 | <seg>
|
---|
| 167 | None
|
---|
| 168 | </seg>
|
---|
[bb30c5b] | 169 | <seg>
|
---|
| 170 | libusb-1.0.so
|
---|
| 171 | </seg>
|
---|
| 172 | <seg>
|
---|
| 173 | /usr/include/libusb-1.0 and
|
---|
| 174 | /usr/share/doc/libusb-&libusb-version;
|
---|
| 175 | </seg>
|
---|
[fc3e01f] | 176 | </seglistitem>
|
---|
| 177 | </segmentedlist>
|
---|
[4c3474fe] | 178 |
|
---|
[fc3e01f] | 179 | <variablelist>
|
---|
| 180 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 181 | <?dbfo list-presentation="list"?>
|
---|
| 182 | <?dbhtml list-presentation="table"?>
|
---|
[4c3474fe] | 183 |
|
---|
[fc3e01f] | 184 | <varlistentry id="libusb-lib">
|
---|
[bb30c5b] | 185 | <term><filename class='libraryfile'>libusb-1.0.so</filename></term>
|
---|
[fc3e01f] | 186 | <listitem>
|
---|
[bb30c5b] | 187 | <para>
|
---|
| 188 | contains API functions used for accessing USB hardware.
|
---|
| 189 | </para>
|
---|
[fc3e01f] | 190 | <indexterm zone="libusb libusb-lib">
|
---|
[bb30c5b] | 191 | <primary sortas="c-libusb">libusb-1.0.so</primary>
|
---|
[fc3e01f] | 192 | </indexterm>
|
---|
| 193 | </listitem>
|
---|
| 194 | </varlistentry>
|
---|
[4c3474fe] | 195 |
|
---|
[fc3e01f] | 196 | </variablelist>
|
---|
| 197 |
|
---|
| 198 | </sect2>
|
---|
[bdf5806e] | 199 |
|
---|
| 200 | </sect1>
|
---|