Skip to content

Build turtile

Miguel López López edited this page Nov 9, 2024 · 4 revisions

Dependencies

  • wayland
  • wayland-protocols
  • wlroots-0.18
  • meson
  • ninja
  • gcc
  • cmake
  • pkg-config
  • libxkbcommon
  • libconfig
  • json-c
  • uuid

Steps

1. Clone the Repository

Start by cloning the project repository:

git clone https://github.com/migueldeoleiros/turtile.git
cd turtile

2. Install Dependencies

On Arch Linux:

Arch Linux typically provides the latest versions directly from its repositories:

sudo pacman -Syu
sudo pacman -S meson ninja gcc cmake pkgconf libxkbcommon libconfig json-c wayland wayland-protocols wlroots

On Ubuntu:

Ubuntu’s repositories may not provide the latest versions of certain libraries. To ensure compatibility, we build some dependencies from source. If you use ubuntu or other debian based distro you can check out the commands in the [CI build](https://github.com/migueldeoleiros/turtile/blob/master/.github/workflows/main.yml)

3. Configure the Project with Meson

Once dependencies are installed, configure the turtile project:

meson setup build

4. Build the Project

Compile the project:

meson compile -C build

You’ll be left with a turtile and ttcli binaries inside the build directory