[vtkusers] Error porting from VTK 5.10 to VTK 6.1

Cory Quammen cory.quammen at kitware.com
Fri Nov 6 10:53:38 EST 2015


Francesco,

If you are using Visual Studio directly, then you need to define some
symbols either in your code or as /D options. This sets up VTK's object
factory so that you can instantiate vtkActors - if you don't define these
symbols, all invocations to vtkActor::New() will return NULL, which is
leading to the error you are seeing.

See these threads for some details on using VTK_AUTOINIT definitions to set
up the VTK factory:

http://vtk.1045678.n5.nabble.com/probe-vtk6-installation-for-AUTOINIT-values-td5715271.html

http://vtk.1045678.n5.nabble.com/VTK-6-1-linking-autoinit-td5723342.html

There is also some useful information here:

http://www.vtk.org/Wiki/VTK/Build_System_Migration#Implementation_Modules

HTH,
Cory



On Fri, Nov 6, 2015 at 3:30 AM, francesco.argese <kekko84 at gmail.com> wrote:

> 1) No, I'm not using CMake. I'm using Visual Studio.
>
> 2) Stack trace after run-time error:
> <http://vtk.1045678.n5.nabble.com/file/n5734832/Immagine2.png>
>
> Thanks,
> Francesco
>
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/Error-porting-from-VTK-5-10-to-VTK-6-1-tp5734818p5734832.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> 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
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>



-- 
Cory Quammen
R&D Engineer
Kitware, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20151106/170e593f/attachment.html>


More information about the vtkusers mailing list