All notes
Vtk

FAQ

Error in compiling Cocoa examples in Xcode

I met with this link error:

Undefined symbols:
  "_OBJC_CLASS_$_vtkCocoaGLView", referenced from:
This Ref said "It's an issue with the ABI change in the 64 Cocoa.". The solution is to patch VTK:
VTK/Rendering/vtkCocoaRenderWindowInteractor.mm, line 172, add the line

	__attribute__((visibility("default")))

right before the line at

	interface vtkCocoaServer : NSObject

VTK/Rendering/vtkCocoaGLView.h, line 57, add the same line right before the

	interface vtkCocoaGLView : NSView line.
Rebuild VTK.

Then I met runtime error:

dyld: Library not loaded: 
Referenced from: /Users/me/Desktop/executableName
  Reason: image not found