Can I deploy GTK applications to windows, osx and linux in a self-contained way?

This page summarizes the projects mentioned and recommended in the original post on /r/GTK

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • GTK-for-Windows-Runtime-Environment-Installer

    GTK+ for Windows Runtime Environment Installer (fork from http://gtk-win.sourceforge.net)

  • I was trying, but i couldn't make GTK app working on Windows even after installing runtime environment , which i probably would include in app installer if it would work, so i decided to use AvaloniaUI, which seems to work out of box

  • darling

    Darwin/macOS emulation layer for Linux

  • Else, if you have Linux (not WSL2), I managed to compile a GUI app for it using Darling on Linux (tho it wasn't a GTK one). You can then probably use GTK by installing the GTK dev libs through Homebrew. As for the Rust part you'll need to download an older version of the Xcode command line tools from Apple's website (look at which macOS versions Darling & Xcode support, you'll need a free standard Apple account for that) and then you can install the Rust toolchain normally

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • gtk4-cross

    A Docker container for cross-compiling gtk4 programs to Windows.

  • (Assuming GTK4) For Windows you could try gtk4-cross. It was pretty clunky to use for Vala but since they have a Rust-specific image it should be easier for your use case

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts