From Geany

Support: BuildingOnWin32

Moved to DO NOT EDIT

Building Geany on Windows

Note: It is not necessary to build Geany on Windows yourself as Windows binaries are provided on the Releases page.


GTK+ Runtime

You probably already have the GTK+ runtime installed if you run Geany on Windows - if not, install it now - see Running on Windows. Note that you can use a higher runtime version than the development libraries used (assuming your Windows version is supported).

Minimal GNU for Windows toolchain

You need the Minimal GNU for Windows build toolchain from - they provide a lot of files, but it's much easier if you use the automated installer. Get this from the Sourceforge page at:

Make sure you enable C++ support.

After running the MinGW EXE installer, gcc, g++ and windres should be in your path - if not, add the MinGW binary directory (usually C:\MinGW\bin) to your path.

GTK+ development files

You need the development files of the GTK stack (GTK, GLib, Pango, ATK, Cairo) and a few other libraries to be able to compile Geany on Windows.

You can find everything you need on The easiest way to get everything necessary is the 'bundle' offered on this site and the Iconv library. Download both files and extract their contents into the directory "c:\libs\". (Note it is possible to change this directory - see the and MSYS section). This directory should contain (at least) the following subdirectories:

bin include lib share

Now add the directory "c:\libs\bin" to your path.


Extract the Geany source .tar.gz or (To decompress these try From a command prompt, cd to the extracted directory and run:

make -f makefile.win32

The makefile will check you have the basic tools installed, then generate source file dependencies and build Geany. You should end up with geany.exe.

Overriding variables and MSYS

Geany <= 1.22

It is possible to override the default variables in the Windows makefiles. This is necessary for MSYS. Create a textfile named in the same directory as the top level makefile.win32, then add settings for any variables you want to override, e.g. for building with the MSYS bash shell with development libraries installed in "C:\libs":

PREFIX = C:/libs
CP = cp
RM = rm -f

Note: should end with a blank line.

Geany > 1.22

You can install with:

make -f makefile.win32 install

This installs with DESTDIR=C:/Program Files/Geany but DESTDIR can be overridden. Documentation is not installed yet.

You only need MSYS=1 to build/install with MSYS.


Retrieved from
Page last modified on March 13, 2016, at 03:51 PM