[GRASSLIST:2084] Re: Cygwin Tcl/Tk

I get the error message below when attempting to start tcltkgrass in cygwin. Does anyone have an idea to resolve this error? Thanks.

Steve Bowman

Error in startup script
    /usr/X11R6/bin/xwininfo: error: No such window with id 0x30308
    while executing
    "exec xwininfo -id[winfo id.w_g] | grep -i Corners"
    invoked from within
    "scan [exec xwindow -id [winfo id.w_g] | grep -i Corners] {%*s%d%d} dx dy"
    (file "/usr/local/grass5/tcltkgrass/main/gui.tcl" line 1887)
    invoked from within
    "source $env(TCLTKGRASSBASE)/main/gui.tcl"
    (file "/usr/local/grass5/bin/tcltkgrass" line 21)

At 08:51 PM 12/17/2003, you wrote:

I get the error message below when attempting to start tcltkgrass in cygwin. Does anyone have an idea to resolve this error? Thanks.

Steve Bowman

Error in startup script
    /usr/X11R6/bin/xwininfo: error: No such window with id 0x30308
    while executing
    "exec xwininfo -id[winfo id.w_g] | grep -i Corners"
    invoked from within
    "scan [exec xwindow -id [winfo id.w_g] | grep -i Corners] {%*s%d%d} dx dy"
    (file "/usr/local/grass5/tcltkgrass/main/gui.tcl" line 1887)
    invoked from within
    "source $env(TCLTKGRASSBASE)/main/gui.tcl"
    (file "/usr/local/grass5/bin/tcltkgrass" line 21)

Are you using the GRASS specific Tcl/Tk from:
http://grass.ibiblio.org/grass5/binary/windows_cygnus/wingrass_xserver/
or Cygwin Tcl/Tk? I think the GRASS specific Tcl/Tk is required.

Richard W. Greenwood, PLS
Greenwood Mapping, Inc.
Rich <at> GreenwoodMap <dot> com
(307) 733-0203
http://www.GreenwoodMap.com

Steve D. Bowman wrote:

I get the error message below when attempting to start tcltkgrass in
cygwin. Does anyone have an idea to resolve this error? Thanks.

Error in startup script
    /usr/X11R6/bin/xwininfo: error: No such window with id 0x30308
    while executing
    "exec xwininfo -id[winfo id.w_g] | grep -i Corners"
    invoked from within
    "scan [exec xwindow -id [winfo id.w_g] | grep -i Corners] {%*s%d%d} dx dy"
    (file "/usr/local/grass5/tcltkgrass/main/gui.tcl" line 1887)
    invoked from within
    "source $env(TCLTKGRASSBASE)/main/gui.tcl"
    (file "/usr/local/grass5/bin/tcltkgrass" line 21)

Are you using a Unix/X11 version of Tcl/Tk (e.g. the xtcltk package
from the GRASS web site), or are you using Cygwin's Tcl/Tk? The latter
won't work.

--
Glynn Clements <glynn.clements@virgin.net>

Richard Greenwood wrote:

Are you using the GRASS specific Tcl/Tk from:
http://grass.ibiblio.org/grass5/binary/windows_cygnus/wingrass_xserver/
or Cygwin Tcl/Tk? I think the GRASS specific Tcl/Tk is required.

Oh, there isn't anything GRASS-specific about the xtcltk package on
the GRASS site. It's just the stock Tcl/Tk source code, compiled on
Cygwin for Unix. It should be capable of running anything which was
written for the Unix version of Tcl/Tk.

Unlike Cygwin's Tcl/Tk package, which is some form of bastardised
hybrid of the Unix and Windows versions of Tcl/Tk, and which isn't
compatible with either the Unix or Windows versions of Tcl/Tk. It's
only useful if you're willing to write code specifically for the
Cygwin version of Tcl/Tk.

This was probably done so that Cygwin Tcl/Tk programs will
interoperate reasonably with native Windows programs. However,
tcltkgrass isn't a Cygwin Tcl/Tk program, it's a Unix Tcl/Tk program.

BTW, if the Unix-specific features were removed from tcltkgrass, you
would probably be able to just use the native Windows version of
Tcl/Tk rather than the Cygwin version.

--
Glynn Clements <glynn.clements@virgin.net>