[Insight-users] problem compiling ITK + VTK

Luis Ibanez luis.ibanez@kitware.com
Sat, 01 Mar 2003 01:06:12 -0500


Hi Felix,

Are you using a version of ITK previous to the
separation of the Applications directory ?

Currently ITK doesn't contain any references
to VTK code.

What is your CMake version ?

--

The link error you get may indicate that the
components of VTK were not found correctly
during the CMake configuration.

Or that the compiler used to build VTK was not
the same compiler used to build ITK.

Could you please post your CMakeCache.txt file ?

This file is generated by CMake and put in the
binary directory of your build.


Thanks


Luis


---------------


Felix Schwenk wrote:
> i'm pretty new to itk. i checkt out some resources on how to build itk +
> vtk, 
> but i've got some problem.
> 
> i build vtk with VTK_USE_ANSI_STDLIB = ON and VTK_USE_HYBRID = ON 
> VTK version from cvs 
> configuring itk with CMake without problem.
> using downloadable version of itk
> using VisualStudio 7
> when i build itk i always get the following error in the vtk2itk
> project.
> can anybody help me?
> 
> vtk2itk.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport) public: void __thiscall vtkObject::Print(class
> std::basic_ostream > &)"
> (__imp_?Print@vtkObject@@QAEXAAV?$basic_ostream@DU?$char_traits@D@std@@@
> std@@@Z) referenced in function _main
> D:\uni\diplomarbeit\ITKbin\bin\Debug\vtk2itk.exe : fatal error LNK1120:
> 1 unresolved externals
> 
> best regards,
> Felix Schwenk
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users@public.kitware.com
> http://public.kitware.com/mailman/listinfo/insight-users
>