I want to use the Gnome GLib in a Windows environment using the free MinGW compiler to develop in C. The problem is, I have absolutely no idea how to compile this library. Would any of you please explain what tools are needed to accomplish this and what instructions need to be followed?
Asked
Active
Viewed 2.8k times
2 Answers
12
GLib is available pre-compiled for Windows and has been for ages: http://www.gtk.org/download/windows.php.

HosseinGBI
- 103
- 4

tml
- 968
- 7
- 12
-
1As a note, glib seems to have stopped released pre-built binaries for windows after 2.28 – Matt Sep 02 '16 at 15:52
-
1I think glib 2.34+ binaries are available [here](http://win32builder.gnome.org/), but before I knew of this, downloading MSYS (from the answer's link) and installing the cross compiled version with pacman worked out well. (details of which packages [here](https://github.com/lcm-proj/lcm/issues/99)) – Matt Sep 15 '16 at 15:58
10
You need to use MSys, it is downloadable from MinGW site. Using MSys you will be able to build GLib: http://www.mingw.org/wiki/Bootstrapping_GLIB_with_MinGW

Andrejs Cainikovs
- 27,428
- 2
- 75
- 95
-
-
Yes, the link is gone in history, so as the old MinGW website. New one is [here](http://mingw-w64.org). I'd suggest you to use precompiled library as other answer suggests. Another option would be to search trough MinGW mailing list. Good luck! – Andrejs Cainikovs Mar 29 '21 at 18:40