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

Arnav Moudgil amoudgil at stanford.edu
Thu Mar 29 19:39:34 EDT 2012


Hi David,  

Yes, I had ActiveState Tcl installed as well. I deleted it and VTK found the system installations of Tcl/Tk. So it compiles okay and, with some effort, installs itself in the right directories. Now, however, I'm having problems loading VTK from Python. Here's the error:

Python 2.7.2 (v2.7.2:8527427914a2, Jun 11 2011, 15:22:34)  
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import vtk
Fatal Python error: Interpreter not initialized (version mismatch?)
^C[1]    26559 abort      python


Any idea what's going on here?


Thanks,  

--  
Arnav


On Wednesday, March 28, 2012 at 6:22 PM, David Gobbi wrote:

> Hi Arnav,
>  
> There is a typo in your CMakeCache, in the TCL_INCLUDE_PATH.
>  
> The error you are getting seems to indicate that there is another
> tcl.h somewhere in your include path... maybe somewhere in
> /usr/include or /usr/local/include. Do you have multiple Tk
> installations on your machine?
>  
> - David
>  
>  
> On Wed, Mar 28, 2012 at 6:11 PM, Arnav Moudgil <amoudgil at stanford.edu (mailto:amoudgil at stanford.edu)> wrote:
> > 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/20120329/118a10ea/attachment.htm>


More information about the vtkusers mailing list