Busybox: Upgrade to 1.21.1 (stable). lsof active.
[tomato.git] / release / src / router / glib / README.win32
blobf86c862d469f7ba649b8859231aa2d162f54eb3a
1 You most probably should not be using this version of GLib on
2 Windows. Use the latest glib, 1.3.x, instead. Even if glib 1.2 is
3 currently advertised as being the "stable" version, that is mainly
4 significant on Unix. On Windows, there has been many important
5 enhancements and bugfixes to the 1.3 branch, that have not been
6 backported to this version, glib 1.2.
8 --Tor Lillqvist <tml@iki.fi>, Mar 1, 2001.
10 The rest of this file is from April 1999:
12 For more information about the port or GLib, GTk+ and the GIMP to
13 native Windows, and pre-built binary packages, see
14 http://www.iki.fi/tml/gimp/win32/ . "Native" means that we use the
15 Win32 API only, and not any POSIX emulation layer except that provided
16 by the Microsoft runtime C library. Additionally the pthreads
17 emulation library is used.
19 As for now, to build GLib on Win32, you need the Microsoft compiler
20 and tools. Both the compiler from MSVC 5.0 and MSVC 6.0 have been used
21 successfully.
23 Before building you must get the pthreads library for Windows from
24 http://sourceware.cygnus.com/pthreads-win32/. We want the 1999-04-07
25 release. Edit the location of the pthreads library and include files
26 in makefile.msc. Also edit the BIN definition in makefile.msc.
28 Build with `nmake -f makefile.msc`. Install with `nmake -f
29 makefile.msc install`.
31 Support for building using the cygwin tools (without depending on the
32 cygwin runtime, i.e. "mingw32"), and maybe LCC-Win32 might be added
33 later. When using the cygwin tools *with* the cygwin runtime the
34 normal Unix configuration method should work as if on Unix (knock on
35 wood).
37 With a little work, it might be possible to use the ./configure
38 mechanism also with a "mingw32" configuration. I.e. building GLib for
39 Win32 would use the cygwin tools (and runtime), but the produced
40 libraries would not depend on the cygwin runtime being present.
42 The following preprocessor macros are used for conditional compilation 
43 related to Win32:
45 - WIN32 is defined when compiling for the Win32 platform, regardless
46   if using the X11 or Win32 windowing API (in the case of GLib, this
47   dimension isn't significant), regardless whether using a more or
48   less complete POSIX emulation runtime layer (like Cygwin) or not.
50 - NATIVE_WIN32 is defined when compiling for Win32, *and* without
51   any POSIX emulation, other that to the extent provided by the
52   (Microsoft) C library, or the pthreads-win32 library. For instance,
53   pathnames use the native Windows syntax.
55 - _MSC_VER is defined when using the Microsoft compiler.
57 Currently the Win32 port uses the combination with all three of those
58 on, but eventually the cygwin compiler and tools will be supported
59 also, and in that case _MSC_VER wouldn't be defined.
61 Some of the usage of these macros is probably a bit mixed up, and will
62 have to be straightened out when actually trying other combinations.
64 The pthreads for Win32 package that the thread support uses isn't
65 released yet, and thus threads really should not be relied upon.