Introduction to libdrm

libdrm provides core library routines for the X Window System to directly interface with video hardware using the Linux kernel's Direct Rendering Manager (DRM).

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

Package Information

libdrm Dependencies


Xorg Libraries


docbook-xml-4.5, docbook-xsl-1.78.1 and libxslt-1.1.28 (to build manual pages) and Valgrind

User Notes:

Installation of libdrm

Install libdrm by running the following commands:

sed -e "/pthread-stubs/d" -i &&
autoreconf -fi &&
./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 option 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 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 2013-08-18 14:52:29 -0700