[insight-users] first step problem!!!help!

Luis Ibanez luis.ibanez at kitware.com
Wed Mar 22 20:36:30 EST 2006


Hi 方元元

Please post to the list the CMakeLists.txt file that
you are using for configuring your project "myProject".

It seems that you are using an inappropriate CMakeLists.txt
file, since it is not including the paths for the ITK
header files.



Since you are beginning with ITK, I would suggest you to
go step by step until you get familiar with the process.


That means:

  1) Do not go yet into VTK
  2) Forget about InsightApplications

at least until you understand the process of configuring
projects with CMake.


--

Please post to the list the CMakeLists.txt file that
you used for configuring your project "myProject"


 Thanks


    Luis



--------------------------------------------------------
方元元 wrote:
> Hi,
>  I configured and build ITK and VTk as  "Getting Started I", "Getting 
> Started II" told me .The "HelloWorld" project works well.
> Then I tried the "myProject" , there are 11 errors.  The first one is
> "error C2039: 'itkGradientMagnitudeImageFilter' : is not a member of 
> 'itk' " But I found the file 'itkGradientMagnitudeImageFilter.h' in itk 
> I installed.
> The other errors all about 'itkGradientMagnitudeImageFilter'.what 's the 
> problem?
>  
> The examples in the VTK works well.But the project (use vtk)I made 
> before I intall
> the ITK cannot  work. There  are many errors :
> "
> vtkIO.lib(vtkDICOMImageReader.obj) : error LNK2001: unresolved external 
> symbol
> "public: __thiscall DICOMAppHelper::DICOMAppHelper(void)" (??
> 0DICOMAppHelper@@QAE at XZ <mailto:0DICOMAppHelper@@QAE at XZ>)
> vtkIO.lib(vtkDICOMImageReader.obj) : error LNK2001: unresolved external 
> symbol
> "public: __thiscall DICOMParser::DICOMParser(void)" 
> (??0DICOMParser@@QAE at XZ <mailto:??0DICOMParser@@QAE at XZ>)
> vtkIO.lib(vtkDICOMImageReader.obj) : error LNK2001: unresolved external 
> symbol
> "public: static bool __cdecl DICOMParser::IsDICOMFile(class DICOMFile *)" (?
> IsDICOMFile at DICOMParser@@SA_NPAVDICOMFile@@@Z 
> <mailto:IsDICOMFile at DICOMParser@@SA_NPAVDICOMFile@@@Z>)
> vtkIO.lib(vtkDICOMImageReader.obj) : error LNK2001: unresolved external 
> symbol
> "public: bool __thiscall DICOMParser::OpenFile(class 
> std::basic_string<char,struct
> std::char_traits<char>,class std::allocator<char> > const &)" (?
> OpenFile at DICOMParser@@Q <mailto:OpenFile at DICOMParser@@Q>
> AE_NABV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@@Z 
> <mailto:AE_NABV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@@Z>)
> .......
> "
> And the waring :
>  warning LNK4098: defaultlib "MSVCRT" conflicts with use of other libs; use
> /NODEFAULTLIB:library
>  
> I compiled  the  .cxx  examples in VTK, they can work, but also have the 
> waring
> above. How can I solve this problem?
>  
> I use vs6.0 +sp6 .(I found in the pdf, the compiler is vs.net. Is that 
> the failed
> reason?)
> I build Vtk in win32 Release .
>   build ITK in win32 Debug .
> I use windowXP operation system.And better not to change it.
> I feel a little frustrated that I can not pass the first step :( Please 
> help me.
> Thank you very much!
>  
> vivian
>  
> 
> 
> 
> 
> 
> 
> 
> 你 知 道 2006 年 最 火 爆 的 电 子 邮 箱 吗 ?
> 多 达 1.1 亿 中 国 人 选 择 网 易 2000 兆 免 费 邮 箱 , 抢 注 再 得 280 
> 兆 超 大 网 盘 <http://www.126.com/help/126fab.htm>
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users



More information about the Insight-users mailing list