source: general/genlib/libusb.xml@ 9c87711

11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since 9c87711 was 3f2db3a6, checked in by Pierre Labastie <pierre.labastie@…>, 19 months ago

Remove sect1info tags

They only contain a date tag that is nowhere used.

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