[GRASS-dev] WinGRASS needs TclTk 8.4

Gerald Nelson gnelson at uiuc.edu
Wed Jan 30 10:44:24 EST 2008


If you run the batch file from a command window you should be able to see
keep the output (if you run the batch file by clicking on it, batch opens
one up, runs the script and then closes it when it's done automatically,
even if there are errors in the window). Or you can run grass63 from an msys
shell window and see output there.
Jerry

-----Original Message-----
From: grass-dev-bounces at lists.osgeo.org
[mailto:grass-dev-bounces at lists.osgeo.org] On Behalf Of Michael Barton
Sent: Wednesday, January 30, 2008 9:20 AM
To: Paul Kelly
Cc: 'GRASS developers list'
Subject: Re: [GRASS-dev] WinGRASS needs TclTk 8.4



On Jan 30, 2008, at 2:01 AM, Paul Kelly wrote:

> On Tue, 29 Jan 2008, Michael Barton wrote:
>
>> Actually I tried that and it still didn't work, though maybe for  
>> other reasons.
>
> Can you say what the exact problem is - detailed description, exact  
> error message and so on? It seems people are trying to help but are  
> just guessing at what the solution is because the problem isn't  
> clear: "still didn't work" really isn't very helpful.

Paul,

Thought I described this much earlier in the thread. Sorry. I can't  
say what the error message is because GRASS starts to launch, the  
Windows terminal flashes and then all shuts down. If there is a  
message in the terminal, my eyes can't catch it in the 5-10ms that  
it's displayed. Switching back to TclTk 8.4 works...but I don't know  
why.

>
> A couple more guesses from me:
> 1) gis.m not starting may be due to the name or path to the wish  
> executable. Have you tried setting the GRASS_WISH environment  
> variable to point to this? (either the full path to wish.exe or, if  
> the directory it's in is already in the path but it has a non- 
> standard name, then just that name, e.g. wish85.exe) In Windows you  
> can set environment variables by right-clicking on My Computer on  
> the Desktop and selecting Properties, then clicking on the Advanced  
> Tab followed by the Environment Variables button.

There was the issue, mentioned by Jerry Nelson, that the ActiveStates  
TclTk binaries for 8.5 forget to create a symlink to wish8.5, etc.  
This can be fixed manually. However, even with that fixed, we were  
still getting the startup/shutdown behavior.

>
> 2) NVIZ links Tcl/Tk functions into an executable program and is  
> more complicated in its usage of Tcl/Tk than gis.m.  If you are  
> using GRASS binaries and they've been compiled against Tcl/Tk 8.4,  
> then it's quite likely there could be incompatibilities that mean  
> something won't work with Tcl/Tk 8.5. Perhaps the usual problem  
> that Markus suggested or something else. Perhaps re-compiling  
> WinGRASS against Tcl/Tk 8.5 would work here.

Possibly the case. These are binaries and I assume that they are  
compiled against 8.4.

>
> Over Christmas, I compiled Tcl/Tk 8.5 myself on Windows and  
> compiled GRASS against that. Everything seemed to work well and  
> those binaries should be able to be included in a GRASS binary  
> distribution to reduce the likelihood of incompatiblities such as  
> Michael seems to be experiencing.

This is absolutely the ideal. If we distributed the TclTk that GRASS  
is compiled against, we avoid almost all of the problems. This is the  
way that William Kyngesbury has done the binary creation and  
distribution system for the Mac version. Compile against some version  
of TclTk and then include the TclTk executables in $GISBASE/bin for  
the binary. By and large this is very reliable.

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>

_______________________________________________
grass-dev mailing list
grass-dev at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev



More information about the grass-dev mailing list