[Insight-users] param conversion error in wrap_ITKIOBasePython.cpp with WrapITK r527, ITK 3.20, VS 2008 SP1

Charl Botha c.p.botha at tudelft.nl
Fri Mar 11 05:41:46 EST 2011


Dear all,

I finally managed to get this to build by explicitly re-typedeffing
the offending typedefs. :) This is required if you want to build ITK
3.20 with WrapITK on Win64 with Visual Studio 2008 SP1. I've uploaded
my patch to the DeVIDE repo (now I'll be able to release soon!):

http://code.google.com/p/devide/source/browse/trunk/johannes/patches/itk320-win64swig-workaround.diff

Thanks,
Charl

On Sun, Feb 20, 2011 at 13:18, Charl Botha <c.p.botha at tudelft.nl> wrote:
> I think I'm almost there building ITK 3.20 with WrapITK maint branch
> r527 on Win64 with VS 2008 SP1. The build completes with all but one
> project successful: IOPython.
>
> Do the three error messages below look in any way familiar? I'd
> greatly appreciate any tips!
>
> Other relevant versions:
> * swig 2.0.1 (1.3.39 gives the same error)
> * CableSwig ITK-3-20
> * cmake 2.8.4
>
> Just in case, here are two possibly relevant files:
> * wrap_ITKIOBasePython.cpp:
> http://dl.dropbox.com/u/207154/itk320_wrapitk/wrap_ITKIOBasePython.cpp
> * wrapitk CMakeCache.txt:
> http://dl.dropbox.com/u/207154/itk320_wrapitk/CMakeCache.txt
>
> The error messages:
>
> Compiling...
> wrap_ITKIOBasePython.cpp
> .\wrap_ITKIOBasePython.cpp(12948) : error C2664: 'void
> itk::ImageIORegion::SetIndex(const itk::ImageIORegion::IndexType &)' :
> cannot convert parameter 1 from 'const std::vector<_Ty>' to 'const
> itk::ImageIORegion::IndexType &'
>        with
>        [
>            _Ty=int
>        ]
>        Reason: cannot convert from 'const std::vector<_Ty>' to 'const
> itk::ImageIORegion::IndexType'
>        with
>        [
>            _Ty=int
>        ]
>        No user-defined-conversion operator available that can perform
> this conversion, or the operator cannot be called
> .\wrap_ITKIOBasePython.cpp(13020) : error C2664: 'void
> itk::ImageIORegion::SetSize(const itk::ImageIORegion::SizeType &)' :
> cannot convert parameter 1 from 'const std::vector<_Ty,_Ax>' to 'const
> itk::ImageIORegion::SizeType &'


More information about the Insight-users mailing list