Changeset fa0eb91a
- Timestamp:
- 01/28/2005 03:01:04 AM (20 years ago)
- Branches:
- 10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 12.2, 6.0, 6.1, 6.2, 6.2.0, 6.2.0-rc1, 6.2.0-rc2, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gimp3, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/for-12.3, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/spidermonkey128, xry111/test-20220226, xry111/xf86-video-removal
- Children:
- a1dd01c
- Parents:
- a56c29d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
general/genlib/libusb.xml
ra56c29d rfa0eb91a 8 8 <!ENTITY libusb-download-ftp " "> 9 9 <!ENTITY libusb-size "314 KB"> 10 <!ENTITY libusb-buildsize " 2.1 MB">11 <!ENTITY libusb-time "0. 03SBU">10 <!ENTITY libusb-buildsize "4.5 MB (includes HTML documentation installation)"> 11 <!ENTITY libusb-time "0.25 SBU"> 12 12 ]> 13 13 … … 19 19 <?dbhtml filename="libusb.html"?> 20 20 <title>libusb-&libusb-version;</title> 21 <indexterm zone="libusb"> 22 <primary sortas="a-Libusb">Libusb</primary> 23 </indexterm> 21 24 22 25 <sect2> … … 28 31 <sect3><title>Package information</title> 29 32 <itemizedlist spacing='compact'> 30 <listitem><para>Download (HTTP): <ulink url="&libusb-download-http;"/></para></listitem> 31 <listitem><para>Download (FTP): <ulink url="&libusb-download-ftp;"/></para></listitem> 32 <listitem><para>Download size: &libusb-size;</para></listitem> 33 <listitem><para>Estimated disk space required: &libusb-buildsize;</para></listitem> 34 <listitem><para>Estimated build time: &libusb-time;</para></listitem></itemizedlist> 33 <listitem><para>Download (HTTP): 34 <ulink url="&libusb-download-http;"/></para></listitem> 35 <listitem><para>Download (FTP): 36 <ulink url="&libusb-download-ftp;"/></para></listitem> 37 <listitem><para>Download size: 38 &libusb-size;</para></listitem> 39 <listitem><para>Estimated disk space required: 40 &libusb-buildsize;</para></listitem> 41 <listitem><para>Estimated build time: 42 &libusb-time;</para></listitem></itemizedlist> 35 43 </sect3> 36 44 37 45 <sect3><title><application>libusb</application> dependencies</title> 38 46 <sect4><title>Optional</title> 39 <para><xref linkend="openjade"/> and <xref linkend="sgml-dtd-3"/></para></sect4> 47 <para><xref linkend="openjade"/> and <xref linkend="sgml-dtd-3"/> (both 48 required to build the <acronym>HTML</acronym> documentation)</para> 49 </sect4> 40 50 </sect3> 41 51 … … 48 58 commands:</para> 49 59 50 <screen><userinput><command>./configure --prefix=/usr --disable-build-docs && 51 make && 52 make install</command></userinput></screen> 60 <screen><userinput><command>libtoolize -f && 61 autoreconf -f && 62 ./configure --prefix=/usr --disable-build-docs && 63 make</command></userinput></screen> 64 65 <para>Now, as the root user:</para> 66 67 <screen><userinput role='root'><command>make install</command></userinput></screen> 68 69 <para>If you built the <acronym>HTML</acronym> documentation, install it using 70 the following commands:</para> 71 72 <screen><userinput role='root'><command>install -v -d -m755 /usr/share/doc/libusb-&libusb-version;/html && 73 install -v -m644 doc/html/* /usr/share/doc/libusb-&libusb-version;/html</command></userinput></screen> 53 74 54 75 </sect2> … … 56 77 <sect2> 57 78 <title>Command explanations</title> 79 80 <para><command>libtoolize -f</command>: There is a mismatch in the Autotools 81 with <acronym>LFS</acronym>-6.0. This command forces the build to use the 82 system installed <command>libtool</command> tools so that the shared library 83 is created correctly.</para> 84 85 <para><command>autoreconf -f</command>: This command recreates some of the 86 Autotools, required by running <command>libtoolize</command>.</para> 58 87 59 88 <para><option>--disable-build-docs</option>: This switch avoids building the … … 63 92 the package to accomplish this:</para> 64 93 65 <screen><userinput ><command>sed -i.orig \94 <screen><userinput role='root'><command>sed -i.orig \ 66 95 -e "/CATALOG \/etc\/sgml\/OpenSP-1.5.1.cat/d" \ 67 96 /etc/sgml/catalog \ … … 80 109 using the following command:</para> 81 110 82 <screen><userinput ><command>groupadd -g 14 usb</command></userinput></screen>111 <screen><userinput role='root'><command>groupadd -g 14 usb</command></userinput></screen> 83 112 84 <!-- <para>Compiling the <quote>USB device filesystem</quote> as a kernel module is 85 not recommended. However, if you did compile it as a module, you can install an 86 init script to mount usbfs at system boot-up. An init script is included in the 87 <xref linkend="intro-important-bootscripts"/> package and is installed using 88 the following command:</para> 89 90 <screen><userinput><command>make install-usb</command></userinput></screen> --> 91 92 <para>Ensure that you have compiled the <quote>USB device filesystem</quote> 93 directly into the kernel or compiled it as a module (listing the resulting 94 <quote>usbcore</quote> module in the 113 <para id="libusb-kernel">Ensure that you have compiled the <quote>USB device 114 filesystem</quote> directly into the kernel or compiled it as a module 115 (listing the resulting <quote>usbcore</quote> module in the 95 116 <filename>/etc/sysconfig/modules</filename> file). You should also have an 96 117 entry similar to the line below in your <filename>/etc/fstab</filename> 97 118 file:</para> 119 <indexterm zone="libusb libusb-kernel"> 120 <primary sortas="d-USB-device-filesystem">USB device filesystem</primary> 121 </indexterm> 98 122 99 <screen><userinput >usbfs /proc/bus/usb usbfs devgid=14,devmode=0660 0 0</userinput></screen>123 <screen><userinput role='root'>usbfs /proc/bus/usb usbfs devgid=14,devmode=0660 0 0</userinput></screen> 100 124 101 125 </sect2> … … 104 128 <title>Contents</title> 105 129 106 < para>The <application>libusb</application> package contains107 < filename class="libraryfile">libusb</filename> libraries,108 the <filename>/usr/include/usb.h</filename> header, 109 and a <command>usb-config</command> script.</para>130 <segmentedlist> 131 <segtitle>Installed Program</segtitle> 132 <segtitle>Installed Library</segtitle> 133 <segtitle>Installed Directory</segtitle> 110 134 111 </sect2> 135 <seglistitem> 136 <seg>usb-config</seg> 137 <seg>libusb.[so,a]</seg> 138 <seg>/usr/share/doc/libusb-&libusb-version;</seg> 139 </seglistitem> 140 </segmentedlist> 112 141 113 <sect2><title>Description</title> 142 <variablelist> 143 <bridgehead renderas="sect3">Short Descriptions</bridgehead> 144 <?dbfo list-presentation="list"?> 114 145 115 <sect3><title>libusb libraries</title> 116 <para><filename class="libraryfile">libusb</filename> libraries contain C 117 functions for accessing <acronym>USB</acronym> hardware.</para></sect3> 146 <varlistentry id="usb-config"> 147 <term><command>usb-config</command></term> 148 <listitem><para>is a script that provides the right compiler and linker 149 flags for programs using 150 <filename class='libraryfile'>libusb</filename>.</para> 151 <indexterm zone="libusb usb-config"> 152 <primary sortas="b-usb-config">usb-config</primary> 153 </indexterm></listitem> 154 </varlistentry> 118 155 119 <sect3><title>usb-config</title> 120 <para>The <command>usb-config</command> script provides the right 121 compiler and linker flags for programs using this library.</para></sect3> 156 <varlistentry id="libusb-lib"> 157 <term><filename class='libraryfile'>libusb.[so,a]</filename></term> 158 <listitem><para> libraries contain C functions for accessing 159 <acronym>USB</acronym> hardware.</para> 160 <indexterm zone="libusb libusb-lib"> 161 <primary sortas="c-libusb">libusb.[so,a]</primary> 162 </indexterm></listitem> 163 </varlistentry> 164 </variablelist> 122 165 123 166 </sect2>
Note:
See TracChangeset
for help on using the changeset viewer.