[vtk-developers] Recent changes to factory mechansim

Marcus D. Hanwell marcus.hanwell at kitware.com
Tue Sep 11 19:35:01 EDT 2012


On Sun, Jun 24, 2012 at 3:54 PM, Bill Lorensen <bill.lorensen at gmail.com> wrote:
> In trying to track down some segfaults in ITK's VtkGlue code, I discovered that
> INCLUDE(${VTK_USE_FILE})
> is required after
> find_package(VTK REQUIRED)
>
> Without INCLUDE(${VTK_USE_FILE}),
> vtkRenderWindow::New() returns NULL;
>
> Apparently, in the past, the INCLUDE(${VTK_USE_FILE}) must have been optional.
>
> Is this correct?
>
I just came across this as I was searching for something else, and it
looks like it was never answered. Sorry I missed the post, the
VTK_USE_FILE dependency is not required, but you must take care of
some things yourself including adding the compiler definitions
required for the object factory registration.

I am writing up some documentation for the VTK wiki which will answer
this in more detail. This is a work in progress, feedback/edits are
welcome.

http://vtk.org/Wiki/VTK/Build_System_Migration

Hopefully this will help people who follow, and my apologies for
missing this post.

Marcus



More information about the vtk-developers mailing list