If you get error messages, I like this when trying to build VTK:
@error: garbage collection is no longer supported
make [2]: *** Rendering /OpenGL/CMakeFiles/vtkRenderingOpenGL.dir/vtkCocoaRenderWindowInteractor.mm.o] Error 1
make 1 : *** [[Rendering / OpenGL / CMakeFiles / vtkRenderingOpenGL.dir / all] Error 2
You need to remove the flag in the source CMakeLists.txt file:
@IF(APPLE) SET(VTK_OBJCXX_FLAGS_DEFAULT "-fobjc-gc") SET(VTK_REQUIRED_OBJCXX_FLAGS ${VTK_OBJCXX_FLAGS_DEFAULT} CACHE STRING "Extra flags for Objective-C++ compilation") MARK_AS_ADVANCED(VTK_REQUIRED_OBJCXX_FLAGS) ENDIF(APPLE)@
Either push out or delete everything together. Then run cmake again in the empty directory. Check the created CMakeCache.txt file in the assembly directory, if it contains a key such as VTK_REQUIRED_OBJCXX_FLAGS , it should not, then run cmake again in the empty directory.
This bug may be fixed in future versions of VTK.
Source: [SOLVED] Build Qt 5.2.1 + VTK 6.1.0 + CMake 2.8.12.2
Scarysize
source share