[vtkusers] Build VTK 5.8 with TCL wrap on on MacOS X 10.6.7

Rick Frank rickfrank at me.com
Thu Oct 27 15:26:38 EDT 2011


Thanks that worked.

On Oct 27, 2011, at 11:59 AM, David Gobbi wrote:

> Hi Rick,
> 
> Apple's tcl comes installed on OS X 10.6, they provide two versions of
> tcl side-by-side... tcl 8.4 (Carbon) and tcl 8.5 (Cocoa).  The default
> is tcl 8.5.
> 
> To build VTK with the default Tcl, all of your TK and TCL CMake
> variables should point to the default system frameworks for Tcl/Tk:
> 
> TK_INCLUDE_PATH:PATH=/System/Library/Frameworks/Tk.framework/Headers
> 
> If these variables point to somewhere in /Library instead of
> /System/Library then you are using a third-party Tcl instead of
> Apple's Tcl.
> 
> The ActiveState Tcl 8.5 package is Carbon. Do not use it.  Stick with
> the Tcl/Tk that come with OS X.  CMake will find the system Tcl/Tk
> frameworks automatically if you have XCode installed.
> 
> - David
> 
> 
> On Thu, Oct 27, 2011 at 9:35 AM, Rick Frank <rickfrank at me.com> wrote:
>> Hi
>> 
>> Thanks for the help...
>> 
>> Rick-Development-MacBook:bin rfrank$ tclsh
>> % info patchlevel
>> 8.5.7
>> %
>> 
>> /Developer/SDKs/MacOSX10.6.sdk
>> 
>> 
>> 
>> when you say "Apple's " tcl package, is that different from ActiveState's?
>> 
>> Where do I get Apple's tcl, or was / is it installed in 10.6?
>> 
>> My original run of CMake said that there was no TCL/TK installed...
>> 
>> On Oct 27, 2011, at 11:04 AM, David Gobbi wrote:
>> 
>>> On Thu, Oct 27, 2011 at 8:53 AM, Sean McBride <sean at rogue-research.com> wrote:
>>>> On Wed, 26 Oct 2011 17:04:50 -0400, Rick Frank said:
>>>> 
>>>>> When I try to build VTK 5.8 with TCK wrap on I get the following error:
>>>>> 
>>>>> ../VTK.5.8/Rendering/vtkCocoaTkUtilities.mm: error: Semantic Issue: No
>>>>> member named 'view' in 'TkWindowPrivate'
>>>>> 
>>>>> 
>>>>> Did I miss some other setting?
>>>> 
>>>> I'm not at all sure, but you might try building with VTK's Carbon option instead of the default Cocoa option.  I think the TCL stuff uses Carbon.
>>> 
>>> Apple's Tcl package switched over to Cocoa in OS X 10.6.  Likewise,
>>> VTK switched its vtkTkRenderWidget over to Cocoa in VTK 5.6.  I know,
>>> because I was the one who made the changes.
>>> 
>>> Most likely, Frank is either using the OS X 10.5 SDK, or is using the
>>> Tk 8.4 framework.  On Snow Leopard, the Tk 8.5 framework should be
>>> used, and VTK_USE_COCOA should be On.
>>> 
>>> - David
>> 
>> _______________________________________________
>> Powered by www.kitware.com
>> 
>> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>> 
>> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>> 
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>> 




More information about the vtkusers mailing list