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

Arnav Moudgil amoudgil at stanford.edu
Fri Mar 30 01:20:32 EDT 2012


Both PYTHONPATH and DYLD_LIBRARY_PATH are empty strings. But in the Python interpreter, running:

import sys
print sys.path

gives this:

['', '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7', '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages', ... '/Library/Python/2.7/site-packages/VTK-5.8.0-py2.7.egg, ...]

As for running the vtkpython executable, it too crashes:

dyld: Library not loaded: libvtksys.5.8.dylib
  Referenced from: /usr/local/bin/vtkpython
  Reason: image not found
[1]    27318 trace trap  vtkpython


libvtksys.5.8.dylib is located in /usr/local/lib/vtk-5.8. I wonder if that is part of the problem?


--  
Arnav


On Thursday, March 29, 2012 at 5:30 PM, David Gobbi wrote:

> Hmm... that's the error that I see on my system when I try loading
> python 2.5 modules into python 2.6, but I imagine that you compiled
> VTK against the python 2.7 dylibs, so for you everything should be
> fine.
>  
> Do "echo $PYTHONPATH" and "echo $DYLD_LIBRARY_PATH" to make sure that
> those variables aren't pointing to the wrong modules or dylibs.
>  
> Also try running the "vtkpython" executable in VTK's bin dir to see if
> that works better.
>  
> - David
>  
>  
> On Thu, Mar 29, 2012 at 5:39 PM, Arnav Moudgil <amoudgil at stanford.edu (mailto:amoudgil at stanford.edu)> wrote:
> > 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/0e2817b2/attachment.htm>


More information about the vtkusers mailing list