[Insight-developers] VTK interaction problems.
Mark Foskey
mark_foskey@unc.edu
Thu, 13 Feb 2003 11:25:13 -0500
OK, I fixed the problem by modifying
f:\Insight\Auxiliary\vtk\CMakeLists.txt
to include itkCommon.
Should I check that change in? I'm not sure if there's some reason the
library isn't listed in that file. I take it such flags as USE_VTK are
OFF for the dashboard?
Mark Foskey wrote:
> This morning I did a cvs update on Insight, ran CMakeSetup, and
tried to
> recompile just the ITK library, with USE_VTK turned on as usual for
me.
> This is with VC++ 6.0. I got many (1600+) unresolved symbol errors
like
> this one:
>
> itkPNGVTKtoITKtoVTK.obj : error LNK2001: unresolved external symbol
> "public: void __thiscall vtkViewport::AddProp(class vtkProp *)"
> (?AddProp@vtkViewport@@QAEXPAVvtkProp@@@Z)
>
> Manually adding the vtkCommon.lib the libraries list for one of the
> projects eliminates the errors for that particular project.
>
> My Insight-VC++/CMakeCache.txt file is at
>
> http://www.cs.unc.edu/~foskey/CMakeCache.txt
>
> My version of VTK is a CVS snapshot taken, I believe, on Jan 15.
>
> Does anybody have any ideas as to how I can avoid this in the future? I
> have had similar problems in the past, and I have frequently had to
> resort to a clean rebuild of ITK, or of VTK and ITK, in order to get
> working again.
>
--
Mark Foskey (919) 843-5436 Computer-Aided Diagnosis and Display Lab
mark_foskey@unc.edu Department of Radiology, CB 7515, UNC
http://www.cs.unc.edu/~foskey Chapel Hill, NC 27599-7515