[winGRASS] V.digit issues with TCL

Glynn Clements glynn at gclements.plus.com
Fri Nov 9 11:06:06 EST 2007


Sampson, David wrote:

> Trying some new functions with the GRASS win binary.
> 
> I can use the GUI no problem, but todays issue is with v.digit.
> 
> I have one vector file of a road network loaded.  I wanted to do some
> edits to find nodes and such manualy as v.to.points for nodes and
> vertices returned nothing.
> 
> I got a message saying the v.digit could not find init.tcl
> 
> My TCL is in C:\Tcl\lib\tcl8.4
> 
> And the file exists, but the directory is never checked....
> 
> Instead it tries to look in my apache2triad directory and a bunch of
> GRASS directories.

Try setting the TCL_LIBRARY environment variable to C:\Tcl\lib\tcl8.4. 
You may need to set TK_LIBRARY similarly.

IIRC, Windows versions of Tcl/Tk look for the library directory
relative to the location of the executable, which doesn't work if
you're using a custom program which uses the Tcl/Tk libraries rather
than the standard tclsh/wish programs.

Unix versions hard-code the default directory into the libraries, so
this problem doesn't arise.

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-windows mailing list