[vtkusers] Building VTK on Mac OS X without using framework

Brad King brad.king at kitware.com
Wed Feb 1 10:01:56 EST 2006


Theodore Sternberg wrote:
> I'd like to build VTK without using superuser privileges.  That is, I'd 
> like to build VTK against Tcl, Tk and Python that I've built and installed 
> as an ordinary user -- no "configure -framework" and "make 
> frameworkinstall".
> 
> Has anyone ever done such an installation, successfully?  I'm having a lot 
> of trouble.  For starters, ccmake generates a CMakeCache.txt that has some 
> of the Tcl-related paths going to the Tcl I've built and others going to 
> the system's Tcl down in /usr.  Ditto for Python.

You can use the ccmake dialog to edit these paths and correct them.  One
of the things on our todo list for CMake is to improve the find support
for Tcl and Python to help avoid finding pieces from different
installations.

> Compilation proceeds normally in the various VTK directories (Common, 
> Graphics, Rendering...) but then fails at the link stage, unless I 
> manually put "-ltcl -ltk -lX11" on the link line.

Make sure TCL_LIBRARY and the like are set to your libraries and not the
frameworks.

> The showstopper comes a while later, when building the vtkTkRenderWidget, 
> with a conflict between how X.h and Quickdraw.h define "Cursor".

I think your Tk installation must be installed in some special way to
support X-windows on the Mac.  I'm not sure what this means, though.
Hopefully someone else can answer this.

-Brad




More information about the vtkusers mailing list