[vtkusers] Building Cocoa example on OSX

Andy Somogyi andy.somogyi at gmail.com
Tue Mar 10 16:15:22 EDT 2015


I’m building it now with clang.

Note, clang (the only default compiler on OSX) defaults to C++11, and VTK does not appear to build in C++11 mode, so I had to add the -std=c++03 flag, and seems to be building OK. 

On Mar 10, 2015, at 10:43 AM, Sean McBride <sean at rogue-research.com> wrote:

> On Mon, 9 Mar 2015 21:53:10 -0400, Andy Somogyi said:
> 
>> This question has been asked before, but I’ve not seen any resolution. 
>> 
>> I’m trying the build a Cocoa example on OSX 10.9, and I get the
>> 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
> 
> The SimpleCocoaVTK example?  Are you trying to build it from it's Xcode project or with CMake?  In any case, IIRC, it was broken for a while but fixed in git master months ago.  Could you try VTK 6.2?
> 
> Cheers,
> 
> -- 
> ____________________________________________________________
> 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