[vtk-developers] vtkImageReader2Factory missing in VTK modular

David Gobbi david.gobbi at gmail.com
Fri Apr 13 16:06:36 EDT 2012


On Fri, Apr 13, 2012 at 12:47 PM, Bill Lorensen <bill.lorensen at gmail.com> wrote:
> vtkImageReader2Factory is in IO/Image but is commented out of the
> CMakeLists.txt. I tried uncommenting but it needs IO/MINC and when I
> add that dependency it causes a circular dependency.

In the long term, it might be necessary to have vtkMINCReader register
itself with the factory at run-time.  The temporary fix would be to simply
add "#if 0" blocks around all vtkImageReader2Factory.cxx code that
needs vtkMINCReader. That will at least allow the factory to be compiled.

 - David



More information about the vtk-developers mailing list