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

pof jd379252 at gmail.com
Tue Apr 8 08:22:28 EDT 2014


Thanks for answering Artur (also thanks to Leo),

First thing I don't get:
- I don't understand what you mean with the directory "<your 
install>\vtk\include\vtk-6.1"
Personnally, after unzipping the vtk zip file (in "<your 
install>\vtk-6.1.0"), I do not see any \include directory that contains 
all header files.

Second thing:
in which files should I insert the "VTK - auto initialization" section ?
Do you mean in all my source files that refer to vtk objects?

Thanks in advance for your help
Pof

Le 08/04/2014 10:56, guzik at neubrex.jp a écrit :
> Hi,
>
> you need to fix the include paths and you can do it easily in VS.
> Just point via Project->C++->General->Additional Include Directories 
> to the directory where *.h files are located (say, <your 
> install>\vtk\include\vtk-6.1). Once you do that and also add the 
> libraries and link, you'll find out the run-time errors and crashes. 
> And this is actually the real pain. You must add module auto 
> initialisation (the sample in wiki never worked for me as it failed to 
> mention that you may need other modules, for example 
> vtkInteractionStyle). You just need to check which modules your 
> project requires.
>
> //VTK - auto initialization
> #include "vtkAutoInit.h"
> VTK_MODULE_INIT(vtkRenderingOpenGL);
> VTK_MODULE_INIT(vtkRenderingFreeType);
> VTK_MODULE_INIT(vtkInteractionStyle);
>
> (this particular one uses only vtkCharts). I have no idea how and 
> where to upload the sample.
>
> regards,
>
> A.
>
> _____________________
> Dr. Artur Guzik
>
> Neubrex Co., Ltd.
> Sakaemachi-dori 1-1-24, Kobe, Hyogo 650-0023, Japan
> tel: +81-78-334-4033
> www.neubrex.com
>
>
>
>
> From: "Leo van Ruijven" <LvRuijven at gmx.com>
> To: pof <jd379252 at gmail.com>
> Cc: vtkusers at vtk.org
> Date: 04/08/2014 04:32 PM
> Subject: [vtkusers]  Difficulties migrating from vtk5.10.1 to vtk6.1.0
> Sent by: "vtkusers" <vtkusers-bounces at vtk.org>
> ------------------------------------------------------------------------
>
>
>
> 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)_______________________________________________
> 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
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20140408/eafb8f5d/attachment.html>


More information about the vtkusers mailing list