[Insight-users] Problem compiling the example CourseWare...
peppe megali
peppe at mail-arts.sssup.it
Wed, 14 Jan 2004 12:14:03 +0100
Hi Luis,
thanks for your quick reply...
but I haven't solved my problems:
> 1) In order to see the VTK_USE_ANSI_STDLIB option
> in CMake you must enable the "Advanced" mode.
> Rerun CMake over VTK, enable the option and
> then rebuild VTK.
I did it (I enabled the "advanced"), but the option VTK_USE_ANSI_STDLIB
there isn't visualized.
> 2) The itkImageToVTKImageFilter.h file can be
> found in
>
> InsightApplications/Auxiliary/vtk
>
> You must copy this file (along with the .txx)
> into your project
>
> Or
>
> you can add this directory to the list of
> include directories in your CMakeLists.txt
> file. Use the CMake command
>
> INCLUDE_DIRECTORIES( )
I did it (both solutions) and what I obtained is the following errors
(during compilation):
error C2664: 'vtkImageImport::SetSpacingCallback' : cannot convert
parameter 1 from 'itk::VTKImageExportBase::SpacingCallbackType' to
'vtkImageImport::SpacingCallbackType'
error C2664: 'vtkImageImport::SetOriginCallback' : cannot convert
parameter 1 from 'itk::VTKImageExportBase::OriginCallbackType' to
'vtkImageImport::OriginCallbackType'
This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
Maybe these errors are due to the fact that I have not enabled (because
I can't) the VTK_USE_ANSI_STDLIB.
Any other suggestion?
Regards
peppe
>
> peppe megali wrote:
>
>> Dear all,
>>
>> I'm new in ITK. I'm starting with the CourseWare tutorials (..ITK 1.4
>> CVS\InsightDocuments\CourseWare\Training).
>> I downloaded and compiled ITK and VTK (both downloaded in CVS
>> version), following the instruction of the GettingStarted-I and
>> GettingStarted-II ppt presentations.
>> First of all I didn't find the VTK_USE_ANSI_STDLIB option during the
>> configuration of CMake for VTK.
>>
>> I'm trying to reproduce the example of "Getting Started with ITK +
>> VTK", using Visual C++ 7 2003, but when I compile (following just the
>> instruction of GettingStarted-I and GettingStarted-II) I obtain the
>> following error:
>>
>> fatal error C1083: Cannot open include file:
>> 'itkImageToVTKImageFilter.h': No such file or directory
>>
>> can someone help me, please?
>> thanks
>> peppe
>>
>>
>>
>
>
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>