source: general/genlib/libgusb.xml@ 2a89d308

12.0 12.1 kea ken/TL2024 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 2a89d308 was 91318eb, checked in by Pierre Labastie <pierre.labastie@…>, 16 months ago

Add "setup" to meson commands

I've not been very consistent on typography, but it is a start

  • Property mode set to 100644
File size: 5.6 KB
RevLine 
[d6da5da]1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
[bf565e06]7 <!ENTITY libgusb-download-http "https://github.com/hughsie/libgusb/releases/download/&libgusb-version;/libgusb-&libgusb-version;.tar.xz">
[d6da5da]8 <!ENTITY libgusb-download-ftp " ">
[b912fbb]9 <!ENTITY libgusb-md5sum "6b8dfb57b2828562ed007fc84ab6af67">
10 <!ENTITY libgusb-size "52 KB">
11 <!ENTITY libgusb-buildsize "2.6 MB (with tests)">
[e20b59be]12 <!ENTITY libgusb-time "less than 0.1 SBU (with tests)">
[d6da5da]13]>
14
15<sect1 id="libgusb" xreflabel="libgusb-&libgusb-version;">
16 <?dbhtml filename="libgusb.html"?>
17
18
19 <title>libgusb-&libgusb-version;</title>
20
21 <indexterm zone="libgusb">
22 <primary sortas="a-libgusb">libgusb</primary>
23 </indexterm>
24
25 <sect2 role="package">
26 <title>Introduction to libgusb</title>
27
28 <para>
29 The <application>libgusb</application> package contains the GObject
30 wrappers for <application>libusb-1.0</application> that makes it
31 easy to do asynchronous control, bulk and interrupt transfers with
32 proper cancellation and integration into a mainloop.
33 </para>
34
[03c0def]35 &lfs113_checked;
[d6da5da]36
37 <bridgehead renderas="sect3">Package Information</bridgehead>
38 <itemizedlist spacing="compact">
39 <listitem>
40 <para>
41 Download (HTTP): <ulink url="&libgusb-download-http;"/>
42 </para>
43 </listitem>
44 <listitem>
45 <para>
46 Download (FTP): <ulink url="&libgusb-download-ftp;"/>
47 </para>
48 </listitem>
49 <listitem>
50 <para>
51 Download MD5 sum: &libgusb-md5sum;
52 </para>
53 </listitem>
54 <listitem>
55 <para>
56 Download size: &libgusb-size;
57 </para>
58 </listitem>
59 <listitem>
60 <para>
61 Estimated disk space required: &libgusb-buildsize;
62 </para>
63 </listitem>
64 <listitem>
65 <para>
66 Estimated build time: &libgusb-time;
67 </para>
68 </listitem>
69 </itemizedlist>
70
71 <bridgehead renderas="sect3">libgusb Dependencies</bridgehead>
72
73 <bridgehead renderas="sect4">Required</bridgehead>
74 <para role="required">
[3c3e0ffb]75 <xref linkend="json-glib"/> and
[c9350821]76 <xref linkend="libusb"/>
[d6da5da]77 </para>
78
79 <bridgehead renderas="sect4">Recommended</bridgehead>
80 <para role="recommended">
[bf565e06]81 <xref linkend="gobject-introspection"/>,
[b912fbb]82 <xref linkend="umockdev"/>,
[b1092d9]83 <xref linkend="usbutils"/> (for <filename>usb.ids</filename> data file,
84 which is also required for the tests), and
[d6da5da]85 <xref linkend="vala"/>
86 </para>
87
[bf565e06]88 <bridgehead renderas="sect4">Optional</bridgehead>
89 <para role="optional">
[f56d2e7]90 <xref linkend="gi-docgen"/>
[bf565e06]91 </para>
92
[d6da5da]93 <para condition="html" role="usernotes">
94 User Notes: <ulink url="&blfs-wiki;/libgusb"/>
95 </para>
96 </sect2>
97
98 <sect2 role="installation">
99 <title>Installation of libgusb</title>
100
101 <para>
102 Install <application>libgusb</application> by running the following
103 commands:
104 </para>
105
[345c66e]106 <screen><userinput>mkdir build &amp;&amp;
[eb656edc]107cd build &amp;&amp;
[345c66e]108
[91318eb]109meson setup .. \
110 --prefix=/usr \
111 --buildtype=release \
112 -Ddocs=false &amp;&amp;
[e6bb6b7f]113ninja</userinput></screen>
114
115 <para>
116 If you have <xref linkend='gi-docgen'/> installed and wish to build
117 the API documentation for this package, issue:
118 </para>
119
120<screen role='nodump'><userinput>sed "/output: 'libgusb'/s/'\$/-0.4.5'/" -i ../docs/meson.build &amp;&amp;
121meson configure -Ddocs=true &amp;&amp;
[345c66e]122ninja</userinput></screen>
[d6da5da]123
124 <para>
[345c66e]125 To test the results, issue: <command>ninja test</command>.
[d6da5da]126 </para>
127
128 <para>
129 Now, as the <systemitem class="username">root</systemitem> user:
130 </para>
131
[345c66e]132<screen role="root"><userinput>ninja install</userinput></screen>
[d6da5da]133 </sect2>
[f10c288]134
[d6da5da]135 <sect2 role="commands">
136 <title>Command Explanations</title>
137
[20f070d8]138 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
139 href="../../xincludes/meson-buildtype-release.xml"/>
140
[f10c288]141 <para>
[e6bb6b7f]142 <parameter>-Ddocs=false</parameter>: &gi-doc-disable;
[f10c288]143 </para>
[d6da5da]144
145 </sect2>
[f10c288]146
[d6da5da]147 <sect2 role="content">
148 <title>Contents</title>
149
150 <segmentedlist>
151 <segtitle>Installed Programs</segtitle>
152 <segtitle>Installed Library</segtitle>
153 <segtitle>Installed Directories</segtitle>
154
155 <seglistitem>
156 <seg>
[e58667e]157 gusbcmd
[d6da5da]158 </seg>
159 <seg>
160 libgusb.so
161 </seg>
162 <seg>
163 /usr/include/gusb-1 and
[ce1f29a]164 /usr/share/doc/libgusb-&libgusb-version; (if gi-docgen is used)
[d6da5da]165 </seg>
166 </seglistitem>
167 </segmentedlist>
168
169 <variablelist>
170 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
171 <?dbfo list-presentation="list"?>
172 <?dbhtml list-presentation="table"?>
173
[e58667e]174 <varlistentry id="gusbcmd">
175 <term><command>gusbcmd</command></term>
176 <listitem>
177 <para>
[4c24eb0a]178 is a debugging tool for the libgusb library
[e58667e]179 </para>
180 <indexterm zone="libgusb gusbcmd">
181 <primary sortas="b-gusbcmd">gusbcmd</primary>
182 </indexterm>
183 </listitem>
184 </varlistentry>
185
[d6da5da]186 <varlistentry id="libgusb-lib">
187 <term><filename class="libraryfile">libgusb.so</filename></term>
188 <listitem>
189 <para>
[4c24eb0a]190 contains the <application>libgusb</application> API functions
[d6da5da]191 </para>
192 <indexterm zone="libgusb libgusb-lib">
193 <primary sortas="c-libgusb">libgusb.so</primary>
194 </indexterm>
195 </listitem>
196 </varlistentry>
197
198 </variablelist>
199
200 </sect2>
201
202</sect1>
Note: See TracBrowser for help on using the repository browser.