#### Beyond Linux® From Scratch (systemd Edition) - Version 11.1

### Chapter 9. General Libraries

- Prev

  libuv-1.43.0

- Next

  libxml2-2.9.13

- Up
- Home

# libxkbcommon-1.4.0

## Introduction to libxkbcommon

libxkbcommon is a keymap compiler and support library which processes a reduced subset of keymaps as defined by the XKB specification.

This package is known to build and work properly using an LFS-11.1 platform.

### Package Information

- Download (HTTP): https://xkbcommon.org/download/libxkbcommon-1.4.0.tar.xz

- Download MD5 sum: e021899fe359240757684be08f22135f

- Download size: 464 KB

- Estimated disk space required: 18 MB (with tests)

- Estimated build time: 0.2 SBU (with tests)

### libxkbcommon Dependencies

#### Required

xkeyboard-config-2.35.1

#### Recommended

libxcb-1.14, Wayland-1.20.0, and wayland-protocols-1.25

#### Optional

Doxygen-1.9.3

User Notes: https://wiki.linuxfromscratch.org/blfs/wiki/libxkbcommon

## Installation of libxkbcommon

Install libxkbcommon by running the following commands:

    mkdir build &&
    cd    build &&

    meson --prefix=/usr --buildtype=release -Denable-docs=false .. &&
    ninja

To test the results, issue: ninja test.

Now, as the `root` user:

    ninja install

## Command Explanations

`--buildtype=release`: Specify a buildtype suitable for stable releases of the package, as the default may produce unoptimized binaries.

`-Denable-docs=false`: This switch disables documentation generation. Remove it if Doxygen-1.9.3 is installed.

mv -v /usr/share/doc/libxkbcommon{,-1.4.0}: If you removed -Denable-docs=false, use this command to install the documentation in a versioned directory.

## Contents

Installed Programs: xkbcli
Installed Libraries: libxkbcommon.so, libxkbcommon-x11.so, and libxkbregistry.so
Installed Directories: /usr/include/xkbcommon, /usr/libexec/xkbcommon, and /usr/share/doc/libxkbcommon-1.4.0

### Short Descriptions

xkbcli | provides a debugger and compiler for XKB keymaps
`libxkbcommon.so` | contains the libxkbcommon API functions
`libxkbcommon-x11.so` | contains the libxkbcommon X11 specific API functions
`libxkbregistry.so` | contains a list of available XKB models, layouts, and variants for a given ruleset

Last updated on

- Prev

  libuv-1.43.0

- Next

  libxml2-2.9.13

- Up
- Home