sudo apt-get update && sudo apt-get install build-essential cmake ninja-build
make sure to install the latest FLTK requirements:
sudo apt-get update && sudo apt-get install -y libpango1.0-dev libx11-dev libxext-dev libxft-dev libxinerama-dev libxcursor-dev libxrender-dev libxfixes-dev libgl1-mesa-dev libglu1-mesa-dev
and egui requirements as well:
sudo apt-get install libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libspeechd-dev libxkbcommon-dev libssl-dev
On pure wayland only desktop enable-features:
toml
[dependencies]
egui-fltk-frontend = { version = "0.18", features = ["wayland"] }
Note: on xwayland based desktop (like gnome 42+) doesn't require to enable the "wayland" features.
Running example *.rs files:
cargo run --example main
cargo run --example image
or click here on how to use it inside Cargo.toml
main_example running on WSL2 + X Server: