[Insight-users] Error!

Dan Mueller dan.muel at gmail.com
Wed Mar 10 23:53:42 EST 2010


Hi Fariba,

Good to hear your first issue was solved.

Regarding the errors you currently have: it looks like you are missing
the include directories which point to the location of the ITK source
files. Are you using CMake to generate your Visual Studio solution?

You CMakeLists.txt should have something similar to this:
    # Find ITK
    FIND_PACKAGE(ITK REQUIRED)
    INCLUDE(${ITK_USE_FILE})
Then the include directories will be automatically included in the
generated Visual Studio solution file.

Perhaps you could post your CMakeLists.txt to the list?

Hope this helps.

Cheers, Dan

On 10 March 2010 23:40,  <fariba_yoo at yahoo.co.uk> wrote:
> by the way Dan, regarding to my recent mail I use Windows, compiler: Visual
> Studio 8 and ITK version (3.16),
> now I have these errors in registration example:
> Error    4    fatal error C1083: Cannot open include file:
> 'itkAffineTransform.h': No such file or directory
> c:\ITKExamplesSource1\MultiResImageRegistration2.cxx    55
> Error    6    fatal error C1083: Cannot open include file:
> 'itkBoxSpatialObject.h': No such file or directory
> c:\ITKExamplesSource1\ModelToImageRegistration2.cxx    43
> Error    7    fatal error C1083: Cannot open include file:
> 'itkEllipseSpatialObject.h': No such file or directory
> c:\ITKExamplesSource1\ModelToImageRegistration1.cxx    49
> Error    8    fatal error C1083: Cannot open include file: 'itkImage.h': No
> such file or directory
> c:\ITKExamplesSource1\MeanSquaresImageMetric1.cxx    40
> Error    30    fatal error C1083: Cannot open include file: 'itkImage.h': No
> such file or directory
> c:\ITKExamplesSource1\DeformationFieldJacobian.cxx    24
> Error    1    fatal error C1083: Cannot open include file:
> 'itkImageFileReader.h': No such file or directory
> c:\ITKExamplesSource1\ThinPlateSplineWarp.cxx    33
> Error    31    fatal error C1083: Cannot open include file:
> 'itkImageFileReader.h': No such file or directory
> c:\ITKExamplesSource1\DeformationFieldInitialization.cxx    45
> Error    34    fatal error C1083: Cannot open include file:
> 'itkImageFileReader.h': No such file or directory
> c:\ITKExamplesSource1\DeformableRegistration5.cxx    21
> Error    37    fatal error C1083: Cannot open include file:
> 'itkImageFileReader.h': No such file or directory
> c:\ITKExamplesSource1\DeformableRegistration3.cxx    21
> Error    38    fatal error C1083: Cannot open include file:
> 'itkImageFileReader.h': No such file or directory
> c:\ITKExamplesSource1\DeformableRegistration2.cxx    30
> Error    45    fatal error C1083: Cannot open include file:
> 'itkImageFileReader.h': No such file or directory
> c:\ITKExamplesSource1\DeformableRegistration11.cxx    22
> Error    46    fatal error C1083: Cannot open include file:
> 'itkImageFileReader.h': No such file or directory
> c:\ITKExamplesSource1\DeformableRegistration1.cxx    22
> Error    48    fatal error C1083: Cannot open include file:
> 'itkImageFileReader.h': No such file or directory
> c:\ITKExamplesSource1\BSplineWarping2.cxx    33
> Error    49    fatal error C1083: Cannot open include file:
> 'itkImageFileReader.h': No such file or directory
> c:\ITKExamplesSource1\BSplineWarping1.cxx    33
> Error    10    fatal error C1083: Cannot open include file:
> 'itkImageRegistrationMethod.h': No such file or directory
> c:\ITKExamplesSource1\ImageRegistrationHistogramPlotter.cxx    107
> Error    11    fatal error C1083: Cannot open include file:
> 'itkImageRegistrationMethod.h': No such file or directory
> c:\ITKExamplesSource1\ImageRegistration9.cxx    44
> Error    12    fatal error C1083: Cannot open include file:
> 'itkImageRegistrationMethod.h': No such file or directory
> c:\ITKExamplesSource1\ImageRegistration8.cxx    51
> Error    13    fatal error C1083: Cannot open include file:
> 'itkImageRegistrationMethod.h': No such file or directory
> c:\ITKExamplesSource1\ImageRegistration7.cxx    57
> Error    14    fatal error C1083: Cannot open include file:
> 'itkImageRegistrationMethod.h': No such file or directory
> c:\ITKExamplesSource1\ImageRegistration6.cxx    72
> Error    15    fatal error C1083: Cannot open include file:
> 'itkImageRegistrationMethod.h': No such file or directory
> c:\ITKExamplesSource1\ImageRegistration5.cxx    53
> Error    16    fatal error C1083: Cannot open include file:
> 'itkImageRegistrationMethod.h': No such file or directory
> c:\ITKExamplesSource1\ImageRegistration4o.cxx    45
> Error    17    fatal error C1083: Cannot open include file:
> 'itkImageRegistrationMethod.h': No such file or directory
> c:\ITKExamplesSource1\ImageRegistration4.cxx    56
> Error    18    fatal error C1083: Cannot open include file:
> 'itkImageRegistrationMethod.h': No such file or directory
> c:\ITKExamplesSource1\ImageRegistration3.cxx    62
> Error    19    fatal error C1083: Cannot open include file:
> 'itkImageRegistrationMethod.h': No such file or directory
> c:\ITKExamplesSource1\ImageRegistration2.cxx    46
> Error    20    fatal error C1083: Cannot open include file:
> 'itkImageRegistrationMethod.h': No such file or directory
> c:\ITKExamplesSource1\ImageRegistration18.cxx    36
> Error    21    fatal error C1083: Cannot open include file:
> 'itkImageRegistrationMethod.h': No such file or directory
> c:\ITKExamplesSource1\ImageRegistration17.cxx    30
> Error    22    fatal error C1083: Cannot open include file:
> 'itkImageRegistrationMethod.h': No such file or directory
> c:\ITKExamplesSource1\ImageRegistration16.cxx    32
> Error    23    fatal error C1083: Cannot open include file:
> 'itkImageRegistrationMethod.h': No such file or directory
> c:\ITKExamplesSource1\ImageRegistration15.cxx    30
> Error    24    fatal error C1083: Cannot open include file:
> 'itkImageRegistrationMethod.h': No such file or directory
> c:\ITKExamplesSource1\ImageRegistration14.cxx    30
> Error    25    fatal error C1083: Cannot open include file:
> 'itkImageRegistrationMethod.h': No such file or directory
> c:\ITKExamplesSource1\ImageRegistration13.cxx    29
> Error    26    fatal error C1083: Cannot open include file:
> 'itkImageRegistrationMethod.h': No such file or directory
> c:\ITKExamplesSource1\ImageRegistration12.cxx    31
> Error    27    fatal error C1083: Cannot open include file:
> 'itkImageRegistrationMethod.h': No such file or directory
> c:\ITKExamplesSource1\ImageRegistration11.cxx    40
> Error    28    fatal error C1083: Cannot open include file:
> 'itkImageRegistrationMethod.h': No such file or directory
> c:\ITKExamplesSource1\ImageRegistration10.cxx    33
> Error    29    fatal error C1083: Cannot open include file:
> 'itkImageRegistrationMethod.h': No such file or directory
> c:\ITKExamplesSource1\ImageRegistration1.cxx    53
> Error    32    fatal error C1083: Cannot open include file:
> 'itkImageRegistrationMethod.h': No such file or directory
> c:\ITKExamplesSource1\DeformableRegistration8.cxx    35
> Error    33    fatal error C1083: Cannot open include file:
> 'itkImageRegistrationMethod.h': No such file or directory
> c:\ITKExamplesSource1\DeformableRegistration7.cxx    41
> Error    35    fatal error C1083: Cannot open include file:
> 'itkImageRegistrationMethod.h': No such file or directory
> c:\ITKExamplesSource1\DeformableRegistration6.cxx    40
> Error    36    fatal error C1083: Cannot open include file:
> 'itkImageRegistrationMethod.h': No such file or directory
> c:\ITKExamplesSource1\DeformableRegistration4.cxx    40
> Error    41    fatal error C1083: Cannot open include file:
> 'itkImageRegistrationMethod.h': No such file or directory
> c:\ITKExamplesSource1\DeformableRegistration15.cxx    35
> Error    42    fatal error C1083: Cannot open include file:
> 'itkImageRegistrationMethod.h': No such file or directory
> c:\ITKExamplesSource1\DeformableRegistration14.cxx    34
> Error    43    fatal error C1083: Cannot open include file:
> 'itkImageRegistrationMethod.h': No such file or directory
> c:\ITKExamplesSource1\DeformableRegistration13.cxx    35
> Error    44    fatal error C1083: Cannot open include file:
> 'itkImageRegistrationMethod.h': No such file or directory
> c:\ITKExamplesSource1\DeformableRegistration12.cxx    37
> Error    3    fatal error C1083: Cannot open include file:
> 'itkMultiResolutionImageRegistrationMethod.h': No such file or directory
> c:\ITKExamplesSource1\MultiResImageRegistration3.cxx    25
> Error    5    fatal error C1083: Cannot open include file:
> 'itkMultiResolutionImageRegistrationMethod.h': No such file or directory
> c:\ITKExamplesSource1\MultiResImageRegistration1.cxx    46
> Error    39    fatal error C1083: Cannot open include file:
> 'itkOrientedImage.h': No such file or directory
> c:\ITKExamplesSource1\DeformableRegistration17.cxx    94
> Error    40    fatal error C1083: Cannot open include file:
> 'itkOrientedImage.h': No such file or directory
> c:\ITKExamplesSource1\DeformableRegistration16.cxx    92
> Error    47    fatal error C1083: Cannot open include file:
> 'itkOrientedImage.h': No such file or directory
> c:\ITKExamplesSource1\ChangeInformationImageFilter.cxx    43
> Error    9    fatal error C1083: Cannot open include file: 'itkVector.h': No
> such file or directory    c:\ITKExamplesSource1\LandmarkWarping2.cxx    38
> Error    2    fatal error C1083: Cannot open include file:
> 'vnl/vnl_sample.h': No such file or directory
> c:\ITKExamplesSource1\RegistrationExamples7.cxx    26
>
>
> Best,
> Fariba
>
> ________________________________
> From: Dan Mueller <dan.muel at gmail.com>
> To: fariba_yoo at yahoo.co.uk
> Cc: insight-users at itk.org
> Sent: Wed, 10 March, 2010 7:22:30
> Subject: Re: [Insight-users] Error!
>
> Hi Fariba,
>
>     Welcome to ITK!
>
> I would really recommend reading the following references:
>
> Insight Software Guide:
>     http://www.itk.org/ItkSoftwareGuide.pdf
>
> Tutorials:
>     http://www.itk.org/ITK/help/tutorials.html
> especially GettingStarted-I:
>     http://www.itk.org/CourseWare/Training/GettingStarted-I.pdf
>
> Regarding your specific errors:
>> In cmake when I want to configure it says couldn't find Tclsh , missing
>> TCL_TCLSH.
> This warning can be ignored. You only need Tclsh if you plan to
> generate TCL wrappers for ITK.
>
>> ITKcommon.dll not found!
> This sounds like you have not built ITK. Did you build ITK?
>
> The steps should be as follows:
>   1) Configure ITK (click the configure button in CMake)
>   2) Generate ITK (click the generate button in CMake)
>   3) Build ITK (if using Visual Studio on Windows, open ITK.sln and build
> all)
>   4) Configure HelloWorld
>   5) Generate HelloWorld
>   6) Build HelloWorld
>
> These steps are explained in the getting started presentation:
>     http://www.itk.org/CourseWare/Training/GettingStarted-I.pdf
>
> In the future, it is helpful to include the system (Windows, Linux,
> etc), compiler (Visual Studio 8, GCC, etc), and ITK version (3.16,
> CVS, etc) you are using. This helps us understand your issues more
> easily.
>
> Hope this helps.
>
> Cheers, Dan
>
> On 9 March 2010 18:35,  <fariba_yoo at yahoo.co.uk> wrote:
>> Hello dear,
>>
>> In cmake when I want to configure it says couldn't find Tclsh , missing
>> TCL_TCLSH.
>>
>> and then after building Hello world program, in the run part there is an
>> error!! ITKcommon.dll not found!
>> it is my first time that I am using ITK.
>>
>> would you please tell me what is the problem?
>>
>> Best,
>> Fariba


More information about the Insight-users mailing list