OSX 10.9 Compile error: garbage collection is no longer supported

I encountered this error when compiling VTK 6.1. After querying, it is related to the garbage collection mechanism of ObjectC.

The solution is to delete the compilation option "-fobjc-gc" of VTK_REQUIRED_OBJCXX_FLAGS in CMake, then Configure, Generate, make, this error will not occur.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325746541&siteId=291194637