Skip to content

Instantly share code, notes, and snippets.

@oleid
oleid / GTK4-RS-Windows-MSVC-notes.md
Last active April 10, 2023 00:48
Notes on how to build gtk4-rs projects on Windows with MSVC

I'm not really a windows user, but given the latest discussion on the rust subreddit, I thought I give using gtk4-rs on windows a try.

To set up my build environment, I followed this blog post:

https://www.collabora.com/news-and-blog/blog/2021/03/18/build-and-run-gtk-4-applications-with-visual-studio

That way, I successfully built and installed gtk4/master. And I can launch gtk4-demo. Building from the tag 4.3.0 didn't work for me, as the source of glib couldn't be checked out.

In the blog above, things got installed to C:\GNOME. I chose C:\GTK instead, but the name doesn't really matter.