[GRASS-dev] WinGRASS needs TclTk 8.4

In case its useful information, the wish file I copied and renamed is called wish85.exe. It is 36 kb with a modification date of 12/17/07. It is located in c:\Tcl\bin along with some dlls and exe files.

---- Original message ----

Date: Tue, 29 Jan 2008 18:21:57 -0700
From: Michael Barton <michael.barton@asu.edu>
Subject: Re: [GRASS-dev] WinGRASS needs TclTk 8.4
To: "Gerald Nelson" <gnelson@uiuc.edu>
Cc: "'Markus Neteler'" <neteler@osgeo.org>, "'GRASS developers list'" <grass-dev@lists.osgeo.org>

Actually I tried that and it still didn't work, though maybe for
other reasons.

Michael
____________________
C. Michael Barton, Professor of Anthropology
Director of Graduate Studies
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

Phone: 480-965-6262
Fax: 480-965-7671
www: <www.public.asu.edu/~cmbarton>

On Jan 29, 2008, at 3:44 PM, Gerald Nelson wrote:

I see that I am not the only one to not RTFM, which says to just
use 8.4. I
did the same thing, but found that if you make a copy of wish85.exe
and
rename it to just wish.exe everything seems to work fine.

Now, if someone could tell me what is going on with my wxpython
problem :wink:

Jerry

-----Original Message-----
From: grass-dev-bounces@lists.osgeo.org
[mailto:grass-dev-bounces@lists.osgeo.org] On Behalf Of Markus Neteler
Sent: Tuesday, January 29, 2008 3:24 PM
To: Michael Barton
Cc: GRASS developers list
Subject: Re: [GRASS-dev] WinGRASS needs TclTk 8.4

On Jan 15, 2008 6:51 PM, Michael Barton <michael.barton@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
_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Gerald Nelson
Professor, Dept. of Agricultural and Consumer Economics
University of Illinois, Urbana-Champaign
office: 217-333-6465
cell: 217-390-7888
315 Mumford Hall
1301 W. Gregory
Urbana, IL 61801