Skip to content

Commit d77ce6e

Browse files
committed
Mention sample program execution with DRM
1 parent efe7d49 commit d77ce6e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ For SDL backend, install the [SDL2 library](https://www.libsdl.org/).
8383
* macOS: `brew install sdl2`
8484
* Ubuntu Linux / Debian: `sudo apt install libsdl2-dev`
8585

86+
For DRM backend, install the [libdrm](https://cgit.freedesktop.org/mesa/drm/).
87+
* Ubuntu Linux / Debian: `sudo apt install libdrm-dev`
88+
8689
For the VNC backend, please note that it has only been tested on GNU/Linux, and the prebuilt [neatvnc](https://github.com/any1/neatvnc) package might be outdated. To ensure you have the latest version, you can build the required packages from source by running the script:
8790
```shell
8891
$ tools/build-neatvnc.sh
@@ -125,6 +128,14 @@ $ sudo usermod -a -G video $USERNAME
125128

126129
In addition, the framebuffer device can be assigned via the environment variable `FRAMEBUFFER`.
127130

131+
To run demo program with the DRM backend:
132+
133+
```shell
134+
$ sudo ./demo-drm
135+
```
136+
137+
The DRM device can be assigened via the environment variable `DRI_CARD`.
138+
128139
To run demo program with the VNC backend:
129140

130141
```shell

0 commit comments

Comments
 (0)