[Insight-users] InsightApplications compile problem

Luis Ibanez luis.ibanez at kitware.com
Fri Oct 31 09:01:31 EDT 2008


Hi zlf,

You seem to have a mixture of two versions of VTK
available in your system.

Please check the PATH environment variable to see
what VTK directories are included in there.

You may find that you have two different versions.

Another thing you could try is to explicitly build any
of the other applications (inside InsightApplications)
that require VTK. For example: "SNAP".

Please try to build SNAP and post to the mailing list
any linking errors that you may get.


   Thanks


      Luis


---------------------
zlf wrote:
> hi,
> I build VTK on my own 
> 
> 
> 
> 
> 
> zlf
> fuzengliang435 at gmail.com
> 2008-10-31
> 
> ======= 2008-10-31 10:44 22:44:36 Luis Ibanez 您在来信中写到: Re: 
> InsightApplications compile problem=======
> 
> Hi Orientation f,
> 
> Did you build VTK on your own ?
> 
> or are you using an installed VTK ?
> 
> It may look like your are mixing compilation modes {Release,Debug}
> between your build of InsightApplications and your build of VTK.
> 
> Please let us know,
> 
> 
>     Thanks
> 
> 
>          Luis
> 
> 
> ---------------------------------------------------------------
> On Thu, Oct 30, 2008 at 10:41 PM, orientation f 
> <fuzengliang435 at gmail.com <mailto:fuzengliang435 at gmail.com>> wrote:
> 
>     hi,
>     When I install InsightApplications there are following errors:
>     1) when build InsightApplications.dsw, the error is:
>     Linking...
>     vtk2itk.obj : error LNK2001: unresolved external symbol
>     "__declspec(dllimport) public: void __thiscall
>     vtkObjectBase::Print(class std::basic_ostream<char,struct
>     std::char_traits<char> > &)"
>     (__imp_?Print at vtkObjectBase@@QAEXAAV?$basic_ostream at DU?$cha
>     <mailto:__imp_?Print at vtkObjectBase@@QAEXAAV?$basic_ostream at DU?$cha>
>     r_traits at D@std@@@std@@@Z <mailto:r_traits at D@std@@@std@@@Z>)
>     C:\Program Files\ITK\bin\bin\Debug/vtk2itk.exe : fatal error
>     LNK1120: 1 unresolved externals
>     Error executing link.exe.
>     2) when build INSTALL.dsp, the error is:
>     CMake Error: Error in cmake code at
>     C:/Program
>     Files/ITK/InsightApplication-bin/Auxiliary/vtk/cmake_install.cmake:97:
>     FILE INSTALL cannot find file "C:/Program
>     Files/ITK/bin/bin/Debug/vtk2itk.exe" to install.
>     Current CMake stack: C:/Program
>     Files/ITK/InsightApplication-bin/cmake_install.cmake;C:/Program
>     Files/ITK/InsightApplication-bin/Auxiliary/cmake_install.cmake;C:/Program
>     Files/ITK/InsightApplication-bin/Auxiliary/vtk/cmake_install.cmake
>     Error spawning c:\windows\system32\cmd.exe
>      
>     The version of vtk, itk and cmake are as follow:
>     vtk-5.0.3, InsightApplications-3.2.0 and  cmake-2.4.6-win32-x86.
>      
>      
>     best wishes
> 
> 
> 
> 
> = = = = = = = = = = = = = = = = = = = =


More information about the Insight-users mailing list