# \[Preview\] Testing GtkAda4 with Alire on Ubuntu 26.04

**URL:** <https://forum.ada-lang.io/t/preview-testing-gtkada4-with-alire-on-ubuntu-26-04/4899>\
**Category:** General\
**Created:** [October 27, 2026, 11:20am UTC](https://forum.ada-lang.io/t/preview-testing-gtkada4-with-alire-on-ubuntu-26-04/4899 "2026-10-27T11:20:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Max](https://forum.ada-lang.io/user_avatar/forum.ada-lang.io/max/32/21_2.png) [@Max](https://forum.ada-lang.io/u/Max)\
**Post date:** [October 27, 2026, 11:20am UTC](https://forum.ada-lang.io/t/preview-testing-gtkada4-with-alire-on-ubuntu-26-04/4899/1 "2026-10-27T11:20:41Z")

</div>

Hi everyone,

If you are running **Ubuntu 26.04** , you can now try out the **GtkAda4** crate directly via Alire.

**Prerequisites:**

- `alr` (Alire package manager) installed.
- GTK4 4.22+ development libraries:

```bash
# Installs GTK 4.22.4 on Ubuntu 26.04
sudo apt install libgtk-4-dev

```

**Quick Start:**

```bash
alr init --bin gtkada4_test
cd gtkada4_test
alr with gtkada4 --use=https://github.com/AdaCore/gtkada
Requested changes:

   ✓ gtkada4 ^27.0.0 (add)
                          
Changes to dependency solution:

   New solution is incomplete.
   +📌 gtkada4 27.0.0 (new,path=alire/cache/pins/gtkada4,url=https://github.com/AdaCore/gtkada)
   +📦 make 4.4.1 (new,indirect,system package)
   +📦 pkg_config 2.5.1 (new,indirect,system package)
   Missing:
   +❗ libgtk4 >=4.22.2 (new,missing:unknown,indirect)

Do you want to proceed?
[Y] Yes [N] No (default is No) 

```

At this point Alire will complain that libgtk4\>=4.22 is not found. You should type **Yes** to proceed! Now you can build the crate:

```bash
alr build

```

You also can build gtkada\_demo:

```bash
alr exec -- gprbuild -P gtkada_demo/gtkada_demo.gpr

```

If you had configured Alire to avoid shared dependency (`alr settings --global --set dependencies.shared false`) then you can lauch the demo as

```bash
./alire/cache/pins/gtkada4/gtkada_demo/gtkada_demo

```

Oherwise find it somewhere in `$HOME/.local/share/alire/`

Feel free to test it out and report any issues or feedback here. Happy hacking with Ada and GTK4!

---

<div class="post-metadata">

**Author:** ![Chris660](https://forum.ada-lang.io/letter_avatar_proxy/v4/letter/c/aeb1de/32.png) [@Chris660](https://forum.ada-lang.io/u/Chris660)\
**Post date:** [October 27, 2026, 11:45am UTC](https://forum.ada-lang.io/t/preview-testing-gtkada4-with-alire-on-ubuntu-26-04/4899/2 "2026-10-27T11:45:13Z")

</div>

I was able to build the crate and run the demo successfully on Fedora 44, with the minor deviation that the `libepoxy` development packages were also needed:

```bash
sudo dnf install gtk4-devel libepoxy-devel

```

```bash
alr init --bin gtk4ada_test
cd gtk4ada_test/
alr with gtkada4 --use=https://github.com/AdaCore/gtkada
alr build
  ...
✓ Build finished successfully in 89.59 seconds.

```

```bash
alr exec -- gprbuild -P gtkada_demo/gtkada_demo.gpr
  ...
Link
   [link] gtkada_demo.adb

./alire/cache/pins/gtkada4/gtkada_demo/gtkada_demo

```

---

<div class="post-metadata">

**Author:** ![godunko](https://forum.ada-lang.io/user_avatar/forum.ada-lang.io/godunko/32/22_2.png) [@godunko](https://forum.ada-lang.io/u/godunko)\
**Post date:** [October 27, 2026, 11:47am UTC](https://forum.ada-lang.io/t/preview-testing-gtkada4-with-alire-on-ubuntu-26-04/4899/3 "2026-10-27T11:47:51Z")

</div>

And there is first GtkAda4 application ever, see `gtkada4` folder in

> **[GitHub - godunko/nu-pogodi: Nu, Pogodi! Game](https://github.com/godunko/nu-pogodi)**
>
> Nu, Pogodi! Game

🙂
