<font><font face="verdana,sans-serif">Hi guys,<br><br>I am trying to switch from VTK 5.6.1 to 5.8.0. I use Visual Studio 2010 x64. My project compiles properly when linked against vtk5.6.1, but gives the following error if I try to use vtk5.8.0:<br>
<br><span style="font-family:courier new,monospace">error LNK2019: unresolved external symbol "public: class vtkImageStencilData * __cdecl vtkImageStencilSource::GetOutput(void)" (?GetOutput@vtkImageStencilSource@@QEAAPEAVvtkImageStencilData@@XZ) referenced in function "public: class itk::SmartPointer<class itk::Image<unsigned char,3> > __cdecl Vertebra::getMask(void)" (?getMask@Vertebra@@QEAA?AV?$SmartPointer@V?$Image@E$02@itk@@@itk@@XZ)</span><br>
<br>I changed CMakeLists.txt from:<br><span style="font-family:courier new,monospace">TARGET_LINK_LIBRARIES(myProject vtkVolumeRendering vtkRendering vtkCommon QVTK)</span><br>to:<br><span style="font-family:courier new,monospace">TARGET_LINK_LIBRARIES(</span></font></font><font><font face="verdana,sans-serif"><span style="font-family:courier new,monospace">myProject </span></font></font><font><font face="verdana,sans-serif"><span style="font-family:courier new,monospace">${VTK_LIBRARIES} QVTK)</span><br>
I also tried adding <span style="font-family:courier new,monospace">vtkImaging</span> to the library list, but it makes no difference.<br><br>Do you have a solution for this?<br><br>Regards,<br>Dženan<br></font></font>