<tt><font size=2>Hi,</font></tt>
<br>
<br><tt><font size=2>you need to fix the include paths and you can do it
easily in VS. </font></tt>
<br><tt><font size=2>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 </font></tt><font size=1 face="}">vtkInteractionStyle</font><tt><font size=2>).
You just need to check which modules your project requires.</font></tt>
<br>
<br><font size=1 face="}">//VTK - auto initialization</font>
<br><font size=1 face="}">#include "vtkAutoInit.h"</font>
<br><font size=1 face="}">VTK_MODULE_INIT(vtkRenderingOpenGL);</font>
<br><font size=1 face="}">VTK_MODULE_INIT(vtkRenderingFreeType);</font>
<br><font size=1 face="}">VTK_MODULE_INIT(vtkInteractionStyle);</font>
<br>
<br><tt><font size=2>(this particular one uses only vtkCharts). I have
no idea how and where to upload the sample.</font></tt>
<br>
<br><tt><font size=2>regards,</font></tt>
<br>
<br><tt><font size=2>A.</font></tt>
<br>
<br><font size=2 face="sans-serif">_____________________<br>
Dr. Artur Guzik<br>
<br>
Neubrex Co., Ltd.<br>
Sakaemachi-dori 1-1-24, Kobe, Hyogo 650-0023, Japan<br>
tel: +81-78-334-4033<br>
</font><a href=www.neubrex.com><font size=2 face="sans-serif">www.neubrex.com</font></a><font size=2 face="sans-serif"><br>
</font>
<br>
<br>
<br>
<br><font size=1 color=#5f5f5f face="sans-serif">From:      
 </font><font size=1 face="sans-serif">"Leo van Ruijven"
<LvRuijven@gmx.com></font>
<br><font size=1 color=#5f5f5f face="sans-serif">To:      
 </font><font size=1 face="sans-serif">pof <jd379252@gmail.com></font>
<br><font size=1 color=#5f5f5f face="sans-serif">Cc:      
 </font><font size=1 face="sans-serif">vtkusers@vtk.org</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Date:      
 </font><font size=1 face="sans-serif">04/08/2014 04:32 PM</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Subject:    
   </font><font size=1 face="sans-serif">[vtkusers]  Difficulties
migrating from vtk5.10.1 to vtk6.1.0</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Sent by:    
   </font><font size=1 face="sans-serif">"vtkusers"
<vtkusers-bounces@vtk.org></font>
<br>
<hr noshade>
<br>
<br>
<br><font size=1 face="Verdana">Hi pof,</font>
<p>
<br><font size=1 face="Verdana">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.</font>
<p>
<br><font size=1 face="Verdana">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.</font>
<p>
<br><font size=1 face="Verdana">Success, Leo.</font>
<p>
<p>
<br><font size=1 face="Verdana"> </font>
<br><font size=1 face="Verdana"> <br>
Hi all, <br>
<br>
I am (desperately)  trying to migrate my application from 5.10.1 to
<br>
6.1.0, and so far without any success. <br>
I guess the problem comes from the fact that my application is compiled
<br>
and linked with MSVisualStudio, without any use of CMake (though I <br>
obviously use CMake used to compile vtk librairies). <br>
<br>
Typically, I tried to follow what is mentionned on the wiki, i.e. adding
<br>
the following 2 lines at the beginning of header files that #include vtk
<br>
objects: <br>
#define vtkRenderingCore_AUTOINIT <br>
4(vtkInteractionStyle,vtkRenderingFreeType,vtkRenderingFreeTypeOpenGL,vtkRenderingOpenGL)
<br>
#define vtkRenderingVolume_AUTOINIT 1(vtkRenderingVolumeOpenGL) <br>
<br>
But this does not work. I also try to add paths for include files, <br>
without success. For instance, compiling a simple file, the compiler <br>
complains with: <br>
fatal error C1083: Impossible to open include file : <br>
'vtkRenderWindowInteractor.h : No such file or directory <br>
<br>
So I'm completely lost. Is there any available example (using MSVC++) of
<br>
a simple project successfuly migrated in vtk6. <br>
<br>
Thanks in advance for any tip advice <br>
Pof <br>
<br>
<br>
</font>
<br><font size=1 face="Verdana"><br>
L van Ruijven<br>
Functional Anatomy (ACTA)<br>
Gustav Mahlerlaan 3004<br>
1081 LA Amsterdam<br>
Netherlands<br>
Ph. +31(0)20-5980852 (out of office on friday)</font><font size=3> </font><tt><font size=2>_______________________________________________<br>
Powered by </font></tt><a href=www.kitware.com><tt><font size=2>www.kitware.com</font></tt></a><tt><font size=2><br>
<br>
Visit other Kitware open-source projects at </font></tt><a href=http://www.kitware.com/opensource/opensource.html><tt><font size=2>http://www.kitware.com/opensource/opensource.html</font></tt></a><tt><font size=2><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: </font></tt><a href=http://www.vtk.org/Wiki/VTK_FAQ><tt><font size=2>http://www.vtk.org/Wiki/VTK_FAQ</font></tt></a><tt><font size=2><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
</font></tt><a href=http://www.vtk.org/mailman/listinfo/vtkusers><tt><font size=2>http://www.vtk.org/mailman/listinfo/vtkusers</font></tt></a><tt><font size=2><br>
</font></tt>
<br>