]> Pileus Git - ~andy/gtk/blob - README.win32
Update. Mention the gtk-1-3-win32-production branch.
[~andy/gtk] / README.win32
1 The Win32 port of GTk+ is a work in progress, and not as stable or
2 correct as the Unix/X11 version. For more information about the Win32
3 port, see http://www.gimp.org/win32/ or
4 http://www.iki.fi/tml/gimp/win32/ .
5
6 This (CVS HEAD) version of the Win32 backend does *not* necessarily
7 even compile properly. There is a gtk-1-3-win32-production branch that
8 was branched off from before the addition of the no-flicker and other
9 recent functionality. That is what should be used by "production" code
10 until the CVS HEAD version is useable. (But note, the Win32 backend
11 has never been claimed to be "production quality", although it works
12 surprisingly well for the GIMP.)
13
14 To build GTk+ on Win32, you need either gcc-2.95 or later, or the
15 Microsoft compiler and tools. The mingw setup of gcc is preferred, but
16 you can run gcc also under cygwin-b20.1 or later. Compile in
17 gdk\win32, gdk and gtk with `make -f makefile.mingw` (gcc) or `nmake
18 -f makefile.msc` (MSVC). The name makefile.mingw needs an explanation:
19 It refers to the target, not the build environment. As build
20 envĂ­ronment, only cygwin is tested. GNU Make is definitely needed.
21
22 See the README.win32 file in the GLib distribution for instructions
23 how to build with gcc.
24
25 To use GTk+ on Win32, you also need either one of the above mentioned
26 compilers. Other compilers might work, but don't count on it. The
27 same instructions on how to set up a correct version of gcc should
28 also be followed if you want to build applications that use GTk+ with
29 gcc.
30
31 The tablet support uses the Wintab API. The Wintab development kit can
32 be downloaded from http://www.pointing.com. If you don't care for
33 that, undefine HAVE_WINTAB in config.h.win32 and remove references to
34 the wntab32x library from the makefile before building.
35
36 GTk+ wants to be built with the GNU "intl" library for
37 internationalisation (i18n). Get the version ported to Win32 (not a
38 very big deal) from tml's web site mentioned above. We build the
39 "intl" library as a DLL called gnu-intl.dll (the "gnu" prefix is used
40 to reduce name clash risks). If you don't want any i18n stuff,
41 undefine ENABLE_NLS, HAVE_GETTEXT and HAVE_LIBINTL in the
42 config.h.win32 file, and remove references to the gnu-intl library
43 from the makefiles.
44
45 Note that while the GNU gettext package is under the GPL license, the
46 "intl" part of it is also distributed as part of the GNU C library
47 (glibc) where it is under the LGPL license (as is GTk+ or GLib). We
48 want the LGPL licensed version. The code is more or less the same.