[Insight-users] param conversion error in wrap_ITKIOBasePython.cpp with WrapITK r527, ITK 3.20, VS 2008 SP1
Gaëtan Lehmann
gaetan.lehmann at jouy.inra.fr
Fri Mar 11 08:46:12 EST 2011
Charl,
Thanks a lot for investigating that issue and providing a workaround.
Regards,
Gaëtan
Le 11 mars 11 à 11:41, Charl Botha a écrit :
> 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 &'
--
Gaëtan Lehmann
Biologie du Développement et de la Reproduction
INRA de Jouy-en-Josas (France)
tel: +33 1 34 65 29 66 fax: 01 34 65 29 09
http://voxel.jouy.inra.fr http://www.itk.org
http://www.mandriva.org http://www.bepo.fr
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 203 bytes
Desc: Ceci est une signature ?lectronique PGP
URL: <http://www.itk.org/pipermail/insight-users/attachments/20110311/b0055a08/attachment.pgp>
More information about the Insight-users
mailing list