<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Thanks for answering Artur (also thanks
to Leo),<br>
<br>
First thing I don't get:<br>
- I don't understand what you mean with the directory "<your
install>\vtk\include\vtk-6.1"<br>
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.<br>
<br>
Second thing:<br>
in which files should I insert the "VTK - auto initialization"
section ?<br>
Do you mean in all my source files that refer to vtk objects?<br>
<br>
Thanks in advance for your help<br>
Pof<br>
<br>
Le 08/04/2014 10:56, <a class="moz-txt-link-abbreviated" href="mailto:guzik@neubrex.jp">guzik@neubrex.jp</a> a écrit :<br>
</div>
<blockquote
cite="mid:OF351C813C.584A7BE3-ON49257CB4.002ED508-49257CB4.00321000@neubrex.jp"
type="cite"><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
face="}" size="1">vtkInteractionStyle</font><tt><font size="2">).
You
just need to check which modules your project requires.</font></tt>
<br>
<br>
<font face="}" size="1">//VTK - auto initialization</font>
<br>
<font face="}" size="1">#include "vtkAutoInit.h"</font>
<br>
<font face="}" size="1">VTK_MODULE_INIT(vtkRenderingOpenGL);</font>
<br>
<font face="}" size="1">VTK_MODULE_INIT(vtkRenderingFreeType);</font>
<br>
<font face="}" size="1">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 face="sans-serif" size="2">_____________________<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 moz-do-not-send="true" href="www.neubrex.com"><font
face="sans-serif" size="2">www.neubrex.com</font></a><font
face="sans-serif" size="2"><br>
</font>
<br>
<br>
<br>
<br>
<font color="#5f5f5f" face="sans-serif" size="1">From:
</font><font face="sans-serif" size="1">"Leo van Ruijven"
<a class="moz-txt-link-rfc2396E" href="mailto:LvRuijven@gmx.com"><LvRuijven@gmx.com></a></font>
<br>
<font color="#5f5f5f" face="sans-serif" size="1">To:
</font><font face="sans-serif" size="1">pof
<a class="moz-txt-link-rfc2396E" href="mailto:jd379252@gmail.com"><jd379252@gmail.com></a></font>
<br>
<font color="#5f5f5f" face="sans-serif" size="1">Cc:
</font><font face="sans-serif" size="1"><a class="moz-txt-link-abbreviated" href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a></font>
<br>
<font color="#5f5f5f" face="sans-serif" size="1">Date:
</font><font face="sans-serif" size="1">04/08/2014 04:32 PM</font>
<br>
<font color="#5f5f5f" face="sans-serif" size="1">Subject:
</font><font face="sans-serif" size="1">[vtkusers]
Difficulties
migrating from vtk5.10.1 to vtk6.1.0</font>
<br>
<font color="#5f5f5f" face="sans-serif" size="1">Sent by:
</font><font face="sans-serif" size="1">"vtkusers"
<a class="moz-txt-link-rfc2396E" href="mailto:vtkusers-bounces@vtk.org"><vtkusers-bounces@vtk.org></a></font>
<br>
<hr noshade="noshade">
<br>
<br>
<br>
<font face="Verdana" size="1">Hi pof,</font>
<p>
<br>
<font face="Verdana" size="1">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>
<p>
<br>
<font face="Verdana" size="1">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>
<p>
<br>
<font face="Verdana" size="1">Success, Leo.</font>
</p>
<p>
</p>
<p>
<br>
<font face="Verdana" size="1"> </font>
<br>
<font face="Verdana" size="1"> <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 face="Verdana" size="1"><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 moz-do-not-send="true"
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
moz-do-not-send="true"
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
moz-do-not-send="true" 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 moz-do-not-send="true"
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>
</p>
</blockquote>
<br>
</body>
</html>