[1d054a4] | 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-download-http "http://www.freedesktop.org/software/libinput/libinput-&libinput-version;.tar.xz">
|
---|
| 8 | <!ENTITY libinput-download-ftp " ">
|
---|
[ac38e9dc] | 9 | <!ENTITY libinput-md5sum "0ddbb0d53d58dec0a86de6791560011a">
|
---|
| 10 | <!ENTITY libinput-size "612 KB">
|
---|
| 11 | <!ENTITY libinput-buildsize "20 MB">
|
---|
| 12 | <!ENTITY libinput-time "0.2 SBU">
|
---|
[1d054a4] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="libinput" xreflabel="libinput-&libinput-version;">
|
---|
| 16 | <?dbhtml filename="libinput.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>libinput-&libinput-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="libinput">
|
---|
| 26 | <primary sortas="a-libinput">libinput</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to libinput</title>
|
---|
| 31 |
|
---|
| 32 | <para>
|
---|
| 33 | <application>libinput</application> is a library that handles
|
---|
| 34 | input devices for display servers and other applications that
|
---|
| 35 | need to directly deal with input devices.
|
---|
| 36 | </para>
|
---|
| 37 |
|
---|
[ac38e9dc] | 38 | &lfs77_checked;
|
---|
[1d054a4] | 39 |
|
---|
| 40 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 41 | <itemizedlist spacing="compact">
|
---|
| 42 | <listitem>
|
---|
| 43 | <para>
|
---|
| 44 | Download (HTTP): <ulink url="&libinput-download-http;"/>
|
---|
| 45 | </para>
|
---|
| 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
| 48 | <para>
|
---|
| 49 | Download (FTP): <ulink url="&libinput-download-ftp;"/>
|
---|
| 50 | </para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>
|
---|
| 54 | Download MD5 sum: &libinput-md5sum;
|
---|
| 55 | </para>
|
---|
| 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
| 58 | <para>
|
---|
| 59 | Download size: &libinput-size;
|
---|
| 60 | </para>
|
---|
| 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
| 63 | <para>
|
---|
| 64 | Estimated disk space required: &libinput-buildsize;
|
---|
| 65 | </para>
|
---|
| 66 | </listitem>
|
---|
| 67 | <listitem>
|
---|
| 68 | <para>
|
---|
| 69 | Estimated build time: &libinput-time;
|
---|
| 70 | </para>
|
---|
| 71 | </listitem>
|
---|
| 72 | </itemizedlist>
|
---|
| 73 |
|
---|
| 74 | <bridgehead renderas="sect3">libinput Dependencies</bridgehead>
|
---|
| 75 |
|
---|
| 76 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 77 | <para role="required">
|
---|
| 78 | <xref linkend="libevdev"/> and
|
---|
| 79 | <xref linkend="mtdev"/>
|
---|
| 80 | </para>
|
---|
| 81 |
|
---|
| 82 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 83 | <para role="optional">
|
---|
[ac38e9dc] | 84 | <xref linkend="check"/> and
|
---|
| 85 | <xref linkend="valgrind"/> (to build the tests),
|
---|
| 86 | <xref linkend="doxygen"/> and
|
---|
| 87 | <xref linkend="graphviz"/> (to build the documentation)
|
---|
| 88 | <xref linkend="gtk3"/> (to build the GUI event viewer) and
|
---|
| 89 | <ulink url="http://www.nongnu.org/libunwind/">libunwind</ulink>
|
---|
[1d054a4] | 90 | </para>
|
---|
| 91 |
|
---|
| 92 | <para condition="html" role="usernotes">
|
---|
| 93 | User Notes: <ulink url="&blfs-wiki;/libinput"/>
|
---|
| 94 | </para>
|
---|
| 95 | </sect2>
|
---|
| 96 |
|
---|
| 97 | <sect2 role="installation">
|
---|
| 98 | <title>Installation of libinput</title>
|
---|
| 99 |
|
---|
| 100 | <para>
|
---|
| 101 | Install <application>libinput</application> by running the following
|
---|
| 102 | commands:
|
---|
| 103 | </para>
|
---|
| 104 |
|
---|
[ac38e9dc] | 105 | <screen><userinput>./configure --prefix=/usr \
|
---|
| 106 | --disable-static \
|
---|
| 107 | --with-udev-dir=/lib/udev &&
|
---|
[1d054a4] | 108 | make</userinput></screen>
|
---|
| 109 |
|
---|
| 110 | <para>
|
---|
[ac38e9dc] | 111 | Running the testsuite for this package can be dangerous, as
|
---|
| 112 | it creates a number of dummy input devices on the currently
|
---|
| 113 | running system that can lead to crashing a local X server or
|
---|
| 114 | a desktop environment. If you understand the risks and have
|
---|
| 115 | the optional <xref linkend="check"/> and
|
---|
| 116 | <xref linkend="valgrind"/> packages installed, the regression
|
---|
| 117 | tests can be run as the <systemitem
|
---|
[1d054a4] | 118 | class="username">root</systemitem> user with
|
---|
[ac38e9dc] | 119 | <userinput>make check</userinput>. Note that depending on
|
---|
| 120 | the system configuration and hardware, some tests may fail.
|
---|
[1d054a4] | 121 | </para>
|
---|
| 122 |
|
---|
| 123 | <para>
|
---|
| 124 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 125 | </para>
|
---|
| 126 |
|
---|
| 127 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 128 |
|
---|
| 129 | <para>
|
---|
[ac38e9dc] | 130 | If <xref linkend="doxygen"/> and <xref linkend="graphviz"/> were
|
---|
| 131 | present during the build, you can install the generated documentation
|
---|
| 132 | by running the following commands as the <systemitem
|
---|
| 133 | class="username">root</systemitem> user:
|
---|
[1d054a4] | 134 | </para>
|
---|
| 135 |
|
---|
| 136 | <screen role="root"><userinput>install -v -dm755 /usr/share/doc/libinput-&libinput-version; &&
|
---|
| 137 | cp -rv doc/html/* /usr/share/doc/libinput-&libinput-version;</userinput></screen>
|
---|
| 138 |
|
---|
| 139 | </sect2>
|
---|
| 140 |
|
---|
| 141 | <sect2 role="commands">
|
---|
| 142 | <title>Command Explanations</title>
|
---|
| 143 |
|
---|
| 144 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 145 | href="../../xincludes/static-libraries.xml"/>
|
---|
| 146 |
|
---|
[ac38e9dc] | 147 | <para>
|
---|
| 148 | <parameter>--with-udev-dir=/lib/udev</parameter>: This switch
|
---|
| 149 | specifies where UDev rules and hwdb files will be installed.
|
---|
| 150 | </para>
|
---|
| 151 |
|
---|
[1d054a4] | 152 | </sect2>
|
---|
| 153 |
|
---|
| 154 | <sect2 role="content">
|
---|
| 155 | <title>Contents</title>
|
---|
| 156 |
|
---|
| 157 | <segmentedlist>
|
---|
| 158 | <segtitle>Installed Programs</segtitle>
|
---|
| 159 | <segtitle>Installed Libraries</segtitle>
|
---|
| 160 | <segtitle>Installed Directories</segtitle>
|
---|
| 161 |
|
---|
| 162 | <seglistitem>
|
---|
| 163 | <seg>
|
---|
[ac38e9dc] | 164 | libinput-debug-events and libinput-list-devices
|
---|
[1d054a4] | 165 | </seg>
|
---|
| 166 | <seg>
|
---|
| 167 | libinput.so
|
---|
| 168 | </seg>
|
---|
| 169 | <seg>
|
---|
| 170 | /usr/share/doc/libinput-&libinput-version;
|
---|
| 171 | </seg>
|
---|
| 172 | </seglistitem>
|
---|
| 173 | </segmentedlist>
|
---|
| 174 |
|
---|
| 175 | <variablelist>
|
---|
| 176 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 177 | <?dbfo list-presentation="list"?>
|
---|
| 178 | <?dbhtml list-presentation="table"?>
|
---|
| 179 |
|
---|
[ac38e9dc] | 180 | <varlistentry id="libinput-debug-events">
|
---|
| 181 | <term><command>libinput-debug-events</command></term>
|
---|
| 182 | <listitem>
|
---|
| 183 | <para>
|
---|
| 184 | is a debug helper for <application>libinput</application>.
|
---|
| 185 | </para>
|
---|
| 186 | <indexterm zone="libinput libinput-debug-events">
|
---|
| 187 | <primary sortas="b-libinput-debug-events">libinput-debug-events</primary>
|
---|
| 188 | </indexterm>
|
---|
| 189 | </listitem>
|
---|
| 190 | </varlistentry>
|
---|
| 191 |
|
---|
| 192 | <varlistentry id="libinput-list-devices">
|
---|
| 193 | <term><command>libinput-list-devices</command></term>
|
---|
| 194 | <listitem>
|
---|
| 195 | <para>
|
---|
| 196 | lists local devices as recognized by
|
---|
| 197 | <application>libinput</application>.
|
---|
| 198 | </para>
|
---|
| 199 | <indexterm zone="libinput libinput-list-devices">
|
---|
| 200 | <primary sortas="b-libinput-list-devices">libinput-list-devices</primary>
|
---|
| 201 | </indexterm>
|
---|
| 202 | </listitem>
|
---|
| 203 | </varlistentry>
|
---|
| 204 |
|
---|
[1d054a4] | 205 | <varlistentry id="libinput-lib">
|
---|
| 206 | <term><filename class="libraryfile">libinput.so</filename></term>
|
---|
| 207 | <listitem>
|
---|
| 208 | <para>
|
---|
| 209 | contains API functions for handling input devices.
|
---|
| 210 | </para>
|
---|
| 211 | <indexterm zone="libinput libinput-lib">
|
---|
| 212 | <primary sortas="c-libinput">libinput.so</primary>
|
---|
| 213 | </indexterm>
|
---|
| 214 | </listitem>
|
---|
| 215 | </varlistentry>
|
---|
| 216 |
|
---|
| 217 | </variablelist>
|
---|
| 218 |
|
---|
| 219 | </sect2>
|
---|
| 220 |
|
---|
| 221 | </sect1>
|
---|