Undefined Symbols: vtkOBJPolyDataProcessor::New() with dynamically built VTK libs
I've been using the vtkOBJPolyDataProcessor
to just load and not render some OBJ scenes. Linking against VTK 7.0.0 (from the download tarball), I can link against the class with no problems. However, on the nightly builds (and using Homebrew's VTK), I get:
Undefined symbols for architecture x86_64:
"vtkOBJPolyDataProcessor::New()", referenced from:
vtkSmartPointer<vtkOBJPolyDataProcessor>::New() in main.cpp.o
ld: symbol(s) not found for architecture x86_64
This zip file contains a simple enough example to replicate the problem. I'm running OSX 10.11.6, using the Xcode command line tools and CMake for builds.
I'm currently running git bisect
to see if I can find the commit at which this test code begins to fail, but I'm confused as to why vtkOBJImporter
compiles if my simple example doesn't. As far as I can tell, vtkOBJImporter
constructs a vtkOBJPolyDataProcessor
in the exact same way my example does.