Skip to content
forked from mecha-org/mctk

Mecha Toolkit for Linux Wayland Clients

License

Notifications You must be signed in to change notification settings

kvvarun-mecha/mctk

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mctk

Mecha Toolkit for Linux Wayland Clients

Running Examples

This guide provides step-by-step instructions to set up and run the MCTK examples on a Debian/Ubuntu-based system.

Prerequisites

  1. Wayland Compositor:

    • Install sway (a Wayland compositor):
      sudo apt install sway
  2. Wayland Development Library:

    • Install libwayland-dev:
      sudo apt install libwayland-dev
  3. Dependencies:

    • Ensure pkg-config is installed:
      sudo apt install pkg-config
  4. Rust:

    • Install the latest Rust toolchain if not already installed:
      curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Steps to Run the Examples

  1. Start the Wayland Compositor:

    • Open a terminal and run:
      sway
  2. Set Up the Example Environment:

    • Open another terminal (while sway is running) and set the WAYLAND_DISPLAY environment variable:
      export WAYLAND_DISPLAY=wayland-1
  3. Run an Example:

    • Navigate to the example directory you want to run (e.g., examples/hello-world) and use cargo run:
      cd examples/hello-world
      cargo run

About

Mecha Toolkit for Linux Wayland Clients

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%