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 zylix2. Build the GTK App#
cd platforms/linux/zylix-gtk
make3. Run#
make run-counter
# or
make run-todo4. 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-configare installed. - App does not start: run
./build/zylix-counterdirectly to see errors.