glfs/x/installing/libevdev.xml
Pierre Labastie ca40dcac98 Modify Kernel Configuration instructions for Xorg drivers, to use the same
format as in the LFS Kernel page

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@15090 af4574ff-66df-0310-9fd7-8a98e5e911e0
2014-11-30 11:31:16 +00:00

189 lines
5.4 KiB
XML

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY % general-entities SYSTEM "../../general.ent">
%general-entities;
<!ENTITY libevdev-version "1.3.1">
<!ENTITY libevdev-download-http "http://www.freedesktop.org/software/libevdev/libevdev-&libevdev-version;.tar.xz">
<!ENTITY libevdev-download-ftp " ">
<!ENTITY libevdev-md5sum "c47d49e16c6f7d2eb45164a58895aecb">
<!ENTITY libevdev-size "384 KB">
<!ENTITY libevdev-buildsize "8.9 MB (with tests)">
<!ENTITY libevdev-time "0.1 SBU (0.2 SBU with tests)">
]>
<!-- Begin Xorg Libevdev Driver -->
<sect2 id="libevdev" xreflabel="Libevdev-&libevdev-version;">
<title>Libevdev &libevdev-version;</title>
<indexterm zone="libevdev">
<primary sortas="a-libevdev">libevdev</primary>
</indexterm>
<sect3 role="package">
<title>Introduction to Libevdev</title>
<para>
The <application>Libevdev</application> package contains common
functions for Xorg input drivers.
</para>
&lfs76_checked;
<bridgehead renderas="sect4">Package Information</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>
Download (HTTP): <ulink url="&libevdev-download-http;"/>
</para>
</listitem>
<listitem>
<para>
Download (FTP): <ulink url="&libevdev-download-ftp;"/>
</para>
</listitem>
<listitem>
<para>
Download MD5 sum: &libevdev-md5sum;
</para>
</listitem>
<listitem>
<para>
Download size: &libevdev-size;
</para>
</listitem>
<listitem>
<para>
Estimated disk space required: &libevdev-buildsize;
</para>
</listitem>
<listitem>
<para>
Estimated build time: &libevdev-time;
</para>
</listitem>
</itemizedlist>
<bridgehead renderas="sect4">Libevdev Dependencies</bridgehead>
<bridgehead renderas="sect5">Required</bridgehead>
<para role="required">
<xref linkend="python2"/>
</para>
<bridgehead renderas="sect5">Optional</bridgehead>
<para role="optional">
<xref linkend="check"/>,
<xref linkend="doxygen"/>, and
<xref linkend="valgrind"/>
</para>
<para condition="html" role="usernotes">
User Notes: <ulink url="&blfs-wiki;/libevdev"/>
</para>
</sect3>
<sect3 role="kernel" id="libevdev-kernel">
<title>Kernel Configuration</title>
<para>
Enable the following options in the kernel configuration and recompile the
kernel if necessary:
</para>
<screen><literal>Device Drivers ---&gt;
Input device support ---&gt;
&lt;*&gt; Generic input layer (needed for...) [CONFIG_INPUT]
&lt;*&gt; Event interface [CONFIG_INPUT_EVDEV]
[*] Miscellaneous devices ---&gt; [CONFIG_INPUT_MISC]
&lt;*&gt; User level driver support [CONFIG_INPUT_UINPUT]</literal></screen>
<indexterm zone="libevdev libevdev-kernel">
<primary sortas="d-libevdev">libevdev</primary>
</indexterm>
</sect3>
<sect3 role="installation">
<title>Installation of Libevdev</title>
<para>If <xref linkend="valgrind"/> is installed and tests are
going to be run, fix a testing problem:</para>
<screen><userinput>cat &gt;&gt; test/valgrind.suppressions &lt;&lt; "EOF"
{
&lt;timer_create@@GLIBC_2.3.3-2&gt;
Memcheck:Param
timer_create(evp)
fun:timer_create@@GLIBC_2.3.3
fun:check_get_clockid
fun:srunner_run
fun:main
}
EOF</userinput></screen>
<para>
Install <application>Libevdev</application> by running the following
commands:
</para>
<screen><userinput>./configure $XORG_CONFIG &amp;&amp;
make</userinput></screen>
<para>
If you have the optional <xref linkend='check'/> package installed,
the regression tests can be run as the <systemitem
class="username">root</systemitem> user with
<userinput>make check</userinput>.
</para>
<para>
Now, as the <systemitem class="username">root</systemitem> user:
</para>
<screen role="root"><userinput>make install</userinput></screen>
</sect3>
<sect3 role="content">
<title>Contents</title>
<segmentedlist>
<segtitle>Installed Xorg Program</segtitle>
<segtitle>Installed Xorg Library</segtitle>
<seglistitem>
<seg>
touchpad-edge-detector
</seg>
<seg>
libevdev.so
</seg>
</seglistitem>
</segmentedlist>
<variablelist>
<bridgehead renderas="sect4">Short Descriptions</bridgehead>
<?dbfo list-presentation="list"?>
<?dbhtml list-presentation="table"?>
<varlistentry id="libevdev-lib">
<term><filename class="libraryfile">libevdev.so</filename></term>
<listitem>
<para>
is a library of Xorg driver input functions.
</para>
<indexterm zone="libevdev libevdev-lib">
<primary sortas="c-libevdev-lib">ebvdev.so</primary>
</indexterm>
</listitem>
</varlistentry>
</variablelist>
</sect3>
</sect2>
<!-- End Xorg Evdev Driver -->