[Insight-users] hlep!!1 Installation

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


Hi Zhao,

Both your CMakeLists.txt file and
the HelloWorld.cxx file look good.

Could you please let us know:

1) The precise error messages that
   you got from CMakeSetup

2) What version of CMake you are
   using

3) What version of ITK you are using,

4) When you built the basic ITK libraries
   and tests, did yo got any error messages ?



Thanks


   Luis


-------------------------
zhao yong qiang wrote:
> Hi all,
>    I am a new user of ITK. I step by step excute the example of 
> 'helloworld' in the user's guide. After i write the cmakelist.txt and 
> helloworld.cxx.The following: 
> cmakelist.txt:
>  
> /PROJECT(HelloWorld)/
> // 
> /INCLUDE (${CMAKE_ROOT}/Modules/FindITK.cmake)
> IF (USE_ITK_FILE)
>    INCLUDE(${USE_ITK_FILE})
> ENDIF(USE_ITK_FILE)/
> // 
> /ADD_EXECUTABLE(HelloWorld HelloWorld.cxx )/
> // 
> /TARGET_LINK_LIBRARIES(HelloWorld ITKCommon)
> /
> helloworld.cxx:
>  
> /#include "itkImage.h"
> #include <iostream>/
> // 
> /int main()
> {
>  typedef itk::Image< unsigned short,3 > ImageType;
>  ImageType::Pointer iamge = ImageType::New();
>  std::cont <<"ITK Hello world !"<< std::endl;
>  return 0;
> }
> /
> then I use cmakesetup to build the project for VC++. It shows something 
> wrong.
> can someone tell me what is the wrong??
> Thanks!!!
>  
>  
> Regards,
>                           Zhao Yongqiang
>                           Dept. of Computer Science & Engineering
>                           Shanghai JiaoTong University
>                           Shanghai, China
>                           zhao-yq@cs.sjtu.edu.cn 
> <mailto:zhao-yq@cs.sjtu.edu.cn>