[vtkusers] error compiling VTK 6.1 in release

Sean McBride sean at rogue-research.com
Mon Mar 17 10:30:25 EDT 2014


On Sat, 15 Mar 2014 16:27:33 +0100, Waldo Valenzuela said:

>I am trying to compile VTK 6.1 for mac 0SX 10.9, and in debug not
>problem, but in release I get the following error:
>
>error: garbage collection is no longer supported
>
>There is a special configuration in CMAKE or XCODE to fix it.

Is is because you are using the very-new Xcode 5.1 and it has removed Cocoa garbage collection support.  VTK does not require Cocoa garbage collection, but was configured to built with support for it on.  You can simply remove the -fobjc-gc flag from VTK_REQUIRED_OBJCXX_FLAGS.

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