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