diff options
author | Tor Lillqvist <tml@novell.com> | 2007-01-19 01:55:52 +0000 |
---|---|---|
committer | Tor Lillqvist <tml@src.gnome.org> | 2007-01-19 01:55:52 +0000 |
commit | f6b4585c98c2cf2588926be0065d4a1e9b909d3e (patch) | |
tree | 6db15cdcfa73f9e23e81d61c582394abc02961af /README.win32 | |
parent | f1ce05caa9d04fe67e0872c7b09e35be25c7fc1b (diff) | |
download | gtk+-f6b4585c98c2cf2588926be0065d4a1e9b909d3e.tar.gz |
Build Wintab support always on Windows. Don't require the Wintab SDK.
2007-01-19 Tor Lillqvist <tml@novell.com>
Build Wintab support always on Windows. Don't require the Wintab
SDK.
* configure.in: Drop the --with-wintab option. Drop the
HAVE_WINTAB feature test macro and Automake variable.
* acconfig.h
* config.h.win32.in: Drop HAVE_WINTAB.
* gdk/win32/gdkevents-win32.c
* gdk/win32/gdkinput.c
* gdk/win32/gdkinput-win32.h
* gdk/win32/gdkinput-win32.c
* gdk/win32/gdkmain-win32.c: Make HAVE_WINTAB ifdef blocks
unconditional.
* gdk/win32/gdkinput-win32.c (_gdk_input_wintab_init_check): Try
to load wintab32.dll dynamically here. If it is found look up the
handful Wintab functions we use.
(rest of file): Use these function pointers instead of calling the
functions from wntab32x.lib. The code in wntab32x.lib did the same
thing anyway: tried to load wintab32.dll, and looked up the
addresses of the actual functions from it.
* gdk/Makefile.am
* gdk/win32/Makefile.am: Drop the libwntab32x hacks.
* gdk/win32/wintab.h
* gdk/win32/pktdef.h: New files. Copied from the Wintab
SDK. Copyright blurb says: "The text and information contained in
this file may be freely used, copied, or distributed without
compensation or licensing restrictions."
* README.win32: Update a bit. Remove the text about the Wintab
SDK.
svn path=/trunk/; revision=17186
Diffstat (limited to 'README.win32')
-rw-r--r-- | README.win32 | 50 |
1 files changed, 16 insertions, 34 deletions
diff --git a/README.win32 b/README.win32 index 6aa13c78a0..60817e500e 100644 --- a/README.win32 +++ b/README.win32 @@ -19,25 +19,21 @@ There are two ways to build GTK+ for win32. Makefiles (which use libtool and gcc to do the compilation). I use this myself, but it can be hard to setup correctly. -Personally I run configure with: -CC='gcc -mpentium -fnative-struct' CPPFLAGS='-I/target/include' CFLAGS=-O2 LDFLAGS='-L/target/lib' ./configure --disable-static --prefix=/target --with-gdktarget=win32 --with-wintab=/src/wtkit126 --with-ie55=/src/workshop/ie55_lib --host=i386-pc-mingw32 - -Then, in theory, you can just say "make", like on Unix. In reality, -there are a few hickups that require manual intervention, and it's -best to run make separately in each subdirectory. At least for me, -when libtool creates an .exe file, it puts the real .exe in the .libs -directory, and leaves a wrapper .exe in the work directory. For some -reason that wrapper doesn't work for me, it doesn't do anything. So, I -always do a "cp .libs/*.exe ." after running a make that has produced -some exes. - -Another issue is with the gdk-pixbuf.loaders file. It's probably best -to do a "make install" in the gdk-pixbuf directory, and let that set -up a mostly correct gdk-pixbuf.loaders in the target directory. Then -copy that back to the source directory. It's needed in gtk/stock-icons +Note that I first always edit the ltmain.sh file like this: +sed -e 's/need_relink=yes/need_relink=no # no way --tml/' <ltmain.sh >ltmain.temp && mv ltmain.temp ltmain.sh + +Personally I run configure with something like: +CC='gcc -mtune=pentium3 -mthreads' CPPFLAGS='-I/opt/gnuwin32/include -I/opt/gnu/include -I/opt/misc/include' CFLAGS=-g LIBS=-lintl LDFLAGS='-L/opt/gnuwin32/lib -L/opt/gnu/lib -L/opt/misc/lib' ./configure --prefix=c:/devel/target/HEAD --with-gdktarget=win32 --enable-maintainer-mode --enable-debug=yes --enable-explicit-deps=no --with-included-loaders=png,bmp,gif,ico,jpeg,tiff,xpm + +Then you should just be able to run "make", like on Unix. + +An issue is with the gdk-pixbuf.loaders file. It's probably best to do +a "make install" in the gdk-pixbuf directory, and let that set up a +mostly correct gdk-pixbuf.loaders in the target directory. Then copy +that back to the source directory. It's needed in gtk/stock-icons where make runs gdk-pixbuf-csource. -Etc, you get the idea. It can be a bit of a pain. +Etc, you get the idea. 2) Use the Microsoft compiler, cl and Make, nmake. Say nmake -f makefile.msc in gdk and gtk. Be prepared to manually edit various @@ -72,22 +68,8 @@ all. Possible ways to fix this are being investigated. Wintab ====== -The tablet support uses the Wintab API. The Wintab development kit can -be downloaded from http://www.pointing.com. Pass the --with-wintab -flag to configure if you use that. If you use nmake and you don't care -for Wintab, undefine HAVE_WINTAB in config.h.win32 and remove -references to the wntab32x library from the makefile before building. - -ActiveIMM -========= - -If you want to build a GTK+ that supports ActiveIMM (the Input Method -Manager for non-EastAsia locales that can be used on Win9x/NT4), you -need the dimm.h header file. That is somewhat difficult to find, but -http://msdn.microsoft.com/downloads/samples/internet/wizard/ seems to -be a good place to look nowadays. If you use "autoconfiscated" build, -pass the --with-ie55 flag to configure specifying the location of the -ie55_lib directory created by downloading the IE5.5 headers and libs -from the above URL. +The tablet support uses the Wintab API. Unfortunately it seems that +only Wacom tablet software comes with the required wintab32.dll +nowadays. --Tor Lillqvist <tml@iki.fi> |