Libdrm-2.4.129

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.

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

Package Information

  • Download (HTTP): https://dri.freedesktop.org/libdrm/libdrm-2.4.129.tar.xz

  • Download SHA256 Sum: 5978183f978d697e26a50ba066174964efb0ab97caa1ecaa1b861fbe5ddf77dc

  • Download MD5 sum: bb1e3c32f7b55baeb5db598967684713

  • Download size: 2,859.2 KB

  • Estimated disk space required: 6,878.6 KB

  • Estimated build time: less than 0.5 SBU

libdrm Dependencies

Recommended

Optional

"cairo" (for tests), CMake-4.1.3 (could be used to find dependencies without pkgconfig files), docbook-xml-4.5, docbook-xsl-nons-1.79.2, docutils-0.22.3, and libxslt-1.1.43 (to build manual pages), "libatomic_ops" (required by architectures without native atomic operations), "valgrind", and CUnit (for AMDGPU tests)

Installation of Libdrm

Prepare libdrm by running the following commands:

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

Now Build the package, issue:

ninja -C build

To check the results, issue:

ninja -C build test

Now Install, as the root user:

ninja -C build install

Command Explanations

-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