mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-25 07:42:13 +08:00
9029db2656
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@24241 af4574ff-66df-0310-9fd7-8a98e5e911e0
209 lines
5.9 KiB
XML
209 lines
5.9 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 libwacom-download-http "https://github.com/linuxwacom/libwacom/releases/download/libwacom-&libwacom-version;/libwacom-&libwacom-version;.tar.bz2">
|
|
<!ENTITY libwacom-download-ftp " ">
|
|
<!ENTITY libwacom-md5sum "979e39b480bb08f36e48f67746eb3ec5">
|
|
<!ENTITY libwacom-size "504 KB">
|
|
<!ENTITY libwacom-buildsize "8.1 MB (with tests)">
|
|
<!ENTITY libwacom-time "less than 0.1 SBU (with tests)">
|
|
]>
|
|
|
|
<sect1 id="libwacom" xreflabel="libwacom-&libwacom-version;">
|
|
<?dbhtml filename="libwacom.html"?>
|
|
|
|
<sect1info>
|
|
<othername>$LastChangedBy$</othername>
|
|
<date>$Date$</date>
|
|
</sect1info>
|
|
|
|
<title>libwacom-&libwacom-version;</title>
|
|
|
|
<indexterm zone="libwacom">
|
|
<primary sortas="a-libwacom">libwacom</primary>
|
|
</indexterm>
|
|
|
|
<sect2 role="package">
|
|
<title>Introduction to libwacom</title>
|
|
|
|
<para>
|
|
The <application>libwacom</application> package contains a library used
|
|
to identify wacom tablets and their model-specific features.
|
|
</para>
|
|
|
|
&lfs101_checked;
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
<itemizedlist spacing="compact">
|
|
<listitem>
|
|
<para>
|
|
Download (HTTP): <ulink url="&libwacom-download-http;"/>
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Download (FTP): <ulink url="&libwacom-download-ftp;"/>
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Download MD5 sum: &libwacom-md5sum;
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Download size: &libwacom-size;
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Estimated disk space required: &libwacom-buildsize;
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Estimated build time: &libwacom-time;
|
|
</para>
|
|
</listitem>
|
|
</itemizedlist>
|
|
|
|
<bridgehead renderas="sect3">libwacom Dependencies</bridgehead>
|
|
|
|
<bridgehead renderas="sect4">Required</bridgehead>
|
|
<para role="required">
|
|
<xref linkend="libgudev"/>
|
|
</para>
|
|
|
|
<bridgehead renderas="sect4">Recommended</bridgehead>
|
|
<para role="recommended">
|
|
<xref linkend="libxml2"/>
|
|
</para>
|
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
|
<para role="optional">
|
|
<xref linkend="doxygen"/>,
|
|
<xref linkend="git"/>,
|
|
<xref linkend="librsvg"/>,
|
|
<xref linkend="valgrind"/> (optional for some tests), and
|
|
<ulink url="https://docs.pytest.org/en/stable/">pytest</ulink>
|
|
</para>
|
|
|
|
<para condition="html" role="usernotes">
|
|
User Notes: <ulink url="&blfs-wiki;/libwacom"/>
|
|
</para>
|
|
</sect2>
|
|
|
|
<sect2 role="installation">
|
|
<title>Installation of libwacom</title>
|
|
|
|
<!-- Fixed in libwacom-1.7
|
|
<para>
|
|
First, adapt the udev rules to upstream udev/kernel changes:
|
|
</para>
|
|
|
|
<screen><userinput remap="pre">sed -i 's/ACTION!="add|change"/ACTION=="remove"/' tools/65-libwacom.rules.in</userinput></screen>
|
|
-->
|
|
|
|
<para>
|
|
Install <application>libwacom</application> by running the following
|
|
commands:
|
|
</para>
|
|
|
|
<screen><userinput>mkdir build &&
|
|
cd build &&
|
|
|
|
meson --prefix=/usr -Dudev-dir=/lib/udev -Dtests=disabled .. &&
|
|
ninja</userinput></screen>
|
|
|
|
<para>
|
|
To test the results, issue: <command>ninja test</command>.
|
|
To run additional tests, install
|
|
<ulink url="https://docs.pytest.org/en/stable/">pytest</ulink> and remove
|
|
the "-Dtests=disabled" option from the meson line above.
|
|
</para>
|
|
|
|
<para>
|
|
Now, as the <systemitem class="username">root</systemitem> user:
|
|
</para>
|
|
|
|
<screen role="root"><userinput>ninja install</userinput></screen>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="commands">
|
|
<title>Command Explanations</title>
|
|
|
|
<para>
|
|
<parameter>-Dudev-dir=/lib/udev</parameter>: This parameter sets the
|
|
proper installation directory for udev rules.
|
|
</para>
|
|
|
|
<para>
|
|
<parameter>-Dtests=disabled</parameter>: This parameter disables some of
|
|
the more advanced tests because they require
|
|
<ulink url="https://docs.pytest.org/en/stable/">pytest</ulink> to work
|
|
properly.
|
|
</para>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="content">
|
|
<title>Contents</title>
|
|
|
|
<segmentedlist>
|
|
<segtitle>Installed Programs</segtitle>
|
|
<segtitle>Installed Libraries</segtitle>
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
<seglistitem>
|
|
<seg>
|
|
libwacom-list-local-devices
|
|
</seg>
|
|
<seg>
|
|
libwacom.so
|
|
</seg>
|
|
<seg>
|
|
/usr/include/libwacom-1.0 and
|
|
/usr/share/libwacom
|
|
</seg>
|
|
</seglistitem>
|
|
</segmentedlist>
|
|
|
|
<variablelist>
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
<?dbfo list-presentation="list"?>
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
<varlistentry id="libwacom-list-local-devices">
|
|
<term><command>libwacom-list-local-devices</command></term>
|
|
<listitem>
|
|
<para>
|
|
lists tablet devices that are connected to the system
|
|
</para>
|
|
<indexterm zone="libwacom libwacom-list-local-devices">
|
|
<primary sortas="b-libwacom-list-local-devices">libwacom-list-local-devices</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="libwacom-lib">
|
|
<term><filename class="libraryfile">libwacom.so</filename></term>
|
|
<listitem>
|
|
<para>
|
|
contains functions used for accessing Wacom information
|
|
</para>
|
|
<indexterm zone="libwacom libwacom-lib">
|
|
<primary sortas="c-libwacom">libwacom.so</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</sect2>
|
|
|
|
</sect1>
|