• Home
  • Raw
  • Download

Lines Matching +full:libinput +full:- +full:test +full:- +full:suite +full:- +full:log

4 libinput build instructions
12 Instructions on how to build libinput and its tools and how to build against
13 libinput.
16 system-provided libinput with one from the git repository, see
21 ------------------------------------------------------------------------------
22 Distribution repositories for libinput from git
23 ------------------------------------------------------------------------------
25 Some distributions provide package repositories for users that want to test
26 the latest libinput without building it manually.
28 .. note:: The list below is provided for convenience. The libinput community
30 correct, up-to-date and/or unmodified from the git branch. Due dilligence
33 The following repositories provide an up-to-date package for libinput:
35 - **Arch:** https://aur.archlinux.org/packages/libinput-git/
36 - **Fedora:** https://copr.fedorainfracloud.org/coprs/whot/libinput-git/
39 the repository and install libinput.
44 ------------------------------------------------------------------------------
45 Building libinput
46 ------------------------------------------------------------------------------
48 libinput uses `meson <https://www.mesonbuild.com>`_ and
49 `ninja <https://www.ninja-build.org>`_. A build is usually the three-step
56 $> git clone https://gitlab.freedesktop.org/libinput/libinput
57 $> cd libinput
58 $> meson setup --prefix=/usr builddir/
59 $> ninja -C builddir/
60 $> sudo ninja -C builddir/ install
63 When running libinput versions 1.11.x or earlier, you must run
67 $> sudo systemd-hwdb update
74 $> meson setup --prefix=/usr -Ddocumentation=false builddir/
85 $> meson configure builddir/ -Dprefix=/some/other/prefix -Ddocumentation=true
86 $> ninja -C builddir
87 $> sudo ninja -C builddir/ install
98 $> rm -r builddir/
99 $> meson setup --prefix=....
108 To verify the install worked correctly, check that libinput.so.x.x.x is in
113 $> ldconfig -p | grep libinput | awk '{print $NF}' | xargs ls -l
114 …lrwxrwxrwx 1 root root 14 lug 22 13:06 /usr/lib/x86_64-linux-gnu/libinput.so -> libinput.so.10
115 …rwxrwxrwx 1 root root 19 lug 22 13:06 /usr/lib/x86_64-linux-gnu/libinput.so.10 -> libinput.so…
116 -rwxr-xr-x 1 root root 1064144 lug 22 13:06 /usr/lib/x86_64-linux-gnu/libinput.so.10.13.0
121 Reverting to the system-provided libinput package
125 manager to reinstall the libinput package. In some cases, this may leave
126 files in the system (e.g. ``/usr/lib/libinput.la``) but these files are
128 from the libinput source directory:
133 $> sudo ninja -C builddir/ uninstall
138 The following commands reinstall the current system package for libinput,
141 - **Debian/Ubuntu** based distributions: ``sudo apt-get install --reinstall libinput``
142 - **Fedora 22** and later: ``sudo dnf reinstall libinput``
143 - **RHEL/CentOS/Fedora 21** and earlier: ``sudo yum reinstall libinput``
144 - **openSUSE**: ``sudo zypper install --force libinput10``
145 - **Arch**: ``sudo pacman -S libinput``
155 On systems with SELinux, overwriting the distribution-provided package with
156 a manually built libinput may cause SELinux denials. This usually manifests
157 when gdm does not start because it is denied access to libinput. The journal
158 shows a log message in the form of:
163 …r pid=23268 comm="gnome-shell" path="/usr/lib64/libinput.so.10.12.2" dev="dm-0" ino=1709093 scont…
164 …in org.gnome.Shell.desktop[23270]: /usr/bin/gnome-shell: error while loading shared libraries: lib…
167 The summary of this error message is that gdm's gnome-shell runs in the
168 ``system_u:system_r:xdm_t`` context but libinput is installed with the
176 $> sudo restorecon /usr/lib*/libinput.so.*
183 ------------------------------------------------------------------------------
185 ------------------------------------------------------------------------------
187 libinput has a few build-time dependencies that must be installed prior to
191 …ntinuous Integration file <https://gitlab.freedesktop.org/libinput/libinput/blob/main/.gitlab-ci.y…
196 distribution uses to build the libinput package. These can be installed
199 - **Debian/Ubuntu** based distributions: ``sudo apt-get build-dep libinput``
200 - **Fedora 22** and later: ``sudo dnf builddep libinput``
201 - **RHEL/CentOS/Fedora 21** and earlier: ``sudo yum-builddep libinput``
202 - **openSUSE**: ::
204 $> sudo zypper modifyrepo --enable ``zypper repos | grep source | awk '{print $5}'``
205 $> sudo zypper source-install -d libinput10
207 $> sudo zypper modifyrepo --disable ``zypper repos | grep source | awk '{print $5}'``
210 - **Arch**: ::
212 $> sudo pacman -S asp
213 $> cd $(mktemp -d)
214 $> asp export libinput
215 $> cd libinput
216 $> makepkg --syncdeps --nobuild --noextract
222 `this blog post here <https://who-t.blogspot.com/2018/07/meson-fails-with-native-dependency-not-fou…
235 ------------------------------------------------------------------------------
237 ------------------------------------------------------------------------------
239 libinput supports several meson options to disable parts of the build. See
245 meson setup --prefix=/usr -Dsomefeature=false builddir
247 Where ``-Dsomefeature=false`` may be one of:
249 - ``-Ddocumentation=false``
252 - ``-Dtests=false``
253 Disables the test suite. The test suite is only needed on developer
255 - ``-Ddebug-gui=false``
256 Disables the ``libinput debug-gui`` helper tool (see :ref:`tools`),
257 dropping GTK and other build dependencies. The debug-gui is only
259 - ``-Dlibwacom=false``
260 libwacom is required by libinput's tablet code to gather additional
262 It is not recommended to disable libwacom unless libinput is used in an
263 environment where tablet support is not required. libinput provides tablet
269 ------------------------------------------------------------------------------
270 Building against libinput
271 ------------------------------------------------------------------------------
273 libinput provides a
274 `pkg-config <https://www.freedesktop.org/wiki/Software/pkg-config/>`_ file.
278 PKG_CHECK_MODULES(LIBINPUT, "libinput")
283 dep_libinput = dependency('libinput')
287 find_package(Libinput)
288 target_link_libraries(myprogram PRIVATE Libinput::Libinput)
291 libinput is:
296 gcc -o myprogram myprogram.c ``pkg-config --cflags --libs libinput``
299 For further information on using pkgconfig see the pkg-config documentation.