<span style='font-family:Verdana'><span style='font-size:12px'><p style="margin:0px; padding:0px;" >Hi pof,</p><br /><p style="margin:0px; padding:0px;" ></p><p style="margin:0px; padding:0px;" >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.</p><br /><p style="margin:0px; padding:0px;" ></p><p style="margin:0px; padding:0px;" >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.</p><br /><p style="margin:0px; padding:0px;" ></p><p style="margin:0px; padding:0px;" >Success, Leo.</p><br /><p style="margin:0px; padding:0px;" ></p><br /><p style="margin:0px; padding:0px;" ></p><p style="margin:0px; padding:0px;" > </p><blockquote style="margin: 0px 0px 0px 5px; padding-left: 5px; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid;" type="cite"><div><div><pre style="white-space: pre-wrap; -ms-word-wrap: break-word;">
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
</pre></div></div></blockquote><br /><span id="editor_signature"><span style="font-family: Verdana; font-size: 12px;">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)</span></span></span></span>