Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

FWIW, my smallish project [1] (Rust + GTK3) builds and works on Windows out of the box. I use the MSYS2 build environment.

[1] https://github.com/GreatAttractor/vidoxide



Thanks. I'll take a look. I've tried Relm 3, Relm 4, and gtk-rs, but they all use Linux only in their CI. I just can't work out what to install and what env vars I need. I didn't the official GTK docs all that helpful on the topic. I'm keen to see how to package the whole thing up, too. Ideally, I could just put the necessary libraries in a directory with the executable.


GTK4 is supposed to "just" build with meson on Windows – yes, just with MSVC, not requiring any of the GNU toolchain type things: https://www.collabora.com/news-and-blog/blog/2021/04/29/buil...

If no one has yet wrapped this into a Rust crate, someone should…


Oh, nifty. I tried getting it going with msys2 and didn't have good luck. I think something might be conflicting. I haven't gotten to the point of wiping the machine yet. Maybe I'll have better luck with meson.


gtk-rs has a book[1] which has setup information for windows. The install was easy on windows following the instructions. I have yet to build an app with GTK4 so I can't comment on the writing and building of apps just yet.

[1] https://gtk-rs.org/gtk4-rs/stable/latest/book/


Thanks. I'll try running through that. relm4 links to https://www.gtk.org/docs/installations/windows/ and I followed those steps without success.


I followed those as well but changed to whats in the gtk-rs book A word of warning: before you start, if you choose to go down the MSVC path, you have to uinstall msys2 and remove msys from your environment paths. If the Meson build find msys2 in your environment path variable, it will try to build using msys2.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: