libdrm-2.4.74

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-7.10 platform.

Package Information

libdrm Dependencies

Recommended

Optional

Cairo-1.14.6 (for tests), docbook-xml-4.5, docbook-xsl-1.79.1 and libxslt-1.1.29 (to build manual pages), Valgrind-3.12.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:

sed -i "/pthread-stubs/d" configure.ac  &&
autoreconf -fiv                         &&

./configure --prefix=/usr --enable-udev &&
make

To check the results, issue make check. Tests may hang for unknown reasons. If nouveau threaded test hangs, you can disable it with sed -i 's/^TESTS/#&/' tests/nouveau/Makefile.in.

Now, as the root user:

make install

Command Explanations

sed -e "/pthread-stubs/d" -i configure.ac: This sed removes a dependency on the libpthread-stubs package which is useless on Linux.

--enable-udev: 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/lib{drm,kms}

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 2016-12-03 09:27:21 -0600