[vtkusers] Can't find vtkCocoaGLView VTK (5.4.2), Xcode(3.2.1), OS X10.6

Scott Harris scottrharris at gmail.com
Wed Jun 16 22:43:29 EDT 2010

I'm trying to build a app that's based upon the SimpleCocoaVTK example and I'm running into an odd linker error:

  "_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

Shouldn't this be in the libvtkRendering.dylib that I'm linking to? Am I missing something obvious?


On May 19, 2010, at 10:32 AM, Sean McBride wrote:

> On Fri, 14 May 2010 18:52:28 -0600, Scott Harris said:
>> Dylibs: Well, I got this working a few years ago where I had VTK+Cocoa
>> +Python+PyObjC+ObjC all working together in a demo app. I never went
>> beyond that, but I'd like to get back to it. It was on an old version of
>> OSX on PPC. The dylibs are required for Python since you need to import
>> the VTK stuff at runtime.
>> The odd thing that I'm seeing now is that if I build the dylibs and link
>> to the .a files, the project somehow thinks I'm using dylibs. Rebuilding
>> VTK for static libs fixes the issue.
>> Are the .a files really different when I build shared libs? I was hoping
>> to have both versions in one place.
> I'm not sure CMake supports that.
>> I'm going to try building the static libs in one directory and shared
>> libs in another
> That should certainly work.
>> As far as that linker path goes, where does it come from? I could not
>> find the source of it when I was poking around in the XCode settings.
> I forget exactly, but you could use the git web interface to examine the
> changes I committed.
> Cheers,
> --
> ____________________________________________________________
> Sean McBride, B. Eng                 sean at rogue-research.com
> Rogue Research                        www.rogue-research.com
> Mac Software Developer              Montréal, Québec, Canada

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100616/319a65cd/attachment.htm>

More information about the vtkusers mailing list