libgbm-1.0.0

Introduction to libgbm

The libgbm library provides API functions for managing the graphical buffer. It is utilized by various libraries and applications like Wayland compositors. Mesa supplies libgbm, but requires dependencies that aren't needed in order to install just libgbm. This package allows you to install just the library. If you intend to install Mesa-25.2.2, you can install libgbm from that package if you wish. There is no major difference.

libgbm Dependencies

Required

libdrm-2.4.125

Installation of libgbm

Install libgbm by running the following commands:

mkdir build &&
cd    build &&

meson setup --prefix=/usr --buildtype=release .. &&
ninja

Now, as the root user:

ninja install

lib32 Installation of libgbm

Install lib32-libgbm by running the following commands:

rm -rf * &&
CC="gcc -m32" CXX="g++ -m32"         \
PKG_CONFIG_PATH=/usr/lib32/pkgconfig \
meson setup --prefix=/usr            \
            --libdir=/usr/lib32      \
            --buildtype=release      \
            .. &&

ninja

Now, as the root user:

DESTDIR=$PWD/DESTDIR ninja install    &&
cp -vr DESTDIR/usr/lib32/* /usr/lib32 &&
rm -rf DESTDIR                        &&
ldconfig

Command Explanations

[Note]

Note

Inspect meson_options.txt or meson.options for a full list of options.

Contents

Installed Programs: None
Installed Libraries: libgbm
Installed Directories: None

Short Descriptions

libgbm

is the Graphics Buffer Manager library