libdrm-2.4.99

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

### Chapter 25. X Libraries

- Prev

  libdazzle-3.32.3

- Next

  libepoxy-1.5.3

- Up
- Home

# libdrm-2.4.99

## Introduction to libdrm

libdrm provides a user space library for accessing the DRM, direct rendering manager, 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-9.0 platform.

### Package Information

- Download (HTTP): https://dri.freedesktop.org/libdrm/libdrm-2.4.99.tar.bz2

- Download MD5 sum: 72539626815b35159a63d45bc4c14ee6

- Download size: 836 KB

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

- Estimated build time: less than 0.1 SBU (add 0.8 SBU for tests)

### libdrm Dependencies

#### Recommended

Xorg Libraries (for Intel KMS API support required by Mesa)

#### Optional

Cairo-1.16.0 (for tests), CMake-3.15.2 (could be used to find dependencies without pkgconfig files), docbook-xml-4.5, docbook-xsl-1.79.2 and libxslt-1.1.33 (to build manual pages), libatomic_ops-7.6.10 (required by architectures without native atomic operations), Valgrind-3.15.0, and CUNIT (for AMDGPU tests)

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/libdrm

## Installation of libdrm

Install libdrm by running the following commands:

    mkdir build &&
    cd    build &&

    meson --prefix=$XORG_PREFIX -Dudev=true &&
    ninja

To check the results, issue ninja test. One test, 'threaded' in the nouveau subdirectory, is known to fail with a 30 second timeout.

Now, as the `root` user:

    ninja install

## Command Explanations

`-Dudev=true`: This parameter enables support for using Udev instead of mknod.

## Contents

Installed Programs: None
Installed Libraries: libdrm_amdgpu.so, libdrm_intel.so, libdrm_nouveau.so, libdrm_radeon.so, libdrm.so, and libkms.so
Installed Directories: /usr/include/libdrm, /usr/include/libkms, 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.
`libkms.so` | contains API functions for kernel mode setting abstraction.

Last updated on 2019-08-16 15:28:01 -0700

- Prev

  libdazzle-3.32.3

- Next

  libepoxy-1.5.3

- Up
- Home