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.8-systemd platform.

Package Information

  • Download (HTTP):

  • Download MD5 sum: 543b2d28359ef33974fa0e772dd61732

  • Download size: 628 KB

  • Estimated disk space required: 15 MB (with the test suite)

  • Estimated build time: 0.4 SBU (up to an additional 2.0 SBU for the test suite)

libdrm Dependencies



Cairo-1.14.2 (for the testsuite), docbook-xml-4.5, docbook-xsl-1.78.1 and libxslt-1.1.28 (to build manual pages), and Valgrind-3.11.0

User Notes:

Installation of libdrm

Install libdrm by running the following commands:

sed -e "/pthread-stubs/d" -i &&
autoreconf -fiv &&
./configure --prefix=/usr --enable-udev &&

To check the results, issue make check.

Now, as the root user:

make install

Command Explanations

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

--enable-udev: This parameter enables support for using Udev instead of mknod.


Installed Programs: None
Installed Libraries:,,,, and
Installed Directories: /usr/include/libdrm and /usr/include/libkms

Short Descriptions

contains the Direct Rendering Manager API functions.

contains the AMD specific DRM functions.

contains the Intel specific Direct Rendering Manager functions.

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

contains the AMD Radeon specific Direct Rendering Manager functions.

contains API functions for kernel mode setting abstraction.

Last updated on 2015-10-05 17:42:29 -0500