2024-01-20 05:35:53 +08:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2016-07-07 11:54:52 +08:00
|
|
|
<!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;
|
|
|
|
|
2022-02-01 00:51:18 +08:00
|
|
|
<!ENTITY libwacom-download-http "https://github.com/linuxwacom/libwacom/releases/download/libwacom-&libwacom-version;/libwacom-&libwacom-version;.tar.xz">
|
2016-07-07 11:54:52 +08:00
|
|
|
<!ENTITY libwacom-download-ftp " ">
|
2024-02-09 09:23:07 +08:00
|
|
|
<!ENTITY libwacom-md5sum "9baf8fb0e486e225ef81b9becb46031b">
|
|
|
|
<!ENTITY libwacom-size "116 KB">
|
|
|
|
<!ENTITY libwacom-buildsize "3.4 MB (with tests)">
|
2020-03-26 00:34:49 +08:00
|
|
|
<!ENTITY libwacom-time "less than 0.1 SBU (with tests)">
|
2016-07-07 11:54:52 +08:00
|
|
|
]>
|
|
|
|
|
2019-06-28 04:55:17 +08:00
|
|
|
<sect1 id="libwacom" xreflabel="libwacom-&libwacom-version;">
|
2016-07-07 11:54:52 +08:00
|
|
|
<?dbhtml filename="libwacom.html"?>
|
|
|
|
|
|
|
|
|
|
|
|
<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>
|
|
|
|
|
2023-08-20 04:19:27 +08:00
|
|
|
&lfs120_checked;
|
2016-07-07 11:54:52 +08:00
|
|
|
|
|
|
|
<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">
|
2020-03-25 01:39:48 +08:00
|
|
|
<xref linkend="doxygen"/>,
|
2017-08-27 09:53:46 +08:00
|
|
|
<xref linkend="git"/>,
|
2020-12-29 13:49:12 +08:00
|
|
|
<xref linkend="librsvg"/>,
|
|
|
|
<xref linkend="valgrind"/> (optional for some tests), and
|
2022-10-30 05:34:19 +08:00
|
|
|
<xref linkend="pytest"/> with
|
2022-10-20 19:30:09 +08:00
|
|
|
<ulink url="https://pypi.org/project/libevdev/">python-libevdev</ulink> and
|
|
|
|
<ulink url="https://pypi.org/project/pyudev/">pyudev</ulink>
|
2016-07-07 11:54:52 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of libwacom</title>
|
|
|
|
|
2020-12-29 13:49:12 +08:00
|
|
|
<!-- Fixed in libwacom-1.7
|
2020-12-10 12:22:43 +08:00
|
|
|
<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>
|
2020-12-29 13:49:12 +08:00
|
|
|
-->
|
2020-12-10 12:22:43 +08:00
|
|
|
|
2016-07-07 11:54:52 +08:00
|
|
|
<para>
|
|
|
|
Install <application>libwacom</application> by running the following
|
|
|
|
commands:
|
|
|
|
</para>
|
|
|
|
|
2020-03-25 01:39:48 +08:00
|
|
|
<screen><userinput>mkdir build &&
|
|
|
|
cd build &&
|
|
|
|
|
2023-03-14 00:48:55 +08:00
|
|
|
meson setup .. \
|
|
|
|
--prefix=/usr \
|
|
|
|
--buildtype=release \
|
|
|
|
-Dtests=disabled &&
|
2020-03-25 01:39:48 +08:00
|
|
|
ninja</userinput></screen>
|
2016-07-07 11:54:52 +08:00
|
|
|
|
|
|
|
<para>
|
2020-03-25 01:39:48 +08:00
|
|
|
To test the results, issue: <command>ninja test</command>.
|
2021-09-07 01:42:49 +08:00
|
|
|
To run additional tests, install
|
2023-02-10 18:52:14 +08:00
|
|
|
<xref linkend="pytest"/>, python-libevdev, and pyudev, then remove
|
2020-12-29 13:49:12 +08:00
|
|
|
the "-Dtests=disabled" option from the meson line above.
|
2016-07-07 11:54:52 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Now, as the <systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
|
|
|
|
2020-03-25 01:39:48 +08:00
|
|
|
<screen role="root"><userinput>ninja install</userinput></screen>
|
2016-07-07 11:54:52 +08:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="commands">
|
|
|
|
<title>Command Explanations</title>
|
|
|
|
|
2021-06-04 20:06:48 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
|
|
href="../../xincludes/meson-buildtype-release.xml"/>
|
|
|
|
|
2020-12-29 13:49:12 +08:00
|
|
|
<para>
|
|
|
|
<parameter>-Dtests=disabled</parameter>: This parameter disables some of
|
2023-02-10 18:52:14 +08:00
|
|
|
the more advanced tests because they require <xref linkend="pytest"/> and
|
|
|
|
other two Python modules beyond the scope of BLFS to work properly.
|
2020-12-29 13:49:12 +08:00
|
|
|
</para>
|
|
|
|
|
2016-07-07 11:54:52 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
|
|
|
<segtitle>Installed Libraries</segtitle>
|
|
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
|
|
|
<seg>
|
2021-05-07 00:28:07 +08:00
|
|
|
libwacom-list-devices,
|
|
|
|
libwacom-list-local-devices,
|
|
|
|
libwacom-show-stylus, and
|
|
|
|
libwacom-update-db
|
2016-07-07 11:54:52 +08:00
|
|
|
</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"?>
|
|
|
|
|
2021-05-07 00:28:07 +08:00
|
|
|
<varlistentry id="libwacom-list-devices">
|
|
|
|
<term><command>libwacom-list-devices</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
lists all tablet devices that are supported by libwacom
|
|
|
|
</para>
|
|
|
|
<indexterm zone="libwacom libwacom-list-devices">
|
|
|
|
<primary sortas="b-libwacom-list-devices">libwacom-list-devices</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2020-07-01 09:28:12 +08:00
|
|
|
<varlistentry id="libwacom-list-local-devices">
|
|
|
|
<term><command>libwacom-list-local-devices</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2021-02-19 23:20:16 +08:00
|
|
|
lists tablet devices that are connected to the system
|
2020-07-01 09:28:12 +08:00
|
|
|
</para>
|
|
|
|
<indexterm zone="libwacom libwacom-list-local-devices">
|
|
|
|
<primary sortas="b-libwacom-list-local-devices">libwacom-list-local-devices</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2021-03-04 10:54:53 +08:00
|
|
|
<varlistentry id="libwacom-show-stylus">
|
|
|
|
<term><command>libwacom-show-stylus</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
lists tablet stylus IDs
|
|
|
|
</para>
|
|
|
|
<indexterm zone="libwacom libwacom-show-stylus">
|
|
|
|
<primary sortas="b-libwacom-show-stylus">libwacom-show-stylus</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2021-05-07 00:28:07 +08:00
|
|
|
<varlistentry id="libwacom-update-db">
|
|
|
|
<term><command>libwacom-update-db</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
updates the system according to the current set of tablet data files
|
|
|
|
</para>
|
|
|
|
<indexterm zone="libwacom libwacom-update-db">
|
|
|
|
<primary sortas="b-libwacom-update-db">libwacom-update-db</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2016-07-07 11:54:52 +08:00
|
|
|
<varlistentry id="libwacom-lib">
|
|
|
|
<term><filename class="libraryfile">libwacom.so</filename></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2021-02-19 23:20:16 +08:00
|
|
|
contains functions used for accessing Wacom information
|
2016-07-07 11:54:52 +08:00
|
|
|
</para>
|
|
|
|
<indexterm zone="libwacom libwacom-lib">
|
|
|
|
<primary sortas="c-libwacom">libwacom.so</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
</sect1>
|