Kristian Høgsberg | 1b064cc | 2009-11-20 17:08:28 -0500 | [diff] [blame] | 1 | libdrm - userspace library for drm |
Eric Engestrom | 403f3c9 | 2018-11-07 16:15:32 +0000 | [diff] [blame] | 2 | ---------------------------------- |
Adam Jackson | 07d23f9 | 2005-07-10 22:42:42 +0000 | [diff] [blame] | 3 | |
Eric Engestrom | 403f3c9 | 2018-11-07 16:15:32 +0000 | [diff] [blame] | 4 | This is libdrm, a userspace library for accessing the DRM, direct rendering |
| 5 | manager, on Linux, BSD and other operating systems that support the ioctl |
| 6 | interface. |
| 7 | The library provides wrapper functions for the ioctls to avoid exposing the |
| 8 | kernel interface directly, and for chipsets with drm memory manager, support |
| 9 | for tracking relocations and buffers. |
| 10 | New functionality in the kernel DRM drivers typically requires a new libdrm, |
| 11 | but a new libdrm will always work with an older kernel. |
| 12 | |
| 13 | libdrm is a low-level library, typically used by graphics drivers such as |
| 14 | the Mesa drivers, the X drivers, libva and similar projects. |
Brian | 5c8561a | 2007-04-25 14:52:29 -0600 | [diff] [blame] | 15 | |
| 16 | |
| 17 | Compiling |
| 18 | --------- |
| 19 | |
Eric Engestrom | fc93365 | 2019-10-18 18:05:45 +0100 | [diff] [blame] | 20 | To set up meson: |
Dylan Baker | fd9bcb7 | 2017-12-15 14:40:29 -0800 | [diff] [blame] | 21 | |
| 22 | meson builddir/ |
| 23 | |
| 24 | By default this will install into /usr/local, you can change your prefix |
| 25 | with --prefix=/usr (or `meson configure builddir/ -Dprefix=/usr` after |
| 26 | the initial meson setup). |
| 27 | |
| 28 | Then use ninja to build and install: |
| 29 | |
| 30 | ninja -C builddir/ install |
| 31 | |
| 32 | If you are installing into a system location you will need to run install |
| 33 | separately, and as root. |