Libdrm-2.4.123

Introduction to Libdrm

Libdrm provides a userspace library for accessing the direct rendering manager (DRM) on operating systems that support the ioctl interface. Libdrm is a low-level library, typically used by graphics drivers such as the Mesa DRI drivers, the X drivers, libva and similar projects.

libdrm Dependencies

Recommended

Optional

libatomic_ops (required by architectures without native atomic operations)

Installation of Libdrm

Install libdrm by running the following commands:

mkdir build &&
cd    build &&

meson setup --prefix=/usr         \
            --buildtype=release   \
            -D udev=true          \
            -D valgrind=disabled  \
            .. &&

ninja

Now, as the root user:

ninja install

32-bit Installation of Libdrm

First clean the build directory:

rm -rf *

Install lib32-libdrm by running the following commands:

CC="gcc -m32" CXX="g++ -m32"                 \
PKG_CONFIG_PATH=/usr/lib32/pkgconfig         \
meson setup --prefix=/usr                    \
            --buildtype=release              \
            --libdir=/usr/lib32              \
            -D udev=true                     \
            -D valgrind=disabled             \
            .. &&

ninja

Now, as the root user:

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

Command Explanations

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

-D udev=true: This parameter enables support for using Udev instead of mknod.

-D valgrind=disabled: This parameter disables building libdrm with valgrind support. This fixes building some packages that use libdrm. Change this parameter to "enabled" (or remove it) if you need support for valgrind.

Contents

Installed Programs: None
Installed Libraries: libdrm_amdgpu.so, libdrm_intel.so, libdrm_nouveau.so, libdrm_radeon.so, and libdrm.so
Installed Directories: /usr/include/libdrm and /usr/share/libdrm

Short Descriptions

libdrm_amdgpu.so

contains the AMDGPU specific Direct Rendering Manager functions

libdrm_intel.so

contains the Intel specific Direct Rendering Manager functions

libdrm_nouveau.so

contains the open source nVidia (Nouveau) specific Direct Rendering Manager functions

libdrm_radeon.so

contains the AMD Radeon specific Direct Rendering Manager functions

libdrm.so

contains the Direct Rendering Manager API functions