[GRASS-dev] WinGRASS needs TclTk 8.4
Markus Neteler
neteler at osgeo.org
Tue Jan 29 16:24:03 EST 2008
On Jan 15, 2008 6:51 PM, Michael Barton <michael.barton at asu.edu> wrote:
> Moritz,
>
> In accidental testing, we've discovered that WinGRASS won't run with TclTk
> 8.5. It needs 8.4. William Kyngesbury also ran into a problem with TclTk 8.5
> for Mac.
You can fix that by adding the missing headers to
visualization/nviz/src/
example for 8.4.9:
ls *8.4.9*
tkInt8.4.9.h tkIntDecls8.4.9.h
The togl.c contains a set of 'if' + 'elif' to reflect the various
version numbers,
so update that, too. It's pretty straightforward...
Step-by-step:
1. download TK from http://tcl.sourceforge.net
-> File Distributions
-> View All Project Files
-> tk8.4.9-src.tar.gz (example)
extract:
tar xvfz tk8.4.9-src.tar.gz tk8.4.9/generic/tkInt.h
tar xvfz tk8.4.9-src.tar.gz tk8.4.9/generic/tkIntDecls.h
and add here (rename!)
tkInt.h -> tkInt8.x[.y].h (e.g. tkInt8.4.9.h)
tkIntDecls.h -> tkIntDecls8.x[.y].h (e.g. tkIntDecls8.4.9.h)
2. change within tkInt8.x[.y].h the include statement from tkIntDecls.h
to tkIntDecls8.x[.y].h
3. edit togl.c
add 'elif' statement with new names according to version
of TK
4. complain about these stupid things to Tcl/Tk developers
(cited from README therein).
Markus
More information about the grass-dev
mailing list