[vtkusers] Installing VTK 5.0 on Mac OSX 10.4.6
Siddartha Krishnan
sidd.krish at gmail.com
Thu May 11 14:07:23 EDT 2006
Hi,
I relatively new to Mac OSX and am having trouble setting up VTK 5.0
on OSX 10.4.6. I used cmake to build vtk and it did so without any
errors, but cannot seem to run the sample code on the vtk.org site.
I get the following errors:
test.cpp:2:31: error: vtkPolyDataMapper.h: No such file or directory
test.cpp:3:22: error: vtkActor.h: No such file or directory
test.cpp:4:29: error: vtkRenderWindow.h: No such file or directory
test.cpp:5:25: error: vtkRenderer.h: No such file or directory
test.cpp:6:39: error: vtkRenderWindowInteractor.h: No such file or
directory
test.cpp:8: error: '::main' must return 'int'
test.cpp: In function 'int main()':
test.cpp:12: error: 'vtkSphereSource' was not declared in this scope
test.cpp:12: error: 'sphere' was not declared in this scope
test.cpp:12: error: 'vtkSphereSource' is not a class or namespace
test.cpp:12: error: 'New' was not declared in this scope
test.cpp:18: error: 'vtkPolyDataMapper' was not declared in this scope
test.cpp:18: error: 'map' was not declared in this scope
test.cpp:18: error: 'vtkPolyDataMapper' is not a class or namespace
test.cpp:22: error: 'vtkActor' was not declared in this scope
test.cpp:22: error: 'aSphere' was not declared in this scope
test.cpp:22: error: 'vtkActor' is not a class or namespace
test.cpp:27: error: 'vtkRenderer' was not declared in this scope
test.cpp:27: error: 'ren1' was not declared in this scope
test.cpp:27: error: 'vtkRenderer' is not a class or namespace
test.cpp:28: error: 'vtkRenderWindow' was not declared in this scope
test.cpp:28: error: 'renWin' was not declared in this scope
test.cpp:28: error: 'vtkRenderWindow' is not a class or namespace
test.cpp:32: error: 'vtkRenderWindowInteractor' was not declared in
this scope
test.cpp:32: error: 'iren' was not declared in this scope
test.cpp:32: error: 'vtkRenderWindowInteractor' is not a class or
namespace
I have a feeling that the environmental variables are not set
correctly and am not sure how to set them. I have edited my .profile
as follows:
export VTKBUILD=/Develop/VTKBuild
export VTKSOURCE=/Develop/VTK
export TCLLIBPATH=${VTKSOURCE}/Wrapping/Tcl:
export PYTHONPATH=${VTKSOURCE}/Wrapping/Python:${VTKBUILD}
export DYLD_LIBRARYN32_PATH=${VTKBUILD}
alias vtk ${VTKBUILD}/bin/vtk
but whenever I try to source .profile, the following errors occur:
-bash: alias: vtk: not found
-bash: alias: /Develop/VTKBuild/bin/vtk: not found
These files do exist.
I would appreciate any help I can get.
Thanks in Advance,
Sidd
More information about the vtkusers
mailing list