[GRASS-dev] debugging nviz with TclTk 8.5 aqua

Glynn Clements glynn at gclements.plus.com
Mon Jul 28 10:34:21 EDT 2008


William Kyngesburye wrote:

> >> Looks like we need the tcltk header paths.
> >
> > In that case, I think that we're better off ditching the OSX-specific
> > stuff in its entirety and going back to -I, -L and -l switches. No -F,
> > no -framework.
> >
> We needed the -framework flags because -l would get the system tcltk  
> symlinks.

Er, not if you also use -L, surely?

> I put in the -I flags just to get it to compile, and at least the - 
> framework linking gets the right framework.
> 
> > Either it's a framework or it isn't. From what you say, it isn't.
> >
> 
> > Hang on a minute. If the headers are using framework names (<Tk/tk.h>
> > etc), it isn't going to find those in /usr/include.
> 
> Ah, right.  Argh.
> 
> It's OK to mix -framework linking and unix -I include paths to those  
> frameworks.  It just means configuring the paths, and assuming some  
> default or requiring the user to pass them in.
> 
> /Library/Frameworks could be a good default, since the current system  
> tcltk is still 8.4, which doesn't work well in the aqua form for GRASS.

Have you actually tried changing the #include directives to e.g.
<Tk/tk.h> and using the --framework= option?

The first place to try would be togl.[ch] in visualization/nviz/src.

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


More information about the grass-dev mailing list