Support.BuildingOnWin32 History

Hide minor edits - Show changes to markup

July 26, 2012, at 12:56 PM by nick - remove old note about 0.8, embolden MSYS=1
Deleted lines 3-4:

Windows makefiles were added to SVN on Friday, July 28, 2006, and will be distributed with Geany 0.8 and future source releases. Follow the instructions below.

Changed lines 52-53 from:

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

to:

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

July 26, 2012, at 12:52 PM by nick - Add install info
Changed lines 48-51 from:

You only need: MSYS=1

This is simple enough to type on the command-line.

to:

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.

July 26, 2012, at 12:45 PM by nick - Add MSYS=1 and overriding CC
Added line 36:

Geany <= 1.22

Changed lines 47-54 from:

If an MSYS build fails with a library-related error message, make sure you have set PREFIX to a Unix-style path - e.g. /usr/local. Use / instead of \ backslashes.

to:

Geany > 1.22

You only need: MSYS=1

This is simple enough to type on the command-line.

Notes

  • CFLAGS cannot be overridden yet, but you can use CC=gcc -myflags instead.
  • If an MSYS build fails with a library-related error message, make sure you have set PREFIX to a Unix-style path using / slashes instead of \ backslashes.
September 09, 2011, at 12:23 PM by nick - update mingw info
Changed line 11 from:

You need the Minimal GNU for Windows build toolchain from http://www.mingw.org - they provide a lot of files, but all you should need is MinGW-4.1.1.exe or higher. Get this from the Sourceforge page at:

to:

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

Added lines 14-15:

Make sure you enable C++ support.

September 09, 2011, at 12:15 PM by nick - make MSYS section clearer
Changed lines 33-35 from:

localwin32.mk and MSYS

It is possible to override the default variables in the Windows makefiles. Create a textfile named localwin32.mk 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:\msys\1.0\local":

to:

Overriding variables and MSYS

It is possible to override the default variables in the Windows makefiles. This is necessary for MSYS. Create a textfile named localwin32.mk 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":

Changed line 37 from:

PREFIX = C:\msys\1.0\local

to:

PREFIX = C:/libs

Changed lines 42-47 from:

localwin32.mk should end with a blank line.

If the build fails with a missing header error message such as: ctags.c:23:18: glib.h: No such file or directory

Try setting PREFIX to a MSYS style path - e.g. /usr/local

to:

Note: localwin32.mk should end with a blank line.

If an MSYS build fails with a library-related error message, make sure you have set PREFIX to a Unix-style path - e.g. /usr/local. Use / instead of \ backslashes.

September 09, 2011, at 12:01 PM by nick - fix gtk windows link
Changed lines 19-20 from:

You can find everything you need on http://www.gtk.org/download-windows.html. 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 localwin32.mk and MSYS section). This directory should contain (at least) the following subdirectories:

to:

You can find everything you need on http://www.gtk.org/download/win32.php. 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 localwin32.mk and MSYS section). This directory should contain (at least) the following subdirectories:

May 20, 2010, at 04:33 PM by nick - remove old gtk 2.8 version number
Changed lines 8-9 from:

You probably already have the GTK+ 2.8 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).

to:

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).

April 30, 2009, at 05:39 PM by enrico - Add libiconv link
Changed lines 19-20 from:

You can find everything you need on http://www.gtk.org/download-windows.html. The easiest way to get everything necessary is the 'bundle' offered on this site. Download it and extract it into the directory "c:\libs\". (Note it is possible to change this directory - see the localwin32.mk and MSYS section). This directory should contain (at least) the following subdirectories:

to:

You can find everything you need on http://www.gtk.org/download-windows.html. 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 localwin32.mk and MSYS section). This directory should contain (at least) the following subdirectories:

April 29, 2009, at 04:08 PM by enrico - General update to fix broken links and outdated information.
Changed lines 8-9 from:

You probably already have the GTK+ 2.6 or 2.8 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).

to:

You probably already have the GTK+ 2.8 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).

Changed lines 17-35 from:

The GTK+ 2.6.x win32 development files are available from: ftp://ftp.gtk.org/pub/gtk/v2.6/win32/

You need:

  • gtk+-dev-2.6.10-20050823.zip
  • atk-dev-1.9.0.zip
  • pango-dev-1.8.2.zip
  • glib-dev-2.6.6.zip

GLib requires some dependencies available from: http://www.gimp.org/~tml/gimp/win32/downloads.html

From 'Various dependencies' you need:

  • GNU libiconv (libiconv-1.9.1.bin.woe32.zip)
  • gettext-0.14.5.zip
  • gettext-dev-0.14.5.zip

Extract all zipfiles to the directory "c:\libs\". (Note it is possible to change this directory - see the localwin32.mk and MSYS section). This directory should contain (at least) the following subdirectories:

to:

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 http://www.gtk.org/download-windows.html. The easiest way to get everything necessary is the 'bundle' offered on this site. Download it and extract it into the directory "c:\libs\". (Note it is possible to change this directory - see the localwin32.mk and MSYS section). This directory should contain (at least) the following subdirectories:

September 21, 2006, at 02:17 PM by nick - Add note about MSYS PREFIX path
Changed lines 57-62 from:

localwin32.mk should end with a blank line.

to:

localwin32.mk should end with a blank line.

If the build fails with a missing header error message such as: ctags.c:23:18: glib.h: No such file or directory

Try setting PREFIX to a MSYS style path - e.g. /usr/local

August 03, 2006, at 09:47 AM by nick - Add c:\libs\bin to path; add link to windows runtime info
Changed lines 8-9 from:

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

to:

You probably already have the GTK+ 2.6 or 2.8 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).

Changed lines 34-35 from:

Extract all zipfiles to the directory "c:\libs\". (Note it is possible to change this prefix - see the localwin32.mk and MSYS section). This directory should contain (at least) the following subdirectories:

to:

Extract all zipfiles to the directory "c:\libs\". (Note it is possible to change this directory - see the localwin32.mk and MSYS section). This directory should contain (at least) the following subdirectories:

Added lines 38-39:

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

August 02, 2006, at 04:25 PM by nick - Improved descriptions and formatting, added localwin32.mk section
Changed lines 2-6 from:

Makefiles were added to SVN on Friday, July 28, 2006 to build Geany on Windows, and will be distributed with Geany 0.8 and future source releases.

Runtime

You probably already have the GTK+ 2.6 or 2.8 runtime installed if you run Geany on Windows - if not, install it first.

to:

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

Windows makefiles were added to SVN on Friday, July 28, 2006, and will be distributed with Geany 0.8 and future source releases. Follow the instructions below.

Added lines 7-9:

GTK+ Runtime

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

Changed line 11 from:

You need the Minimal GNU for Windows build toolchain from http://www.mingw.org - they provide a lot of files, but all you should need is MinGW-4.1.1.exe or higher. Get this from the sourceforge page at:

to:

You need the Minimal GNU for Windows build toolchain from http://www.mingw.org - they provide a lot of files, but all you should need is MinGW-4.1.1.exe or higher. Get this from the Sourceforge page at:

Changed lines 14-15 from:

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:

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.

Changed lines 17-19 from:

The GTK+ 2.6 win32 development files available from ftp://ftp.gtk.org/pub/gtk/v2.6/win32/

to:

The GTK+ 2.6.x win32 development files are available from: ftp://ftp.gtk.org/pub/gtk/v2.6/win32/

Changed lines 26-27 from:

GLib dependencies are available from http://www.gimp.org/~tml/gimp/win32/downloads.html You need:

to:

GLib requires some dependencies available from: http://www.gimp.org/~tml/gimp/win32/downloads.html

From 'Various dependencies' you need:

  • GNU libiconv (libiconv-1.9.1.bin.woe32.zip)
Changed lines 33-38 from:
  • libiconv-1.9.1.bin.woe32.zip

Extract all packages to the directory "c:\libs\". You should end up with (at least) the following subdirectories:

bin include lib share

to:

Extract all zipfiles to the directory "c:\libs\". (Note it is possible to change this prefix - see the localwin32.mk and MSYS section). This directory should contain (at least) the following subdirectories:

bin include lib share

Changed lines 42-55 from:

make -f makefile.win32

to:

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.

localwin32.mk and MSYS

It is possible to override the default variables in the Windows makefiles. Create a textfile named localwin32.mk 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:\msys\1.0\local":

PREFIX = C:\msys\1.0\local
CP = cp
RM = rm -f

localwin32.mk should end with a blank line.

August 02, 2006, at 02:52 PM by nick - Added instructions for building on windows
Changed lines 1-3 from:

Makefiles were added to SVN on Friday, July 28, 2006 to build Geany on Windows.

More information here soon.

to:

Building Geany on Windows

Makefiles were added to SVN on Friday, July 28, 2006 to build Geany on Windows, and will be distributed with Geany 0.8 and future source releases.

Runtime

You probably already have the GTK+ 2.6 or 2.8 runtime installed if you run Geany on Windows - if not, install it first.

Requirements

Minimal GNU for Windows toolchain

You need the Minimal GNU for Windows build toolchain from http://www.mingw.org - they provide a lot of files, but all you should need is MinGW-4.1.1.exe or higher. Get this from the sourceforge page at: http://sourceforge.net/project/showfiles.php?group_id=2435

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).

GTK+ development files

The GTK+ 2.6 win32 development files available from ftp://ftp.gtk.org/pub/gtk/v2.6/win32/ You need:

  • gtk+-dev-2.6.10-20050823.zip
  • atk-dev-1.9.0.zip
  • pango-dev-1.8.2.zip
  • glib-dev-2.6.6.zip

GLib dependencies are available from http://www.gimp.org/~tml/gimp/win32/downloads.html You need:

  • gettext-0.14.5.zip
  • gettext-dev-0.14.5.zip
  • libiconv-1.9.1.bin.woe32.zip

Extract all packages to the directory "c:\libs\". You should end up with (at least) the following subdirectories:

bin include lib share

Build

Extract the Geany source .tar.gz or .tar.bz (To decompress these try http://www.7zip.org). From a command prompt, cd to the extracted directory and run:

make -f makefile.win32

July 28, 2006, at 12:40 PM by nick - Added stub page for building on win32
Added lines 1-3:

Makefiles were added to SVN on Friday, July 28, 2006 to build Geany on Windows.

More information here soon.