[vtkusers] Trouble Installing VTK on Mac OS X 10.7.2 Lion

Arnav Moudgil amoudgil at stanford.edu
Wed Mar 28 20:11:28 EDT 2012


Hi all,

I've been trying to install VTK on my Mac for the past two days and have
not been successful. First I was getting this error:

..../VTK/Rendering/vtkCocoaTkUtilities.mm:57: error: ‘struct
TkWindowPrivate’ has no member named ‘view’


I subsequently changed all references of Tcl/Tk to the system
installation of Tcl/Tk, as outlined here:
http://www.vtk.org/pipermail/vtkusers/2011-October/119722.html

I am trying to install with Java, Tcl, and Python wrappings, though if
it helps any I can gget by with just the Python wrappings. Here is the
error I currently get:


Scanning dependencies of target vtkRenderingPythonTkWidgets

[ 64%] Building CXX object
Rendering/CMakeFiles/vtkRenderingPythonTkWidgets.dir/vtkTkWidgetsInit.cxx.o
In file included from /Users/ocean57/Downloads/VTK/Common/vtkTk.h:26,
                 from
/Users/ocean57/Downloads/VTK/Rendering/vtkTkWidgetsInit.cxx:16:
/System/Library/Frameworks/Tk.framework/Headers/tk.h:23:3: error:
#error Tk 8.5 must be compiled with tcl.h from Tcl 8.5
[ 64%] Building CXX object
Rendering/CMakeFiles/vtkRenderingPythonD.dir/vtkOpenGLLightingPainterPython.cxx.o
make[2]: *** [Rendering/CMakeFiles/vtkRenderingPythonTkWidgets.dir/vtkTkWidgetsInit.cxx.o]
Error 1
make[1]: *** [Rendering/CMakeFiles/vtkRenderingPythonTkWidgets.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 64%] Building CXX object
Rendering/CMakeFiles/vtkRenderingPythonD.dir/vtkOpenGLPainterDeviceAdapterPython.cxx.o
[ 64%] Building CXX object
Rendering/CMakeFiles/vtkRenderingPythonD.dir/vtkOpenGLPolyDataMapperPython.cxx.o
[ 64%] Building CXX object
Rendering/CMakeFiles/vtkRenderingPythonD.dir/vtkOpenGLPolyDataMapper2DPython.cxx.o
[ 64%] Building CXX object
Rendering/CMakeFiles/vtkRenderingPythonD.dir/vtkOpenGLPropertyPython.cxx.o
[ 64%] Building CXX object
Rendering/CMakeFiles/vtkRenderingPythonD.dir/vtkOpenGLRenderWindowPython.cxx.o
[ 64%] Building CXX object
Rendering/CMakeFiles/vtkRenderingPythonD.dir/vtkOpenGLRendererPython.cxx.o
[ 64%] Building CXX object
Rendering/CMakeFiles/vtkRenderingPythonD.dir/vtkOpenGLRepresentationPainterPython.cxx.o
[ 64%] Building CXX object
Rendering/CMakeFiles/vtkRenderingPythonD.dir/vtkOpenGLScalarsToColorsPainterPython.cxx.o
[ 64%] Building CXX object
Rendering/CMakeFiles/vtkRenderingPythonD.dir/vtkOpenGLTexturePython.cxx.o
[ 64%] Building CXX object
Rendering/CMakeFiles/vtkRenderingPythonD.dir/vtkOverlayPassPython.cxx.o
[ 64%] Building CXX object
Rendering/CMakeFiles/vtkRenderingPythonD.dir/vtkRenderPassCollectionPython.cxx.o
[ 64%] Building CXX object
Rendering/CMakeFiles/vtkRenderingPythonD.dir/vtkSequencePassPython.cxx.o
[ 64%] Building CXX object
Rendering/CMakeFiles/vtkRenderingPythonD.dir/vtkShadowMapBakerPassPython.cxx.o
[ 64%] Building CXX object
Rendering/CMakeFiles/vtkRenderingPythonD.dir/vtkShadowMapPassPython.cxx.o
[ 64%] Building CXX object
Rendering/CMakeFiles/vtkRenderingPythonD.dir/vtkSobelGradientMagnitudePassPython.cxx.o
[ 64%] Building CXX object
Rendering/CMakeFiles/vtkRenderingPythonD.dir/vtkTranslucentPassPython.cxx.o
[ 64%] Building CXX object
Rendering/CMakeFiles/vtkRenderingPythonD.dir/vtkUniformVariablesPython.cxx.o
[ 64%] Building CXX object
Rendering/CMakeFiles/vtkRenderingPythonD.dir/vtkVolumetricPassPython.cxx.o
[ 64%] Building CXX object
Rendering/CMakeFiles/vtkRenderingPythonD.dir/vtkGLSLShaderPython.cxx.o
[ 64%] Building CXX object
Rendering/CMakeFiles/vtkRenderingPythonD.dir/vtkGLSLShaderDeviceAdapterPython.cxx.o
[ 64%] Building CXX object
Rendering/CMakeFiles/vtkRenderingPythonD.dir/vtkGLSLShaderProgramPython.cxx.o
[ 64%] Building CXX object
Rendering/CMakeFiles/vtkRenderingPythonD.dir/vtkFreeTypeLabelRenderStrategyPython.cxx.o
[ 64%] Building CXX object
Rendering/CMakeFiles/vtkRenderingPythonD.dir/vtkOpenGLFreeTypeTextMapperPython.cxx.o
[ 64%] Building CXX object
Rendering/CMakeFiles/vtkRenderingPythonD.dir/vtkGenericOpenGLRenderWindowPython.cxx.o
[ 64%] Building CXX object
Rendering/CMakeFiles/vtkRenderingPythonD.dir/vtkCocoaRenderWindowInteractorPython.cxx.o
[ 64%] Building CXX object
Rendering/CMakeFiles/vtkRenderingPythonD.dir/vtkCocoaRenderWindowPython.cxx.o
[ 64%] Building CXX object
Rendering/CMakeFiles/vtkRenderingPythonD.dir/vtkRenderingPythonInit.cxx.o
Linking CXX shared library ../bin/libvtkRenderingPythonD.dylib
[ 64%] Built target vtkRenderingPythonD
make: *** [all] Error 2

My CMakeCache.txt file is here: http://stanford.edu/~amoudgil/CMakeCache.txt

Please help! Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120328/27591b0f/attachment.htm>


More information about the vtkusers mailing list