[GRASS-dev] debugging nviz with TclTk 8.5 aqua
Michael Barton
michael.barton at asu.edu
Wed Jul 23 23:19:34 EDT 2008
On Jul 23, 2008, at 7:23 PM, William Kyngesburye wrote:
> Lookie what I got. This is the initial screen:
>
> <Picture-01.png>
>
>
> Odd. Also, the titlebar was under the menubar. After moving the
> window, it's better:
>
> <Picture-02.png>
>
>
> From here on it worked without problem, except an error about an
> unknown option -label when I click the show/hide panels button. The
> only visual issue besides the startup is the truncated menus.
It pretty much worked. BUT the weird thing was that the main GUI was
in tcltk x11 and only nviz was in tcltk aqua. Most stuff worked. Font
setting did not work. When I tried to add a new raster surface from
within NVIZ, it crashed.
Michael
>
>
> On Jul 23, 2008, at 7:40 PM, William Kyngesburye wrote:
>
>> 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.
>>
>>
>> _______________________________________________
>> grass-dev mailing list
>> grass-dev at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/grass-dev
>
> -----
> William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
> http://www.kyngchaos.com/
>
> "Oh, look, I seem to have fallen down a deep, dark hole. Now what
> does that remind me of? Ah, yes - life."
>
> - Marvin
>
>
More information about the grass-dev
mailing list