<tt><font size=2>Pof,</font></tt>
<br>
<br><tt><font size=2>the </font></tt><a href=http://www.dependencywalker.com/><tt><font size=2 color=blue>http://www.dependencywalker.com/</font></tt></a><tt><font size=2>
is your friend in such situations. In general, now (vtk 6.1) the list of
required dlls is quite long.</font></tt>
<br>
<br><tt><font size=2>A.</font></tt>
<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">pof <jd379252@gmail.com></font>
<br><font size=1 color=#5f5f5f face="sans-serif">To:
</font><font size=1 face="sans-serif">"Marcus D. Hanwell"
<marcus.hanwell@kitware.com>, VTK Users <vtkusers@vtk.org></font>
<br><font size=1 color=#5f5f5f face="sans-serif">Date:
</font><font size=1 face="sans-serif">04/09/2014 03:46 AM</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Subject:
</font><font size=1 face="sans-serif">Re: [vtkusers]
Difficulties migrating from vtk5.10.1 to vtk6.1.0 (MSVC++)</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><tt><font size=2>Le 08/04/2014 19:46, Marcus D. Hanwell a écrit :<br>
> On Sun, Apr 6, 2014 at 2:48 PM, pof <jd379252@gmail.com> wrote:<br>
>> Hi all,<br>
>><br>
>> I am (desperately) trying to migrate my application from
5.10.1 to 6.1.0,<br>
>> and so far without any success.<br>
>> I guess the problem comes from the fact that my application is
compiled and<br>
>> linked with MSVisualStudio, without any use of CMake (though I
obviously use<br>
>> CMake used to compile vtk librairies).<br>
>><br>
>> Typically, I tried to follow what is mentionned on the wiki, i.e.
adding the<br>
>> 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>
> I would advise you to use the new macros I added as they just need
to<br>
> be called one from your application (not defined before any header
is<br>
> included). See,<br>
><br>
> </font></tt><a href=http://www.vtk.org/Wiki/VTK/Build_System_Migration#How_Implementation_Modules_Are_Initialized><tt><font size=2>http://www.vtk.org/Wiki/VTK/Build_System_Migration#How_Implementation_Modules_Are_Initialized</font></tt></a><tt><font size=2><br>
><br>
> #include <vtkAutoInit.h><br>
><br>
> VTK_MODULE_INIT(vtkRenderingOpenGL);<br>
> VTK_MODULE_INIT(vtkInteractionStyle);<br>
><br>
> That would initialize the vtkRenderingOpenGL and vtkInteractionStyle<br>
> modules and you would not need to add compiler definitions on the<br>
> command line or by hand.<br>
>> But this does not work. I also try to add paths for include files,
without<br>
>> success. For instance, compiling a simple file, the compiler complains
with:<br>
>> fatal error C1083: Impossible to open include file :<br>
>> 'vtkRenderWindowInteractor.h : No such file or directory<br>
> If you build against an installed VTK then all of the includes will
be<br>
> installed to one directory, and then you just need to ensure you add<br>
> that to the include search path. If you choose to build against the<br>
> build tree then you must add every source and binary directory for<br>
> every module you use and/or depend up on.<br>
>> So I'm completely lost. Is there any available example (using
MSVC++) of a<br>
>> simple project successfuly migrated in vtk6.<br>
>><br>
> I am not sure of any examples, but the above should make this pretty<br>
> simple. Hopefully this helps.<br>
><br>
> Marcus<br>
Hi Markus,<br>
<br>
I added your macro in the main header file:<br>
//VTK - auto initialization<br>
#include <vtkAutoInit.h><br>
VTK_MODULE_INIT(vtkRenderingOpenGL);<br>
VTK_MODULE_INIT(vtkInteractionStyle);<br>
VTK_MODULE_INIT(vtkRenderingFreeType);<br>
and I removed the following 2 lines from all the files I initially added
<br>
it to:<br>
//#define vtkRenderingCore_AUTOINIT <br>
4(vtkInteractionStyle,vtkRenderingFreeType,vtkRenderingFreeTypeOpenGL,vtkRenderingOpenGL)<br>
//#define vtkRenderingVolume_AUTOINIT 1(vtkRenderingVolumeOpenGL)<br>
<br>
Setting the correct install path (thanks to Artur & John, I now have
the <br>
"VTK\include\vtk-6.1" directory), all sources files now compile.<br>
So I did some progress.<br>
<br>
However, I'm no there yet as it does not link.<br>
It looks like quite some libs have changed name, and I'm not sure which
<br>
of the new ones I should add in the dependency.<br>
Is there a clever way to define which ones I need, or do I need to use
a <br>
trial/error procedure?<br>
<br>
Thanks for helping<br>
Pof<br>
<br>
_______________________________________________<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>