[vtkusers] VTK installation in osX

Eric E. Monson emonson at cs.duke.edu
Thu Jun 24 16:15:08 EDT 2010


Hey Akemi,

I'm not sure what the problem is exactly, but I would advise starting with a more minimal build first, and then if they succeed you can turn on more options and rebuild (and it won't take nearly as long the next times). 

Here are the minimal commands that I would do to compile the current VTK (git master from last week) with Python wrapping on OS X 10.6.4 (leaving everything else with default values as they come up in ccmake, and using the system Python install):

(after git-ing or un-tarring the source)
cd VTK
mkdir build
cd build
ccmake ..
c 
(wait for configure, then change these options)
BUILD_SHARED_LIBS: ON
BUILD_TESTING: OFF
CMAKE_BUILD_TYPE: Release
CMAKE_OSX_ARCHITECTURES: x86_64
VTK_WRAP_PYTHON: ON
c
c
g
make

By default mine comes up with VTK_USE_RPATH: ON, CMAKE_OSX_DEPLOYMENT_TARGET: 10.6, VTK_USE_COCOA: ON. You might want to try even not turning on the Python wrapping at first just to make sure you can get through the build without it, and then run ccmake again to turn it on and try again.

If you still can't get through it with python on, then after it fails, run 
make VERBOSE=1
and let us know what the last command is that it fails on, the error message, and the VTK version you're trying.

Good luck,
-Eric

------------------------------------------------------
Eric E Monson
Duke Visualization Technology Group


On Jun 24, 2010, at 3:15 PM, Tyler, Akemi wrote:

> Hi vtk users,
> 
> I am trying to install VTK in my apple computer and experiencing a trouble. I have OS10.6 and Python 2.6 in my computer.
> 
> I follow instructions on :
> http://www.macresearch.org/installing_vtk_on_mac_os_x
> and 
> http://www.vtk.org/Wiki/Cocoa_VTK
> 
> In addition to the changes on these web pages, I put:
> 
> //Build VTK examples.
> BUILD_EXAMPLES:BOOL=ON
> 
> //Build Verdict with shared libraries.
> BUILD_SHARED_LIBS:BOOL=ON
> 
> //For backwards compatibility, what version of CMake commands and
> // syntax should this version of CMake try to support.
> CMAKE_BACKWARDS_COMPATIBILITY:
> STRING=2.4
> 
> //Minimum OS X version to target for deployment (at runtime); newer
> // APIs weak linked. Set to empty string for default value.
> CMAKE_OSX_DEPLOYMENT_TARGET:
> STRING=10.6
> 
> //Path to a program.
> PYTHON_EXECUTABLE:FILEPATH=/usr/bin/python2.6
> 
> //Wrap VTK classes into the Python language.
> VTK_WRAP_PYTHON:BOOL=ON
> 
> //Wrap VTK classes into the TCL language.
> VTK_WRAP_TCL:BOOL=ON
> 
> 
> The error message I get in the building stage is: 
> [ 69%] Building CXX object Rendering/CMakeFiles/vtkRenderingPythonD.dir/vtkRenderingPythonInit.cxx.o
> Linking CXX shared library ../bin/libvtkRenderingPythonD.dylib
> [ 69%] Built target vtkRenderingPythonD
> make: *** [all] Error 2
> 
> I tried different versions of VTK and Python combination. But none of them worked.
> What would you suggest to fix this problem?
> _______________________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
> 
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100624/9266a7a8/attachment.htm>


More information about the vtkusers mailing list