[GRASS-dev] debugging nviz with TclTk 8.5 aqua

William Kyngesburye woklist at kyngchaos.com
Wed Jul 23 20:40:24 EDT 2008


On Jul 23, 2008, at 7:16 PM, Michael Barton wrote:

> I also have TclTk libs in /usr/local/lib, but these are not links.  
> Maybe I should delete them? I'm not sure if go to the x11 install  
> that I need for compiling the 'normal' TclTk GUI (the one installed  
> following your instructions in the README file with most files  
> located in /usr/local/tcltk).
>
otool -L /usr/local/lib/libtk8.4.dylib

(or 8.5 if they are 8.5)

This will tell you if it's linked to X11.

>> Then just add --with-tcltk-libs=/usr/local/lib to your configure.
>
> Maybe --with-tcltk-libs=/usr/lib ??
>
NO.  That's the system tcltk.

> What about the environmental setting for 8.5? Just not run it or set  
> it to 8.4?
>
I just started looking at 8.5.  What I found so far for the aqua  
framework build:

- it includes the private headers we need by default, but in a  
separate subfolder:

Tk.framework/PrivateHeaders

- it does NOT install /usr/local/lib symlinks.  So to account for a  
default tcltk aqua, we need to look into the configure idea I had  
earlier.

- while they have 64bits working for an X11 build, they don't have it  
working for an Aqua build, so we won't get a 64bit tcl-based nviz.


For an immediate fix:

Configure with the --with-tcltk-includes as:

  --with-tcltk-includes="/Library/Frameworks/Tcl.framework/Headers / 
Library/Frameworks/Tk.framework/Headers /Library/Frameworks/ 
Tk.framework/PrivateHeaders" --with-opengl=aqua

you can ignore --with-tcltk-libs.  BEFORE make, edit include/make/ 
platform.make and replace the TCLTKLIBS line with:

TCLTKLIBS = -framework Tcl -framework Tk

then make.

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

All generalizations are dangerous, even this one.




More information about the grass-dev mailing list