Installation of Libinput
Install libinput by running the
following commands:
mkdir build &&
cd build &&
meson setup --prefix=$XORG_PREFIX \
--buildtype=release \
-D debug-gui=false \
-D tests=false \
-D libwacom=false \
-D udev-dir=/usr/lib/udev \
.. &&
ninja
Now, as the root
user:
ninja install
If you have passed -D
documentation=true
to meson, you can install the
generated documentation by running the following commands as the
root
user:
install -v -dm755 /usr/share/doc/libinput-1.26.2/html &&
cp -rv Documentation/* /usr/share/doc/libinput-1.26.2/html
Command Explanations
--buildtype=release
:
Specify a buildtype suitable for stable releases of the package,
as the default may produce unoptimized binaries.
-D debug-gui=false
: This
switch disables creation of a visual debug helper for libinput.
Remove if you want it, and you have GTK3 installed.
-D libwacom=false
: Remove
this option if you have libwacom installed, or if you are
installing GNOME.
-D
udev-dir=/usr/lib/udev
: In case that the value of
XORG_PREFIX
is not set to /usr
, this option prevents the package from
installing Udev rules and helpers into $XORG_PREFIX/lib/udev
which is not searched by
Udev daemon. This option is not needed for systems with
XORG_PREFIX
set to /usr
, but does no harm.