[vtkusers] SimpleCocoaVTK linker issues
Larry
l.kvitnevskiy+vtk at intellijointsurgical.com
Wed Nov 18 14:25:17 EST 2015
Hello,
I am trying to compile the SimpleCocoaVTK project, and I am running into
this linker issue:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_vtkCocoaGLView", referenced from:
_OBJC_CLASS_$_BasicVTKView in BasicVTKView.o
"_OBJC_METACLASS_$_vtkCocoaGLView", referenced from:
_OBJC_METACLASS_$_BasicVTKView in BasicVTKView.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
What I did so far:
-build VTK, following this http://www.vtk.org/Wiki/Cocoa_VTK (I also
specified the install path prefix to be /usr/local/vtk)
-opened the Examples/GUI/Cocoa/SimpleCocoaVTK.xcodeproj and set the Source
Trees as specified in the instructions
-made sure all of the files are found (i.e. not red)
My setup:
-Mac OS X 10.10
-Xcode 6.4
-cmake 3.1.1
-clang 6.1.0
-VTK 6.3
I used ‘otool’ and ‘nm’ to verify that libvtkRenderingOpenGL-6.3.a does
contain the definition for these symbols.
How can I fix this?
Thanks,
Larry
--
View this message in context: http://vtk.1045678.n5.nabble.com/SimpleCocoaVTK-linker-issues-tp5735086.html
Sent from the VTK - Users mailing list archive at Nabble.com.
More information about the vtkusers
mailing list