blob: da995d0b3cea264a7f03b1ccefc98a5bf8ace773 [file] [log] [blame]
Kristian Høgsberg1b064cc2009-11-20 17:08:28 -05001libdrm - userspace library for drm
Eric Engestrom403f3c92018-11-07 16:15:32 +00002----------------------------------
Adam Jackson07d23f92005-07-10 22:42:42 +00003
Eric Engestrom403f3c92018-11-07 16:15:32 +00004This is libdrm, a userspace library for accessing the DRM, direct rendering
5manager, on Linux, BSD and other operating systems that support the ioctl
6interface.
7The library provides wrapper functions for the ioctls to avoid exposing the
8kernel interface directly, and for chipsets with drm memory manager, support
9for tracking relocations and buffers.
10New functionality in the kernel DRM drivers typically requires a new libdrm,
11but a new libdrm will always work with an older kernel.
12
13libdrm is a low-level library, typically used by graphics drivers such as
14the Mesa drivers, the X drivers, libva and similar projects.
Brian5c8561a2007-04-25 14:52:29 -060015
16
17Compiling
18---------
19
Eric Engestromfc933652019-10-18 18:05:45 +010020To set up meson:
Dylan Bakerfd9bcb72017-12-15 14:40:29 -080021
22 meson builddir/
23
24By default this will install into /usr/local, you can change your prefix
25with --prefix=/usr (or `meson configure builddir/ -Dprefix=/usr` after
26the initial meson setup).
27
28Then use ninja to build and install:
29
30 ninja -C builddir/ install
31
32If you are installing into a system location you will need to run install
33separately, and as root.