source: x/installing/libinput.xml@ 574d4b0d

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 574d4b0d was fd1a0a33, checked in by Bruce Dubbs <bdubbs@…>, 6 years ago

Update to harfbuzz-1.6.3.
Update to libinput-1.9.1.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@19441 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 8.9 KB
Line 
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
7 <!ENTITY libinput-version "1.9.1">
8
9 <!ENTITY libinput-download-http "https://www.freedesktop.org/software/libinput/libinput-&libinput-version;.tar.xz">
10 <!ENTITY libinput-download-ftp " ">
11 <!ENTITY libinput-md5sum "ce677ef7f209a2290a40ad1a73503f1c">
12 <!ENTITY libinput-size "448 KB">
13 <!ENTITY libinput-buildsize "28 MB (with docs)">
14 <!ENTITY libinput-time "0.2 SBU (with docs)">
15]>
16
17<sect2 id="libinput" xreflabel="libinput-&libinput-version;">
18 <?dbhtml filename="libinput.html"?>
19
20 <sect2info>
21 <othername>$LastChangedBy: renodr $</othername>
22 <date>$Date: 2015-09-14 17:42:53 -0500 (Mon, 14 Sep 2015) $</date>
23 </sect2info>
24
25 <title>libinput-&libinput-version;</title>
26
27 <indexterm zone="libinput">
28 <primary sortas="a-libinput">libinput</primary>
29 </indexterm>
30
31 <sect3 role="package">
32 <title>Introduction to libinput</title>
33
34 <para>
35 <application>libinput</application> is a library that handles
36 input devices for display servers and other applications that
37 need to directly deal with input devices.
38 </para>
39
40 &lfs81_checked;
41
42 <bridgehead renderas="sect4">Package Information</bridgehead>
43 <itemizedlist spacing="compact">
44 <listitem>
45 <para>
46 Download (HTTP): <ulink url="&libinput-download-http;"/>
47 </para>
48 </listitem>
49 <listitem>
50 <para>
51 Download (FTP): <ulink url="&libinput-download-ftp;"/>
52 </para>
53 </listitem>
54 <listitem>
55 <para>
56 Download MD5 sum: &libinput-md5sum;
57 </para>
58 </listitem>
59 <listitem>
60 <para>
61 Download size: &libinput-size;
62 </para>
63 </listitem>
64 <listitem>
65 <para>
66 Estimated disk space required: &libinput-buildsize;
67 </para>
68 </listitem>
69 <listitem>
70 <para>
71 Estimated build time: &libinput-time;
72 </para>
73 </listitem>
74 </itemizedlist>
75
76 <bridgehead renderas="sect4">libinput Dependencies</bridgehead>
77
78 <bridgehead renderas="sect5">Required</bridgehead>
79 <para role="required">
80 <xref linkend="libevdev"/> and
81 <xref linkend="mtdev"/>
82 </para>
83
84 <bridgehead renderas="sect5">Optional</bridgehead>
85 <para role="optional">
86 <xref linkend="check"/> and
87 <xref linkend="valgrind"/> (to run the tests),
88 <xref linkend="doxygen"/> and
89 <xref linkend="graphviz"/> (to build the documentation)
90 <xref linkend="gtk3"/> (to build the GUI event viewer),
91 <ulink url="http://www.nongnu.org/libunwind/">libunwind</ulink> (required for tests), and
92 <ulink revision="sysv" url="https://sourceforge.net/projects/linuxwacom/files/libwacom/">libwacom</ulink>
93 <xref revision="systemd" linkend="libwacom"/>
94 </para>
95
96 <para condition="html" role="usernotes">
97 User Notes: <ulink url="&blfs-wiki;/libinput"/>
98 </para>
99 </sect3>
100
101 <sect3 role="installation">
102 <title>Installation of libinput</title>
103
104 <para>
105 Install <application>libinput</application> by running the following
106 commands:
107 </para>
108
109<screen><userinput>meson --prefix=$XORG_PREFIX \
110 -Dudev-dir=/lib/udev \
111 -Ddebug-gui=false \
112 -Dtests=false \
113 -Ddocumentation=false \
114 -Dlibwacom=false \
115 build &amp;&amp;
116cd build &amp;&amp;
117ninja</userinput></screen>
118
119<!--
120 <note>
121 <para>If you want to run the tests, remove -Dtests from the
122 <command>meson</command> command above. The external
123 library, libunwind, must be installed.</para>
124
125 <para> To run the tests for this package, valgrind requires a version of
126 the /lib/ld-2.23.so (or later) library with debugging symbols present.
127 Normally in LFS these debugging symbols are stripped at the end of
128 Chapter 6. To get this library, glibc must be rebuilt with the current
129 glibc version using the same compiler that was used to build LFS. The
130 ld-2.23.so can then be renamed to ld-2.23.so.dbg and copied to /lib.
131 Then a symlink needs to be changed:</para>
132
133 <screen role="nodump"><userinput>ln -sfv ld-2.23.so.dbg /lib/ld-linux-x86-64.so.2</userinput></screen>
134
135 <para>Adjust the above instruction as needed for a 32-bit system
136 or for a different version of glibc</para>
137
138 </note>
139
140 <para>
141 Running the testsuite for this package can cause problems.
142 It creates a number of dummy input devices on the currently
143 running system that can lead to crashing a local X server or
144 a desktop environment. If you understand the risks and have
145 the optional <xref linkend="check"/> and
146 <xref linkend="valgrind"/> packages installed, the regression
147 tests can be run as the <systemitem
148 class="username">root</systemitem> user with
149 <userinput>ninja test</userinput>. Note that depending on
150 the system configuration and hardware, some tests may fail.
151 </para>
152-->
153 <para>
154 This package does not currently have a functioning test suite.
155 </para>
156
157 <para>
158 Now, as the <systemitem class="username">root</systemitem> user:
159 </para>
160
161<screen role="root"><userinput>ninja install</userinput></screen>
162
163 <para>
164 If <xref linkend="doxygen"/> and <xref linkend="graphviz"/> were
165 present during the build, you can install the generated documentation
166 by running the following commands as the <systemitem
167 class="username">root</systemitem> user:
168 </para>
169
170<screen role="root"><userinput>install -v -dm755 /usr/share/doc/libinput-&libinput-version; &amp;&amp;
171cp -rv html/* /usr/share/doc/libinput-&libinput-version;</userinput></screen>
172
173 </sect3>
174
175 <sect3 role="commands">
176 <title>Command Explanations</title>
177
178 <para>
179 <option>-Dudev-dir=/lib/udev</option>: This switch
180 specifies where UDev rules and hwdb files will be installed.
181 </para>
182
183 <para>
184 <option>-Ddebug-gui=false</option>: This switch
185 disables creation of a visual debug helper for libinput. Remove
186 if you want it, and you have <xref linkend="gtk3"/> installed.
187 </para>
188
189 <para>
190 <option>-Dtests=false</option>: This switch disables compilation
191 of tests. Remove if you want to run the tests, and you have the external
192 libraries, libunwind and libwacom, installed.
193 </para>
194
195 <para>
196 <option>-Ddocumentation=false</option>: This switch disables
197 generation of the documentation. Remove if you want to generate it, and
198 you have <xref linkend="doxygen"/> and <xref linkend="graphviz"/>
199 installed.
200 </para>
201
202 <para>
203 <option>-Dlibwacom=false</option>: Remove this
204 option if you have the external library libwacom installed.
205 </para>
206
207 </sect3>
208
209 <sect3 role="content">
210 <title>Contents</title>
211
212 <segmentedlist>
213 <segtitle>Installed Programs</segtitle>
214 <segtitle>Installed Libraries</segtitle>
215 <segtitle>Installed Directories</segtitle>
216
217 <seglistitem>
218 <seg>
219 libinput,
220 libinput-debug-events, and
221 libinput-list-devices
222 </seg>
223 <seg>
224 libinput.so
225 </seg>
226 <seg>
227 $XORG_PREFIX/libexec/libinput and
228 /usr/share/doc/libinput-&libinput-version;
229 </seg>
230 </seglistitem>
231 </segmentedlist>
232
233 <variablelist>
234 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
235 <?dbfo list-presentation="list"?>
236 <?dbhtml list-presentation="table"?>
237
238 <varlistentry id="libinput-debug-events">
239 <term><command>libinput-debug-events</command></term>
240 <listitem>
241 <para>
242 is a debug helper for <application>libinput</application>.
243 </para>
244 <indexterm zone="libinput libinput-debug-events">
245 <primary sortas="b-libinput-debug-events">libinput-debug-events</primary>
246 </indexterm>
247 </listitem>
248 </varlistentry>
249
250 <varlistentry id="libinput-list-devices">
251 <term><command>libinput-list-devices</command></term>
252 <listitem>
253 <para>
254 lists local devices as recognized by
255 <application>libinput</application>.
256 </para>
257 <indexterm zone="libinput libinput-list-devices">
258 <primary sortas="b-libinput-list-devices">libinput-list-devices</primary>
259 </indexterm>
260 </listitem>
261 </varlistentry>
262
263 <varlistentry id="libinput-lib">
264 <term><filename class="libraryfile">libinput.so</filename></term>
265 <listitem>
266 <para>
267 contains API functions for handling input devices.
268 </para>
269 <indexterm zone="libinput libinput-lib">
270 <primary sortas="c-libinput">libinput.so</primary>
271 </indexterm>
272 </listitem>
273 </varlistentry>
274
275 </variablelist>
276
277 </sect3>
278
279</sect2>
Note: See TracBrowser for help on using the repository browser.