2001-10-23 Tor Lillqvist <tml@iki.fi> * gtk-config.in: Remove. * gdk-1.3-win32-production.pc.in * gtk+-1.3-win32-production.pc.in: New files, use pkg-config. * gdk/win32/libwntab32x.la: New file, handwritten libtool archive for the Wintab library when available. * Makefile.am: Install the pkgconfig files. * config.h.win32 * acconfig.h: Add HAVE_WINTAB_H. * acinclude.m4: Copy from HEAD. * configure.in: Enable Win32 (mingw) builds. Test for Wintab API (header and library). Changes to be more like the HEAD version. * ltconfig * ltmain.sh: Remove, not needed by libtool 1.4c, which I use for this. * gdk/Makefile.am * gdk/win32/Makefile.am * gtk/Makefile.am: Changes for Win32 (mingw) builds. Install MS and mingw import libraries. * gtk/Makefile.am: Don't pass -release to libtool in gtk/Makefile.am. This keeps DLL name simpler. * {gdk,gtk}/makefile.{mingw,msc}: Remove. * {gdk,gtk}/makefile.{mingw,msc}.in: Add these instead. Generate same name DLLs as libtool does (libgdk-0.dll and libgtk-0.dll). Import libraries are just libgdk.la and libgtk.la. * gdk/win32/*.c: Lint cleanups. * gtk/gtkmain.c * gtk/gtkrc.c: Use the G_WIN32_DLLMAIN_FOR_DLL_NAME and G_HARDCODED_PATH_WRAPPER macros to get DLL name at runtime, and determine installation subdirectories.
50 lines
2.3 KiB
Plaintext
50 lines
2.3 KiB
Plaintext
The Win32 port of GTk+ is a work in progress, and not as stable or
|
|
correct as the Unix/X11 version. For more information about the Win32
|
|
port, see http://www.gimp.org/tml/gimp/win32/ or
|
|
http://www.iki.fi/tml/gimp/win32/ .
|
|
|
|
The current (CVS HEAD) version of the Win32 backend does not
|
|
necessarily even compile properly. The code here is the
|
|
gtk-1-3-win32-production branch that was branched off from before the
|
|
addition of the no-flicker and other recent functionality. This is
|
|
what should be used by "production" code until the CVS HEAD version is
|
|
useable. (But note, the Win32 backend has never been claimed to be
|
|
"production quality", although it works surprisingly well for the
|
|
GIMP.)
|
|
|
|
To build GTk+ on Win32, you need either the Microsoft compiler and
|
|
tools, or cygwin's make and some other tools and the gcc from mingw
|
|
(gcc-2.95 or later). Compile in gdk\win32, gdk and gtk with `nmake -f
|
|
makefile.msc` or `make -f makefile.mingw`.
|
|
|
|
Note that I use gcc myself, and thus the build setup for Microsoft's
|
|
nmake and cl might be a bit rusty.
|
|
|
|
See the README.win32 file in the GLib distribution for instructions
|
|
how to build with gcc.
|
|
|
|
To use GTk+ on Win32, you also need either of the above mentioned
|
|
compilers. Other compilers might work, but don't count on it. The
|
|
same instructions on how to set up a correct version of gcc should
|
|
also be followed if you want to build applications that use GTk+ with
|
|
gcc. Especially note that if you use gcc, in order to use the prebuilt
|
|
DLLs, you *must* compile your code with gcc -mno-cygwin
|
|
-fnative-struct.
|
|
|
|
The tablet support uses the Wintab API. The Wintab development kit can
|
|
be downloaded from http://www.pointing.com. If you don't care for
|
|
that, undefine HAVE_WINTAB_H in config.h.win32 and remove references to
|
|
the wntab32x library from the makefile before building.
|
|
|
|
GTk+ wants to be built with the GNU "intl" library for
|
|
internationalisation (i18n). Get the version ported to Win32 (not a
|
|
very big deal) from tml's web site mentioned above. The "intl" library
|
|
as gets built as a DLL called libintl-1.dll. If you don't want any
|
|
i18n stuff, undefine ENABLE_NLS, HAVE_GETTEXT and HAVE_LIBINTL in the
|
|
config.h.win32 file, and remove references to the intl library from
|
|
the makefiles.
|
|
|
|
Note that while the GNU gettext package is under the GPL, the "intl"
|
|
part of it is under the LGPL (like GTk+ or GLib), as of
|
|
gettext-0.10.40.
|