[Insight-users] Building ITk IO Application
Luis Ibanez
luis.ibanez at kitware.com
Thu Oct 11 16:43:04 EDT 2007
Hi Rashmi,
1) What version of Visual Studio are you using ?
2) Why are you using ITK 1.2 ?
This is a very very very old version.
The current release of ITK is 3.4.
Regards,
Luis
---------------------
rashmi vaidya wrote:
>
> while building helloworld example...
>
> The code give following errors please help....
>
>
>
> Error 1 error C2084: function 'double abs(double)' already has a
> body 7 c:\insighttoolkit-1.2.0\insighttoolkit-1.2.0\code\numerics\vxl\vcl\win32\vcl_cmath.h
> Error 2 error C2084: function 'float abs(float)' already has a
> body 8 c:\insighttoolkit-
> 1.2.0\insighttoolkit-1.2.0\code\numerics\vxl\vcl\win32\vcl_cmath.h
> Warning 3 warning C4346:
> 'itk::AffineTransform<TScalarType,NDimensions>::Pointer' : dependent
> name is not a
> type 357 c:\insighttoolkit-1.2.0\insighttoolkit-1.2.0\code\common\itkAffineTransform.h
>
> Error 4 error C2146: syntax error : missing ';' before identifier
> 'Inverse' 357 c:\insighttoolkit-1.2.0\insighttoolkit-1.2.0\code\common\itkAffineTransform.h
> Error 5 error C2875: using-declaration causes a multiple declaration of
> 'Pointer' 357 c:\insighttoolkit-
> 1.2.0\insighttoolkit-1.2.0\code\common\itkAffineTransform.h
> Error 6 error C4430: missing type specifier - int assumed. Note: C++
> does not support
> default-int 357 c:\insighttoolkit-1.2.0\insighttoolkit-1.2.0\code\common\itkAffineTransform.h
>
> Warning 7 warning C4183: 'Inverse': missing return type; assumed to be a
> member function returning
> 'int' 357 c:\insighttoolkit-1.2.0\insighttoolkit-1.2.0\code\common\itkAffineTransform.h
> Error 8 error C2244:
> 'itk::AffineTransform<TScalarType,NDimensions>::Inverse' : unable to
> match function definition to an existing
> declaration 513 c:\insighttoolkit-
> 1.2.0\insighttoolkit-1.2.0\code\common\itkAffineTransform.txx
>
>
> Thanks,
> Rashmi
>
>
> 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