Skip to content

Commit 1e5e161

Browse files
committed
Mention sample program execution with Linux DRM
1 parent e4e0e70 commit 1e5e161

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

+11
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://gitlab.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
@@ -128,6 +131,14 @@ $ sudo usermod -a -G video $USERNAME
128131

129132
In addition, the framebuffer device can be assigned via the environment variable `FRAMEBUFFER`.
130133

134+
To run demo program with the DRM backend:
135+
136+
```shell
137+
$ sudo ./demo-drm
138+
```
139+
140+
The DRM device can be assigened via the environment variable `DRI_CARD`.
141+
131142
To run demo program with the VNC backend:
132143

133144
```shell

0 commit comments

Comments
 (0)