[vtkusers] Compiling VTK with Tcl/Tk on OS X

David Gobbi david.gobbi at gmail.com
Sat Feb 22 14:03:31 EST 2014


Hi Jameson,

The default Tk that comes with OS X is not Tk Aqua, it's something
that Apple put together themselves.

The version of Tk 8.5 that you downloaded probably uses Carbon (since
the official Tk 8.5 is Carbon) and VTK requires a Tk that uses Cocoa,
not Carbon.

To ensure that  VTK is set to build against default Tk that comes with
OS X, you should set this in your CMakeCache.txt:

TK_INCLUDE_PATH:PATH=/System/Library/Frameworks/Tk.framework/Headers
TK_LIBRARY:FILEPATH=/System/Library/Frameworks/tk.framework

 David

On Sat, Feb 22, 2014 at 10:21 AM, jmerkow <jmerkow at gmail.com> wrote:
> Right now I am using a a version I installed myself to try to get this to
> work.  Originally, I was building with the default version and got the same
> error. I can install tck tk aqua bi, I think thats the default version that
> comes on OS X.
>
> All these versions are 8.5, as well.
>
> -Jameson


More information about the vtkusers mailing list