[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 |
|
---|
[914049f6] | 7 | <!ENTITY libwacom-download-http "https://github.com/linuxwacom/libwacom/releases/download/libwacom-&libwacom-version;/libwacom-&libwacom-version;.tar.bz2">
|
---|
[69a16457] | 8 | <!ENTITY libwacom-download-ftp " ">
|
---|
[0a5eabf6] | 9 | <!ENTITY libwacom-md5sum "979e39b480bb08f36e48f67746eb3ec5">
|
---|
[6aa4b2e8] | 10 | <!ENTITY libwacom-size "504 KB">
|
---|
[0a5eabf6] | 11 | <!ENTITY libwacom-buildsize "8.1 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 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>libwacom-&libwacom-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="libwacom">
|
---|
| 26 | <primary sortas="a-libwacom">libwacom</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to libwacom</title>
|
---|
| 31 |
|
---|
| 32 | <para>
|
---|
| 33 | The <application>libwacom</application> package contains a library used
|
---|
| 34 | to identify wacom tablets and their model-specific features.
|
---|
| 35 | </para>
|
---|
| 36 |
|
---|
[9029db2] | 37 | &lfs101_checked;
|
---|
[69a16457] | 38 |
|
---|
| 39 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 40 | <itemizedlist spacing="compact">
|
---|
| 41 | <listitem>
|
---|
| 42 | <para>
|
---|
| 43 | Download (HTTP): <ulink url="&libwacom-download-http;"/>
|
---|
| 44 | </para>
|
---|
| 45 | </listitem>
|
---|
| 46 | <listitem>
|
---|
| 47 | <para>
|
---|
| 48 | Download (FTP): <ulink url="&libwacom-download-ftp;"/>
|
---|
| 49 | </para>
|
---|
| 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
| 52 | <para>
|
---|
| 53 | Download MD5 sum: &libwacom-md5sum;
|
---|
| 54 | </para>
|
---|
| 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
| 57 | <para>
|
---|
| 58 | Download size: &libwacom-size;
|
---|
| 59 | </para>
|
---|
| 60 | </listitem>
|
---|
| 61 | <listitem>
|
---|
| 62 | <para>
|
---|
| 63 | Estimated disk space required: &libwacom-buildsize;
|
---|
| 64 | </para>
|
---|
| 65 | </listitem>
|
---|
| 66 | <listitem>
|
---|
| 67 | <para>
|
---|
| 68 | Estimated build time: &libwacom-time;
|
---|
| 69 | </para>
|
---|
| 70 | </listitem>
|
---|
| 71 | </itemizedlist>
|
---|
| 72 |
|
---|
| 73 | <bridgehead renderas="sect3">libwacom Dependencies</bridgehead>
|
---|
| 74 |
|
---|
| 75 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 76 | <para role="required">
|
---|
| 77 | <xref linkend="libgudev"/>
|
---|
| 78 | </para>
|
---|
| 79 |
|
---|
| 80 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 81 | <para role="recommended">
|
---|
| 82 | <xref linkend="libxml2"/>
|
---|
| 83 | </para>
|
---|
| 84 |
|
---|
| 85 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 86 | <para role="optional">
|
---|
[914049f6] | 87 | <xref linkend="doxygen"/>,
|
---|
[844770f] | 88 | <xref linkend="git"/>,
|
---|
[51718d1] | 89 | <xref linkend="librsvg"/>,
|
---|
| 90 | <xref linkend="valgrind"/> (optional for some tests), and
|
---|
| 91 | <ulink url="https://docs.pytest.org/en/stable/">pytest</ulink>
|
---|
[69a16457] | 92 | </para>
|
---|
| 93 |
|
---|
| 94 | <para condition="html" role="usernotes">
|
---|
| 95 | User Notes: <ulink url="&blfs-wiki;/libwacom"/>
|
---|
| 96 | </para>
|
---|
| 97 | </sect2>
|
---|
| 98 |
|
---|
| 99 | <sect2 role="installation">
|
---|
| 100 | <title>Installation of libwacom</title>
|
---|
| 101 |
|
---|
[51718d1] | 102 | <!-- Fixed in libwacom-1.7
|
---|
[de35807d] | 103 | <para>
|
---|
| 104 | First, adapt the udev rules to upstream udev/kernel changes:
|
---|
| 105 | </para>
|
---|
| 106 |
|
---|
| 107 | <screen><userinput remap="pre">sed -i 's/ACTION!="add|change"/ACTION=="remove"/' tools/65-libwacom.rules.in</userinput></screen>
|
---|
[51718d1] | 108 | -->
|
---|
[de35807d] | 109 |
|
---|
[69a16457] | 110 | <para>
|
---|
| 111 | Install <application>libwacom</application> by running the following
|
---|
| 112 | commands:
|
---|
| 113 | </para>
|
---|
| 114 |
|
---|
[914049f6] | 115 | <screen><userinput>mkdir build &&
|
---|
| 116 | cd build &&
|
---|
| 117 |
|
---|
[51718d1] | 118 | meson --prefix=/usr -Dudev-dir=/lib/udev -Dtests=disabled .. &&
|
---|
[914049f6] | 119 | ninja</userinput></screen>
|
---|
[69a16457] | 120 |
|
---|
| 121 | <para>
|
---|
[914049f6] | 122 | To test the results, issue: <command>ninja test</command>.
|
---|
[51718d1] | 123 | To run additional tests, install
|
---|
| 124 | <ulink url="https://docs.pytest.org/en/stable/">pytest</ulink> and remove
|
---|
| 125 | the "-Dtests=disabled" option from the meson line above.
|
---|
[69a16457] | 126 | </para>
|
---|
| 127 |
|
---|
| 128 | <para>
|
---|
| 129 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 130 | </para>
|
---|
| 131 |
|
---|
[914049f6] | 132 | <screen role="root"><userinput>ninja install</userinput></screen>
|
---|
[69a16457] | 133 |
|
---|
| 134 | </sect2>
|
---|
| 135 |
|
---|
| 136 | <sect2 role="commands">
|
---|
| 137 | <title>Command Explanations</title>
|
---|
| 138 |
|
---|
[914049f6] | 139 | <para>
|
---|
| 140 | <parameter>-Dudev-dir=/lib/udev</parameter>: This parameter sets the
|
---|
| 141 | proper installation directory for udev rules.
|
---|
| 142 | </para>
|
---|
[69a16457] | 143 |
|
---|
[51718d1] | 144 | <para>
|
---|
| 145 | <parameter>-Dtests=disabled</parameter>: This parameter disables some of
|
---|
| 146 | the more advanced tests because they require
|
---|
| 147 | <ulink url="https://docs.pytest.org/en/stable/">pytest</ulink> to work
|
---|
| 148 | properly.
|
---|
| 149 | </para>
|
---|
| 150 |
|
---|
[69a16457] | 151 | </sect2>
|
---|
| 152 |
|
---|
| 153 | <sect2 role="content">
|
---|
| 154 | <title>Contents</title>
|
---|
| 155 |
|
---|
| 156 | <segmentedlist>
|
---|
| 157 | <segtitle>Installed Programs</segtitle>
|
---|
| 158 | <segtitle>Installed Libraries</segtitle>
|
---|
| 159 | <segtitle>Installed Directories</segtitle>
|
---|
| 160 |
|
---|
| 161 | <seglistitem>
|
---|
| 162 | <seg>
|
---|
| 163 | libwacom-list-local-devices
|
---|
| 164 | </seg>
|
---|
| 165 | <seg>
|
---|
| 166 | libwacom.so
|
---|
| 167 | </seg>
|
---|
| 168 | <seg>
|
---|
| 169 | /usr/include/libwacom-1.0 and
|
---|
| 170 | /usr/share/libwacom
|
---|
| 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 |
|
---|
[c744d0a5] | 180 | <varlistentry id="libwacom-list-local-devices">
|
---|
| 181 | <term><command>libwacom-list-local-devices</command></term>
|
---|
| 182 | <listitem>
|
---|
| 183 | <para>
|
---|
[4c24eb0a] | 184 | lists tablet devices that are connected to the system
|
---|
[c744d0a5] | 185 | </para>
|
---|
| 186 | <indexterm zone="libwacom libwacom-list-local-devices">
|
---|
| 187 | <primary sortas="b-libwacom-list-local-devices">libwacom-list-local-devices</primary>
|
---|
| 188 | </indexterm>
|
---|
| 189 | </listitem>
|
---|
| 190 | </varlistentry>
|
---|
| 191 |
|
---|
[69a16457] | 192 | <varlistentry id="libwacom-lib">
|
---|
| 193 | <term><filename class="libraryfile">libwacom.so</filename></term>
|
---|
| 194 | <listitem>
|
---|
| 195 | <para>
|
---|
[4c24eb0a] | 196 | contains functions used for accessing Wacom information
|
---|
[69a16457] | 197 | </para>
|
---|
| 198 | <indexterm zone="libwacom libwacom-lib">
|
---|
| 199 | <primary sortas="c-libwacom">libwacom.so</primary>
|
---|
| 200 | </indexterm>
|
---|
| 201 | </listitem>
|
---|
| 202 | </varlistentry>
|
---|
| 203 |
|
---|
| 204 | </variablelist>
|
---|
| 205 |
|
---|
| 206 | </sect2>
|
---|
| 207 |
|
---|
| 208 | </sect1>
|
---|