wayland-tutorial/README.md

33 lines
322 B
Markdown
Raw Normal View History

2024-06-05 21:07:23 +02:00
# Tutorial
- https://wayland-book.com/
## Compiling
2024-06-05 21:14:07 +02:00
```bash
mkdir bin
```
2024-06-05 21:07:23 +02:00
Server
```bash
2024-06-05 21:14:07 +02:00
cc -o ./bin/server ./src/server.c -lwayland-server
2024-06-05 21:07:23 +02:00
```
Client
```bash
2024-06-05 21:14:07 +02:00
cc -o ./bin/client ./src/client.c -lwayland-client
2024-06-05 21:07:23 +02:00
```
## Run
Server
```bash
2024-06-05 21:14:07 +02:00
./bin/server &
2024-06-05 21:07:23 +02:00
```
Client
```bash
2024-06-05 21:14:07 +02:00
WAYLAND_DISPLAY=wayland-1 ./bin/client
2024-06-05 21:07:23 +02:00
```