[GRASS5] pre2 nviz & darwin -- part ii
glynn.clements at virgin.net
Sun Oct 28 20:37:56 EST 2001
Jeshua Lacock wrote:
> > Odd. "tcltkgrass" works, right? How about "wish"? If these work, that
> > suggests a problem with NVWISH2.2, which should be looked at.
> Yes - Absolutely they both work with flying colors.
That seems to suggest that Tcl/Tk itself is installed correctly.
Having looked at the NVWISH2.2 startup, I can't see any obvious reason
why it would fail when "wish" works. Although, calling Tk_MainWindow()
before Tk_Init() doesn't look right.
> > Do you have any idea where NVWISH2.2 is getting that list of
> > directories from?
> Hmm - actually I don't. It is not from the path environment variable,
> though. I grepped the nviz2.2 and the nviz2.2/scripts directory for
> '/System/Library', with no matches.
That might be built into libtk.
As for the rest of the directories, I'm wondering if they're
constructed from the executable's pathname. That would explain why
it's looking in $GISBASE/etc.
Apart from /System/Library, the directories searched are:
/usr/local/grass5/etc/lib/tk8.3 = /usr/local/grass5/etc/nviz2.2/../lib/tk8.3
/usr/local/grass5/lib/tk8.3 = /usr/local/grass5/etc/nviz2.2/../../lib/tk8.3
/usr/local/grass5/etc/library = /usr/local/grass5/etc/nviz2.2/../library
/usr/local/grass5/library = /usr/local/grass5/etc/nviz2.2/../../library
/usr/local/grass5/tk8.3/library = /usr/local/grass5/etc/nviz2.2/../../tk8.3/library
/usr/local/tk8.3/library = /usr/local/grass5/etc/nviz2.2/../../../tk8.3/library
That could also explain why "wish" works; if "wish" is in
/usr/local/bin, the corresponding list of directories would be:
/usr/local/lib/tk8.3 = /usr/local/bin/../lib/tk8.3
/usr/lib/tk8.3 = /usr/local/bin/../../lib/tk8.3
/usr/local/library = /usr/local/bin/../library
/usr/library = /usr/local/bin/../../library
/usr/tk8.3/library = /usr/local/bin/../../tk8.3/library
/tk8.3/library = /usr/local/bin/../../../tk8.3/library
What happens if you copy NVWISH2.2 to some other directory, then run
it from there?
> > Also, I've reverted nvizAppInit.c; failure of Tk_Init() suggests a Tcl
> > error, so we want Tcl's error message.
> I think you lost me here. Should I revert the code back to before I
> edited it?
I was saying that the change which I suggested has been committed to
Glynn Clements <glynn.clements at virgin.net>
More information about the grass-dev