[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
Sun Feb 20 07:18:28 EST 2011


Dear all (and once again especially Gaëtan),

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 &'
        with
        [
            _Ty=std::_Vbase,
            _Ax=std::allocator<std::_Vbase>
        ]
        Reason: cannot convert from 'const std::vector<_Ty,_Ax>' to
'const itk::ImageIORegion::SizeType'
        with
        [
            _Ty=std::_Vbase,
            _Ax=std::allocator<std::_Vbase>
        ]
        No user-defined-conversion operator available that can perform
this conversion, or the operator cannot be called
.\wrap_ITKIOBasePython.cpp(13437) : error C2664: 'bool
itk::ImageIORegion::IsInside(const itk::ImageIORegion::IndexType &)
const' : 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
Build log was saved at
"file://c:\build\jwd\build\wrapitk-build\Libraries\IO\IOPython.dir\RelWithDebInfo\BuildLog.htm"
IOPython - 3 error(s), 0 warning(s)


More information about the Insight-users mailing list