Skip to content

Instantly share code, notes, and snippets.

@SpikedPaladin
Last active March 19, 2025 07:23
Show Gist options
  • Save SpikedPaladin/f43c8f53080e4116082556d87f2279f4 to your computer and use it in GitHub Desktop.
Save SpikedPaladin/f43c8f53080e4116082556d87f2279f4 to your computer and use it in GitHub Desktop.
GTK4/Adwaita/Vala/Blueprint on Windows

Info

This guide will show how to build and run this project on Windows system using MSYS2

Installing MSYS2

  • Download and install MSYS2
  • Navigate to C:\msys64 and open mingw64.exe
  • Update packages pacman -Syyu
  • Install compilers and libraries
pacman -S mingw-w64-x86_64-gcc \
mingw-w64-x86_64-vala \
mingw-w64-x86_64-blueprint-compiler \
mingw-w64-x86_64-meson \
mingw-w64-x86_64-nsis \
mingw-w64-x86_64-gtk4 \
mingw-w64-x86_64-libadwaita
  • Install git pacman -S git
  • Clone the repo git clone https://github.com/SpikedPaladin/ValaGtkTemplate
  • Navigate to cloned folder and build application
    cd ValaGtkTemplate
    meson setup build
    meson compile win-installer -C build
  • Installer located in C:\msys64\home\%USERNAME%\ValaGtkTemplate\build\Example Setup.exe
  • Also you can run example.exe located in C:\msys64\home\%USERNAME%\ValaGtkTemplate\build\dist\bin

Image showing running Gtk4 application inside Windows 10 virtual machine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment