[69a16457] | 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 |
|
---|
[f948b30] | 7 | <!ENTITY libwacom-download-http "https://github.com/linuxwacom/libwacom/releases/download/libwacom-&libwacom-version;/libwacom-&libwacom-version;.tar.xz">
|
---|
[69a16457] | 8 | <!ENTITY libwacom-download-ftp " ">
|
---|
[c0220db0] | 9 | <!ENTITY libwacom-md5sum "8009dfda6afe6a5d3d8a3021ef6bdfb8">
|
---|
| 10 | <!ENTITY libwacom-size "112 KB">
|
---|
| 11 | <!ENTITY libwacom-buildsize "3.3 MB (with tests)">
|
---|
[3c0f55bd] | 12 | <!ENTITY libwacom-time "less than 0.1 SBU (with tests)">
|
---|
[69a16457] | 13 | ]>
|
---|
| 14 |
|
---|
[51dfb3e] | 15 | <sect1 id="libwacom" xreflabel="libwacom-&libwacom-version;">
|
---|
[69a16457] | 16 | <?dbhtml filename="libwacom.html"?>
|
---|
| 17 |
|
---|
| 18 |
|
---|
| 19 | <title>libwacom-&libwacom-version;</title>
|
---|
| 20 |
|
---|
| 21 | <indexterm zone="libwacom">
|
---|
| 22 | <primary sortas="a-libwacom">libwacom</primary>
|
---|
| 23 | </indexterm>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="package">
|
---|
| 26 | <title>Introduction to libwacom</title>
|
---|
| 27 |
|
---|
| 28 | <para>
|
---|
| 29 | The <application>libwacom</application> package contains a library used
|
---|
| 30 | to identify wacom tablets and their model-specific features.
|
---|
| 31 | </para>
|
---|
| 32 |
|
---|
[6aa631b] | 33 | &lfs120_checked;
|
---|
[69a16457] | 34 |
|
---|
| 35 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 36 | <itemizedlist spacing="compact">
|
---|
| 37 | <listitem>
|
---|
| 38 | <para>
|
---|
| 39 | Download (HTTP): <ulink url="&libwacom-download-http;"/>
|
---|
| 40 | </para>
|
---|
| 41 | </listitem>
|
---|
| 42 | <listitem>
|
---|
| 43 | <para>
|
---|
| 44 | Download (FTP): <ulink url="&libwacom-download-ftp;"/>
|
---|
| 45 | </para>
|
---|
| 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
| 48 | <para>
|
---|
| 49 | Download MD5 sum: &libwacom-md5sum;
|
---|
| 50 | </para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>
|
---|
| 54 | Download size: &libwacom-size;
|
---|
| 55 | </para>
|
---|
| 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
| 58 | <para>
|
---|
| 59 | Estimated disk space required: &libwacom-buildsize;
|
---|
| 60 | </para>
|
---|
| 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
| 63 | <para>
|
---|
| 64 | Estimated build time: &libwacom-time;
|
---|
| 65 | </para>
|
---|
| 66 | </listitem>
|
---|
| 67 | </itemizedlist>
|
---|
| 68 |
|
---|
| 69 | <bridgehead renderas="sect3">libwacom Dependencies</bridgehead>
|
---|
| 70 |
|
---|
| 71 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 72 | <para role="required">
|
---|
| 73 | <xref linkend="libgudev"/>
|
---|
| 74 | </para>
|
---|
| 75 |
|
---|
| 76 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 77 | <para role="recommended">
|
---|
| 78 | <xref linkend="libxml2"/>
|
---|
| 79 | </para>
|
---|
| 80 |
|
---|
| 81 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 82 | <para role="optional">
|
---|
[914049f6] | 83 | <xref linkend="doxygen"/>,
|
---|
[844770f] | 84 | <xref linkend="git"/>,
|
---|
[51718d1] | 85 | <xref linkend="librsvg"/>,
|
---|
| 86 | <xref linkend="valgrind"/> (optional for some tests), and
|
---|
[8b819c5] | 87 | <xref linkend="pytest"/> with
|
---|
[5701f4b] | 88 | <ulink url="https://pypi.org/project/libevdev/">python-libevdev</ulink> and
|
---|
| 89 | <ulink url="https://pypi.org/project/pyudev/">pyudev</ulink>
|
---|
[69a16457] | 90 | </para>
|
---|
| 91 |
|
---|
| 92 | </sect2>
|
---|
| 93 |
|
---|
| 94 | <sect2 role="installation">
|
---|
| 95 | <title>Installation of libwacom</title>
|
---|
| 96 |
|
---|
[51718d1] | 97 | <!-- Fixed in libwacom-1.7
|
---|
[de35807d] | 98 | <para>
|
---|
| 99 | First, adapt the udev rules to upstream udev/kernel changes:
|
---|
| 100 | </para>
|
---|
| 101 |
|
---|
| 102 | <screen><userinput remap="pre">sed -i 's/ACTION!="add|change"/ACTION=="remove"/' tools/65-libwacom.rules.in</userinput></screen>
|
---|
[51718d1] | 103 | -->
|
---|
[de35807d] | 104 |
|
---|
[69a16457] | 105 | <para>
|
---|
| 106 | Install <application>libwacom</application> by running the following
|
---|
| 107 | commands:
|
---|
| 108 | </para>
|
---|
| 109 |
|
---|
[914049f6] | 110 | <screen><userinput>mkdir build &&
|
---|
| 111 | cd build &&
|
---|
| 112 |
|
---|
[91318eb] | 113 | meson setup .. \
|
---|
| 114 | --prefix=/usr \
|
---|
| 115 | --buildtype=release \
|
---|
| 116 | -Dtests=disabled &&
|
---|
[914049f6] | 117 | ninja</userinput></screen>
|
---|
[69a16457] | 118 |
|
---|
| 119 | <para>
|
---|
[914049f6] | 120 | To test the results, issue: <command>ninja test</command>.
|
---|
[8558044] | 121 | To run additional tests, install
|
---|
[376a07f8] | 122 | <xref linkend="pytest"/>, python-libevdev, and pyudev, then remove
|
---|
[51718d1] | 123 | the "-Dtests=disabled" option from the meson line above.
|
---|
[69a16457] | 124 | </para>
|
---|
| 125 |
|
---|
| 126 | <para>
|
---|
| 127 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 128 | </para>
|
---|
| 129 |
|
---|
[914049f6] | 130 | <screen role="root"><userinput>ninja install</userinput></screen>
|
---|
[69a16457] | 131 |
|
---|
| 132 | </sect2>
|
---|
| 133 |
|
---|
| 134 | <sect2 role="commands">
|
---|
| 135 | <title>Command Explanations</title>
|
---|
| 136 |
|
---|
[20f070d8] | 137 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 138 | href="../../xincludes/meson-buildtype-release.xml"/>
|
---|
| 139 |
|
---|
[51718d1] | 140 | <para>
|
---|
| 141 | <parameter>-Dtests=disabled</parameter>: This parameter disables some of
|
---|
[376a07f8] | 142 | the more advanced tests because they require <xref linkend="pytest"/> and
|
---|
| 143 | other two Python modules beyond the scope of BLFS to work properly.
|
---|
[51718d1] | 144 | </para>
|
---|
| 145 |
|
---|
[69a16457] | 146 | </sect2>
|
---|
| 147 |
|
---|
| 148 | <sect2 role="content">
|
---|
| 149 | <title>Contents</title>
|
---|
| 150 |
|
---|
| 151 | <segmentedlist>
|
---|
| 152 | <segtitle>Installed Programs</segtitle>
|
---|
| 153 | <segtitle>Installed Libraries</segtitle>
|
---|
| 154 | <segtitle>Installed Directories</segtitle>
|
---|
| 155 |
|
---|
| 156 | <seglistitem>
|
---|
| 157 | <seg>
|
---|
[70896c42] | 158 | libwacom-list-devices,
|
---|
| 159 | libwacom-list-local-devices,
|
---|
| 160 | libwacom-show-stylus, and
|
---|
| 161 | libwacom-update-db
|
---|
[69a16457] | 162 | </seg>
|
---|
| 163 | <seg>
|
---|
| 164 | libwacom.so
|
---|
| 165 | </seg>
|
---|
| 166 | <seg>
|
---|
| 167 | /usr/include/libwacom-1.0 and
|
---|
| 168 | /usr/share/libwacom
|
---|
| 169 | </seg>
|
---|
| 170 | </seglistitem>
|
---|
| 171 | </segmentedlist>
|
---|
| 172 |
|
---|
| 173 | <variablelist>
|
---|
| 174 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 175 | <?dbfo list-presentation="list"?>
|
---|
| 176 | <?dbhtml list-presentation="table"?>
|
---|
| 177 |
|
---|
[70896c42] | 178 | <varlistentry id="libwacom-list-devices">
|
---|
| 179 | <term><command>libwacom-list-devices</command></term>
|
---|
| 180 | <listitem>
|
---|
| 181 | <para>
|
---|
| 182 | lists all tablet devices that are supported by libwacom
|
---|
| 183 | </para>
|
---|
| 184 | <indexterm zone="libwacom libwacom-list-devices">
|
---|
| 185 | <primary sortas="b-libwacom-list-devices">libwacom-list-devices</primary>
|
---|
| 186 | </indexterm>
|
---|
| 187 | </listitem>
|
---|
| 188 | </varlistentry>
|
---|
| 189 |
|
---|
[c744d0a5] | 190 | <varlistentry id="libwacom-list-local-devices">
|
---|
| 191 | <term><command>libwacom-list-local-devices</command></term>
|
---|
| 192 | <listitem>
|
---|
| 193 | <para>
|
---|
[4c24eb0a] | 194 | lists tablet devices that are connected to the system
|
---|
[c744d0a5] | 195 | </para>
|
---|
| 196 | <indexterm zone="libwacom libwacom-list-local-devices">
|
---|
| 197 | <primary sortas="b-libwacom-list-local-devices">libwacom-list-local-devices</primary>
|
---|
| 198 | </indexterm>
|
---|
| 199 | </listitem>
|
---|
| 200 | </varlistentry>
|
---|
| 201 |
|
---|
[5d2965c] | 202 | <varlistentry id="libwacom-show-stylus">
|
---|
| 203 | <term><command>libwacom-show-stylus</command></term>
|
---|
| 204 | <listitem>
|
---|
| 205 | <para>
|
---|
| 206 | lists tablet stylus IDs
|
---|
| 207 | </para>
|
---|
| 208 | <indexterm zone="libwacom libwacom-show-stylus">
|
---|
| 209 | <primary sortas="b-libwacom-show-stylus">libwacom-show-stylus</primary>
|
---|
| 210 | </indexterm>
|
---|
| 211 | </listitem>
|
---|
| 212 | </varlistentry>
|
---|
| 213 |
|
---|
[70896c42] | 214 | <varlistentry id="libwacom-update-db">
|
---|
| 215 | <term><command>libwacom-update-db</command></term>
|
---|
| 216 | <listitem>
|
---|
| 217 | <para>
|
---|
| 218 | updates the system according to the current set of tablet data files
|
---|
| 219 | </para>
|
---|
| 220 | <indexterm zone="libwacom libwacom-update-db">
|
---|
| 221 | <primary sortas="b-libwacom-update-db">libwacom-update-db</primary>
|
---|
| 222 | </indexterm>
|
---|
| 223 | </listitem>
|
---|
| 224 | </varlistentry>
|
---|
| 225 |
|
---|
[69a16457] | 226 | <varlistentry id="libwacom-lib">
|
---|
| 227 | <term><filename class="libraryfile">libwacom.so</filename></term>
|
---|
| 228 | <listitem>
|
---|
| 229 | <para>
|
---|
[4c24eb0a] | 230 | contains functions used for accessing Wacom information
|
---|
[69a16457] | 231 | </para>
|
---|
| 232 | <indexterm zone="libwacom libwacom-lib">
|
---|
| 233 | <primary sortas="c-libwacom">libwacom.so</primary>
|
---|
| 234 | </indexterm>
|
---|
| 235 | </listitem>
|
---|
| 236 | </varlistentry>
|
---|
| 237 |
|
---|
| 238 | </variablelist>
|
---|
| 239 |
|
---|
| 240 | </sect2>
|
---|
| 241 |
|
---|
| 242 | </sect1>
|
---|