[Insight-users] Building ITk IO Application

Luis Ibanez luis.ibanez at kitware.com
Thu Oct 11 16:41:11 EDT 2007


Hi Rashmi,

If you cannot find "ITKCommon.lib" that means that you have not finished
building ITK yet.

You must first build ITK before attempting to use it in an example.

Please follow the instructions in the Tutorial and don't forget the
step where you go to the "bin" subdirectory and verify that you actually
got the ITK libraries.

Make sure that you are using the same compilation mode {Debug / Release}
for both ITK and your example.


    Regards,


        Luis



---------------------
rashmi vaidya wrote:
> hello Luis,
>  
> While i run hello world example, during build it gives error
> 
> Error 1 fatal error LNK1104: cannot open file 'ITKCommon.lib' HelloWorld 
>  
> so what to do... for run am i use F5 or ctrl + F5
> 
>  
> and for building itk
>  
> i set source path in cmake
> as
> C:\InsightToolkit-1.2.0\InsightToolkit-1.2.0
>  
> and the destination path as
>  
> C:\InsightToolkit-1.2.0\InsightToolkit-1.2.0\Examples\Installation
>  
> is it right?
>  
> Thanks,
>  
> Rashmi
>  
>  
> an
> On 10/8/07, *Luis Ibanez* <luis.ibanez at kitware.com 
> <mailto:luis.ibanez at kitware.com>> wrote:
> 
> 
>     Hi Rashmi,
> 
>     The current examples are configured for being built as part
>     of the ITK source tree, when you turn ON the flag BUILD_EXAMPLES.
> 
>     If you want to build ITK Examples as independent applications
>     you must take them out of the ITK source tree and create
>     appropriate CMakeLists.txt files for them.
> 
>     For instructions on how to write your own CMakeLists.txt files
>     please read the Tutorials:
> 
>       http://www.itk.org/HTML/Tutorials.htm
> 
>     in particular
> 
>     "Getting Started I"
>     http://www.itk.org/CourseWare/Training/GettingStartedI-WebPage/index.htm
> 
>     It describes how you should configure examples that use ITK.
> 
> 
>     You will find similar instructions in the ITK Software guide:
> 
>             http://www.itk.org/ItkSoftwareGuide.pdf
> 
>     in particular in Section 2.2.1 "Hello World" in pdf-page 49.
> 
> 
> 
>         Regards,
> 
> 
>            Luis
> 
> 
>     ---------------------
>     rashmi vaidya wrote:
>      >
>      >
>      > Hello,
>      >
>      > While I m building Itk Example Io Application with Cmake 2.4
>     Patch 7 it
>      > will give foolowing errors while building the application
>      >
>      > Please Help.....
>      >
>      >
>      > Error 1 fatal error C1083: Cannot open include file: 'itkImage.h': No
>      > such file or directory c:\Documents and Settings\User\Desktop\ITK
>      > COnfig\InsightToolkit-
>     3.4.0\InsightToolkit-3.4.0\Examples\IO\VectorImageReadWrite.cxx
>      >  47
>      > Error 2 fatal error C1083: Cannot open include file:
>      > 'itkTransformFileReader.h': No such file or directory
>     c:\Documents and
>      > Settings\User\Desktop\ITK
>      >
>     COnfig\InsightToolkit-3.4.0\InsightToolkit-3.4.0\Examples\IO\TransformReadWrite.cxx
>      >  37
>      > Error 3 fatal error C1083: Cannot open include file:
>     'itkRGBPixel.h': No
>      > such file or directory c:\Documents and Settings\User\Desktop\ITK
>      >
>     COnfig\InsightToolkit-3.4.0\InsightToolkit-3.4.0\Examples\IO\RGBImageSeriesReadWrite.cxx
>      >  42
>      > Error 4 fatal error C1083: Cannot open include file: '
>     itkRGBPixel.h': No
>      > such file or directory c:\Documents and Settings\User\Desktop\ITK
>      >
>     COnfig\InsightToolkit-3.4.0\InsightToolkit-3.4.0\Examples\IO\RGBImageReadWrite.cxx
>      >  39
>      > Error 5 fatal error C1083: Cannot open include file: '
>     itkImage.h': No
>      > such file or directory c:\Documents and Settings\User\Desktop\ITK
>      >
>     COnfig\InsightToolkit-3.4.0\InsightToolkit-3.4.0\Examples\IO\ImageSeriesReadWrite2.cxx
>      >  77
>      > Error 6 fatal error C1083: Cannot open include file: '
>     itkImage.h': No
>      > such file or directory c:\Documents and Settings\User\Desktop\ITK
>      >
>     COnfig\InsightToolkit-3.4.0\InsightToolkit-3.4.0\Examples\IO\ImageSeriesReadWrite.cxx
>      >  45
>      > Error 7 fatal error C1083: Cannot open include file:
>      > 'itkImageFileReader.h': No such file or directory c:\Documents and
>      > Settings\User\Desktop\ITK
>      >
>     COnfig\InsightToolkit-3.4.0\InsightToolkit-3.4.0\Examples\IO\ImageReadWrite.cxx
>      >  51
>      > Error 8 fatal error C1083: Cannot open include file:
>      > 'itkImageFileReader.h': No such file or directory c:\Documents and
>      > Settings\User\Desktop\ITK
>      >
>     COnfig\InsightToolkit-3.4.0\InsightToolkit-3.4.0\Examples\IO\ImageReadRegionOfInterestWrite.cxx
> 
>      >  39
>      > Error 9 fatal error C1083: Cannot open include file: 'itkImage.h': No
>      > such file or directory c:\Documents and Settings\User\Desktop\ITK
>      >
>     COnfig\InsightToolkit-3.4.0\InsightToolkit-3.4.0\Examples\IO\ImageReadImageSeriesWrite.cxx
> 
>      >  37
>      > Error 10 fatal error C1083: Cannot open include file:
>      > 'itkImageFileReader.h': No such file or directory c:\Documents and
>      > Settings\User\Desktop\ITK
>      > COnfig\InsightToolkit-
>     3.4.0\InsightToolkit-3.4.0\Examples\IO\ImageReadExtractWrite.cxx
>      >  41
>      > Error 11 fatal error C1083: Cannot open include file:
>      > 'itkImageFileReader.h': No such file or directory c:\Documents and
>      > Settings\User\Desktop\ITK
>      >
>     COnfig\InsightToolkit-3.4.0\InsightToolkit-3.4.0\Examples\IO\ImageReadExtractFilterInsertWrite.cxx
>      >  36
>      > Error 12 fatal error C1083: Cannot open include file:
>      > ' itkImageFileReader.h': No such file or directory c:\Documents and
>      > Settings\User\Desktop\ITK
>      >
>     COnfig\InsightToolkit-3.4.0\InsightToolkit-3.4.0\Examples\IO\ImageReadExportVTK.cxx
>      >  49
>      > Error 13 fatal error C1083: Cannot open include file:
>      > 'itkGDCMImageIO.h': No such file or directory c:\Documents and
>      > Settings\User\Desktop\ITK
>      >
>     COnfig\InsightToolkit-3.4.0\InsightToolkit-3.4.0\Examples\IO\ImageReadDicomSeriesWrite.cxx
>      >  25
>      > Error 14 fatal error C1083: Cannot open include file:
>      > 'itkImageFileReader.h': No such file or directory c:\Documents and
>      > Settings\User\Desktop\ITK
>      >
>     COnfig\InsightToolkit-3.4.0\InsightToolkit-3.4.0\Examples\IO\ImageReadCastWrite.cxx
> 
>      >  46
>      > Error 15 fatal error C1083: Cannot open include file:
>      > 'itkGDCMImageIO.h': No such file or directory c:\Documents and
>      > Settings\User\Desktop\ITK
>      >
>     COnfig\InsightToolkit-3.4.0\InsightToolkit-3.4.0\Examples\IO\DicomSeriesReadSeriesWrite.cxx
> 
>      >  83
>      > Error 16 fatal error C1083: Cannot open include file:
>      > 'itkImageSeriesReader.h': No such file or directory c:\Documents and
>      > Settings\User\Desktop\ITK
>      > COnfig\InsightToolkit-
>     3.4.0\InsightToolkit-3.4.0\Examples\IO\DicomSeriesReadPrintTags.cxx
>      >  46
>      > Error 17 fatal error C1083: Cannot open include file:
>      > 'itkOrientedImage.h': No such file or directory c:\Documents and
>      > Settings\User\Desktop\ITK
>      >
>     COnfig\InsightToolkit-3.4.0\InsightToolkit-3.4.0\Examples\IO\DicomSeriesReadImageWrite2.cxx
>      >  52
>      > Error 18 fatal error C1083: Cannot open include file:
>      > ' itkImageSeriesReader.h': No such file or directory c:\Documents and
>      > Settings\User\Desktop\ITK
>      >
>     COnfig\InsightToolkit-3.4.0\InsightToolkit-3.4.0\Examples\IO\DicomSeriesReadImageWrite.cxx
>      >  70
>      > Error 19 fatal error C1083: Cannot open include file:
>      > 'itkDICOMImageIO2.h': No such file or directory c:\Documents and
>      > Settings\User\Desktop\ITK
>      >
>     COnfig\InsightToolkit-3.4.0\InsightToolkit-3.4.0\Examples\IO\DicomPrintPatientInformation.cxx
>      >  33
>      > Error 20 fatal error C1083: Cannot open include file:
>      > 'itkImageFileReader.h': No such file or directory c:\Documents and
>      > Settings\User\Desktop\ITK
>      >
>     COnfig\InsightToolkit-3.4.0\InsightToolkit-3.4.0\Examples\IO\DicomImageReadWrite.cxx
> 
>      >  42
>      > Error 21 fatal error C1083: Cannot open include file:
>      > 'itkImageFileReader.h': No such file or directory c:\Documents and
>      > Settings\User\Desktop\ITK
>      > COnfig\InsightToolkit-
>     3.4.0\InsightToolkit-3.4.0\Examples\IO\DicomImageReadPrintTags.cxx
>      >  60
>      > Error 22 fatal error C1083: Cannot open include file:
>      > 'itkImageFileReader.h': No such file or directory c:\Documents and
>      > Settings\User\Desktop\ITK
>      >
>     COnfig\InsightToolkit-3.4.0\InsightToolkit-3.4.0\Examples\IO\DicomImageReadChangeHeaderWrite.cxx
>      >  59
>      > Error 23 fatal error C1083: Cannot open include file:
>      > ' itkImageFileReader.h': No such file or directory c:\Documents and
>      > Settings\User\Desktop\ITK
>      >
>     COnfig\InsightToolkit-3.4.0\InsightToolkit-3.4.0\Examples\IO\CovariantVectorImageWrite.cxx
>      >  48
>      > Error 24 fatal error C1083: Cannot open include file:
>      > 'itkImageFileReader.h': No such file or directory c:\Documents and
>      > Settings\User\Desktop\ITK
>      >
>     COnfig\InsightToolkit-3.4.0\InsightToolkit-3.4.0\Examples\IO\CovariantVectorImageRead.cxx
>      >  50
>      > Error 25 fatal error C1083: Cannot open include file:
>      > 'itkImageFileReader.h': No such file or directory c:\Documents and
>      > Settings\User\Desktop\ITK
>      >
>     COnfig\InsightToolkit-3.4.0\InsightToolkit-3.4.0\Examples\IO\CovariantVectorImageExtractComponent.cxx
> 
>      >  44
>      > Error 26 fatal error C1083: Cannot open include file:
>     'itkImage.h': No
>      > such file or directory c:\Documents and Settings\User\Desktop\ITK
>      >
>     COnfig\InsightToolkit-3.4.0\InsightToolkit-3.4.0\Examples\IO\ComplexImageReadWrite.cxx
> 
>      >  49
>      >
>      >
>      > Thanks
>      >
>      > Rashmi
>      >
>      >
>      >
>      >
>     ------------------------------------------------------------------------
>      >
>      > _______________________________________________
>      > Insight-users mailing list
>      > Insight-users at itk.org <mailto:Insight-users at itk.org>
>      > http://www.itk.org/mailman/listinfo/insight-users
>     <http://www.itk.org/mailman/listinfo/insight-users>
> 
> 


More information about the Insight-users mailing list