[vtkusers] VTK 6.0 static New() function returns NULL

Cory Quammen cquammen at cs.unc.edu
Wed Apr 17 23:20:34 EDT 2013


Does your CMakeLists.txt file have this:

find_package(VTK)
include(${VTK_USE_FILE})

In my experience, the second line is necessary to avoid getting NULL
objects returned by New().

Hope that helps,
Cory

On Wed, Apr 17, 2013 at 6:33 PM, Sebastien Calvi
<sebastien.calvi at yahoo.com> wrote:
> Hi all,
>
> I've downloaded and compile the release 6.0, have done a couple of
> modifications to have my code compliant with this new release but the New()
> functions to create objects returns NULL, always...
>
> What's wrong? Am I missing something?
> Is there a new way to create vtk object?
>
> Sebastien.
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>



-- 
Cory Quammen
Research Associate
Department of Computer Science
The University of North Carolina at Chapel Hill



More information about the vtkusers mailing list