[vtkusers] Difficulties migrating from vtk5.10.1 to vtk6.1.0

Leo van Ruijven LvRuijven at gmx.com
Tue Apr 8 03:19:32 EDT 2014


Hi pof,
I also did not use CMake for my own projects. And when I migrated from v5.8 to 6.0 I also started to become desparate. In my case my programs started to crash as soon as I loaded a VTK object. So I tried several compiler settings, but nothing helped.
Than I started using CMake for my own projects. And even projects that no longer ran, started to run again without any problem. And after looking at some examples it was relatively easy to write the CMake files.
Success, Leo.

 Hi all, I am (desperately) trying to migrate my application from 5.10.1 to 6.1.0, and so far without any success. I guess the problem comes from the fact that my application is compiled and linked with MSVisualStudio, without any use of CMake (though I obviously use CMake used to compile vtk librairies). Typically, I tried to follow what is mentionned on the wiki, i.e. adding the following 2 lines at the beginning of header files that #include vtk objects: #define vtkRenderingCore_AUTOINIT 4(vtkInteractionStyle,vtkRenderingFreeType,vtkRenderingFreeTypeOpenGL,vtkRenderingOpenGL) #define vtkRenderingVolume_AUTOINIT 1(vtkRenderingVolumeOpenGL) But this does not work. I also try to add paths for include files, without success. For instance, compiling a simple file, the compiler complains with: fatal error C1083: Impossible to open include file : 'vtkRenderWindowInteractor.h : No such file or directory So I'm completely lost. Is there any available example (using MSVC++) of a simple project successfuly migrated in vtk6. Thanks in advance for any tip advice Pof 
L van Ruijven
Functional Anatomy (ACTA)
Gustav Mahlerlaan 3004
1081 LA Amsterdam
Netherlands
Ph. +31(0)20-5980852 (out of office on friday)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20140408/b2d5574b/attachment.html>


More information about the vtkusers mailing list