Mecha Toolkit for Linux Wayland Clients
This guide provides step-by-step instructions to set up and run the MCTK examples on a Debian/Ubuntu-based system.
-
Wayland Compositor:
- Install
sway(a Wayland compositor):sudo apt install sway
- Install
-
Wayland Development Library:
- Install
libwayland-dev:sudo apt install libwayland-dev
- Install
-
Dependencies:
- Ensure
pkg-configis installed:sudo apt install pkg-config
- Ensure
-
Rust:
- Install the latest Rust toolchain if not already installed:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
- Install the latest Rust toolchain if not already installed:
-
Start the Wayland Compositor:
- Open a terminal and run:
sway
- Open a terminal and run:
-
Set Up the Example Environment:
- Open another terminal (while
swayis running) and set theWAYLAND_DISPLAYenvironment variable:export WAYLAND_DISPLAY=wayland-1
- Open another terminal (while
-
Run an Example:
- Navigate to the example directory you want to run (e.g.,
examples/hello-world) and usecargo run:cd examples/hello-world cargo run
- Navigate to the example directory you want to run (e.g.,