Skip to main content
  1. Tutorials/

Linux Tutorial

·1 min
Author
Zylix Team
Build once, run natively on 6 platforms

Overview
#

Run the GTK4 Todo/Counter demos on Linux.

Prerequisites
#

  • GTK 4.0+
  • GCC or Clang
  • pkg-config
  • Make

1. Clone the Repo
#

git clone https://github.com/kotsutsumi/zylix.git
cd zylix

2. Build the GTK App
#

cd platforms/linux/zylix-gtk
make

3. Run
#

make run-counter
# or
make run-todo

4. Confirm State Updates
#

Use the counter buttons or add a Todo item and verify the UI updates.

Key files:

  • platforms/linux/zylix-gtk/main.c (Counter UI)
  • platforms/linux/zylix-gtk/todo_app.c (Todo UI)

Troubleshooting
#

  • Build fails: verify GTK4 dev packages and pkg-config are installed.
  • App does not start: run ./build/zylix-counter directly to see errors.

Next Steps
#