16

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?

Milan
  • 3,342
  • 3
  • 31
  • 40

2 Answers2

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
  • 1
    As a note, glib seems to have stopped released pre-built binaries for windows after 2.28 – Matt Sep 02 '16 at 15:52
  • 1
    I 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
  • Nice link, that will definitely help! Thanks. – Milan Aug 04 '09 at 16:02
  • 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