diff --git a/book/src/getting-started/building.md b/book/src/getting-started/building.md index 83edc917af..d32307a4f0 100644 --- a/book/src/getting-started/building.md +++ b/book/src/getting-started/building.md @@ -2,6 +2,10 @@ PhotoCraft uses the Rust workspace at the repository root. Install the stable Rust toolchain, clone the repository, and run commands from that root. +On Linux, install the windowing, GL and GTK development packages first. The development guide's +[Prerequisites](https://github.com/storytold/photocraft/blob/main/docs/development.md#prerequisites) +list them for Debian/Ubuntu, Fedora, Arch and openSUSE. + ```sh cargo build --workspace cargo run --release -p photocraft -- image.psd diff --git a/docs/development.md b/docs/development.md index 7d2f09bf00..3b69f0d036 100644 --- a/docs/development.md +++ b/docs/development.md @@ -3,7 +3,11 @@ ## Prerequisites - Rust stable (1.95+). Add the web target with `rustup target add wasm32-unknown-unknown`. -- macOS, Windows or Linux. Linux needs `libxkbcommon-dev libwayland-dev libx11-dev libxrandr-dev libxi-dev libgl1-mesa-dev libgtk-3-dev`. +- macOS, Windows or Linux. On Linux, install the windowing, GL and GTK development packages: + - Debian/Ubuntu: `sudo apt install libxkbcommon-dev libwayland-dev libx11-dev libxrandr-dev libxi-dev libgl1-mesa-dev libgtk-3-dev` + - Fedora/RHEL: `sudo dnf install libxkbcommon-devel wayland-devel libX11-devel libXrandr-devel libXi-devel mesa-libGL-devel gtk3-devel` + - Arch: `sudo pacman -S libxkbcommon wayland libx11 libxrandr libxi mesa gtk3` + - openSUSE: `sudo zypper install libxkbcommon-devel wayland-devel libX11-devel libXrandr-devel libXi-devel Mesa-libGL-devel gtk3-devel` ### Windows source builds