[vtkusers] Can't find _OBJC_CLASS_$_vtkCocoaGLView
Scott Harris
scottrharris at gmail.com
Thu May 20 15:50:57 EDT 2010
Yup. I've got VTK_USE_COCOA on. I had forgotten to include the IOKit framework in my project and for some reason, the linker was dying on the vtkCocoaGLView object. I don't understand, but the error is gone!
In addition, XCode was retaining library search paths that I didn't want it to look in. Deleting all the vtk .a files from my project and re-adding them from another folder (I was experimenting with 64 bit vs 32 bit versions of VTK) caused the linker to use -L on both paths and things were getting confused. I had to manually remove the wrong search paths from the project.pbxproj file inside my XCode project. Weird. The search paths in XCode either don't stick for me or are too sticky.
Thanks,
-Scott
On May 20, 2010, at 8:20 AM, Sean McBride wrote:
> On Wed, 19 May 2010 19:18:17 -0600, Scott Harris said:
>
>> I'm trying to build a Cocoa+VTK+PyObjC project in XCode, and I'm stuck
>> on this linker error:
>>
>> Undefined symbols:
>> "_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
>> collect2: ld returned 1 exit status
>>
>> I've been poking around, but I can't figure out where this should be
>> defined. I'm linking to all of the .a files in the VTK lib directory.
>> There must be something obvious that I'm missing?
>
> Scott,
>
> vtkCocoaGLView is part of libvtkRendering.a, but only if you build with
> VTK_USE_COCOA=ON. Did you?
>
> --
> ____________________________________________________________
> Sean McBride, B. Eng sean at rogue-research.com
> Rogue Research www.rogue-research.com
> Mac Software Developer Montréal, Québec, Canada
>
>
More information about the vtkusers
mailing list