[vtkusers] VTK 6 porting
Marcus D. Hanwell
marcus.hanwell at kitware.com
Fri Mar 15 13:29:19 EDT 2013
On Fri, Mar 15, 2013 at 1:22 PM, Sean McBride <sean at rogue-research.com> wrote:
> On Fri, 15 Mar 2013 16:54:59 +0100, Frédéric Speisser said:
>
>>We want to port our application using Vtk 5.9 to Vtk 6.
>>Some code working on 5.9 does not work in 6, simple example with
>>following line :
>>
>>vtkSmartPointer<vtkActor> actor = vtkSmartPointer<vtkActor>::New();
>>
>>returns a NULL pointer ...
>
> I've had a similar experience. I use CMake to build the VTK libraries, but for my own application I use my IDE (Xcode) and link against the VTK libraries. Everything links fine, but at runtime creating some objects (as above) returns NULL pointers. I have not found any solution yet...
>
If you don't want to use CMake you will have to generate the compiler
definitions yourself. You can easily build a small CMake project, get
the definitions and use them. Alternatively we could document what
those definitions trigger so that you could add a source file manually
to your project. I added runtime warnings about abstract objects in
master to make this easier to diagnose too.
Marcus
More information about the vtkusers
mailing list