[Insight-developers] [Farsight-developers] Problem building ITK

Karthik Krishnan karthik.krishnan at kitware.com
Tue Aug 31 07:25:18 EDT 2010


BradK can provide insight. I don't believe gcc-xml supports tr1 templates.

Since you have more than one compiler installed on your machine, you could
use one of the older compiler versions, certainly <= VS8 and even older
versions of VS9 should work fine -or- use WrapITK.

--
karthik

On Tue, Aug 31, 2010 at 2:38 AM, Vadakkan, Tegy John <vadakkan at bcm.edu>wrote:

>  Hi,
>
> I get the following errors when building ITK:
>
>
>
> 6>------ Build started: Project: _BasePython, Configuration: Release Win32
> ------
> 6>Generating wrap_itkVersor.xml
> 6>Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.30729.01 for
> 80x86
> 6>Copyright (C) Microsoft Corporation.  All rights reserved.
> 6>usage: cl [ option... ] filename... [ /link linkoption... ]
> 6>Warning:
> 6>Compiler "cl" specified, but more than one of MSVC 6, 7, 7.1, 8, and 9
> are installed.
> 6>Please specify "msvc6", "msvc7", "msvc71", "msvc8", "msvc8ex", or "msvc9"
> for the GCCXML_COMPILER setting.
> 6>Using MSVC 9 because it was used to build GCC-XML.
> 5>itkImageIOBase.cxx
> 5>itkIPLFileNameList.cxx
> 6>In file included from C:/Program Files/Microsoft Visual Studio
> 9.0/VC/include/xfwrap1:222,
> 6>                 from C:/Program Files/Microsoft Visual Studio
> 9.0/VC/include/xfwrap:20,
> 6>                 from C:/Program Files/Microsoft Visual Studio
> 9.0/VC/include/xrefwrap:44,
> 6>                 from C:/Program Files/Microsoft Visual Studio
> 9.0/VC/include/functional:874,
> 6>                 from C:/Program Files/Microsoft Visual Studio
> 9.0/VC/include/xtree:6,
> 6>                 from C:/Program Files/Microsoft Visual Studio
> 9.0/VC/include/map:6,
> 6>                 from
> C:/src/Insight/Code/Common/itkMetaDataDictionary.h:22,
> 6>                 from C:/src/Insight/Code/Common/itkObject.h:25,
> 6>                 from C:/src/Insight/Code/Common/itkCommand.h:20,
> 6>                 from
> C:/bin/InsightWithPython/Wrapping/WrapITK/Modules/Base/wrap_itkVersor.cxx:1:
> 6>C:/Program Files/Microsoft Visual Studio 9.0/VC/include/xxresult:102:
> error: redefinition of 'struct std::tr1::_Result_of1<_Rx (_Arg0::*)(),
> _Farg0&>'
> 6>C:/Program Files/Microsoft Visual Studio 9.0/VC/include/xxresult:94:
> error: previous definition of 'struct std::tr1::_Result_of1<_Rx
> (_Arg0::*)(), _Farg0&>'
> 6>C:/Program Files/Microsoft Visual Studio 9.0/VC/include/xxresult:111:
> error: redefinition of 'struct std::tr1::_Result_of1<_Rx (_Arg0::*)(),
> _Farg0&>'
> 6>C:/Program Files/Microsoft Visual Studio 9.0/VC/include/xxresult:94:
> error: previous definition of 'struct std::tr1::_Result_of1<_Rx
> (_Arg0::*)(), _Farg0&>'
> 6>C:/Program Files/Microsoft Visual Studio 9.0/VC/include/xxresult:121:
> error: redefinition of 'struct std::tr1::_Result_of1<_Rx (_Arg0::*)(),
> _Farg0&>'
> 6>C:/Program Files/Microsoft Visual Studio 9.0/VC/include/xxresult:94:
> error: previous definition of 'struct std::tr1::_Result_of1<_Rx
> (_Arg0::*)(), _Farg0&>'
> 6>C:/Program Files/Microsoft Visual Studio 9.0/VC/include/xxresult:154:
> error: redefinition of 'struct std::tr1::_Result_of1<_Rx (_Arg0::*)()const,
> _Farg0&>'
> 6>C:/Program Files/Microsoft Visual Studio 9.0/VC/include/xxresult:146:
> error: previous definition of 'struct std::tr1::_Result_of1<_Rx
> (_Arg0::*)()const, _Farg0&>'
> 6>C:/Program Files/Microsoft Visual Studio 9.0/VC/include/xxresult:163:
> error: redefinition of 'struct std::tr1::_Result_of1<_Rx (_Arg0::*)()const,
> _Farg0&>'
> 6>C:/Program Files/Microsoft Visual Studio 9.0/VC/include/xxresult:146:
> error: previous definition of 'struct std::tr1::_Result_of1<_Rx
> (_Arg0::*)()const, _Farg0&>'
> 6>C:/Program Files/Microsoft Visual Studio 9.0/VC/include/xxresult:173:
> error: redefinition of 'struct std::tr1::_Result_of1<_Rx (_Arg0::*)()const,
> _Farg0&>'
> 6>C:/Program Files/Microsoft Visual Studio 9.0/VC/include/xxresult:146:
> error: previous definition of 'struct std::tr1::_Result_of1<_Rx
> (_Arg0::*)()const, _Farg0&>'
> 6>C:/Program Files/Microsoft Visual Studio 9.0/VC/include/xxresult:206:
> error: redefinition of 'struct std::tr1::_Result_of1<_Rx
> (_Arg0::*)()volatile, _Farg0&>'
> 6>C:/Program Files/Microsoft Visual Studio 9.0/VC/include/xxresult:198:
> error: previous definition of 'struct std::tr1::_Result_of1<_Rx
> (_Arg0::*)()volatile, _Farg0&>'
> 6>C:/Program Files/Microsoft Visual Studio 9.0/VC/include/xxresult:215:
> error: redefinition of 'struct std::tr1::_Result_of1<_Rx
> (_Arg0::*)()volatile, _Farg0&>'
> 6>C:/Program Files/Microsoft Visual Studio 9.0/VC/include/xxresult:198:
> error: previous definition of 'struct std::tr1::_Result_of1<_Rx
> (_Arg0::*)()volatile, _Farg0&>'
> 6>C:/Program Files/Microsoft Visual Studio 9.0/VC/include/xxresult:225:
> error: redefinition of 'struct std::tr1::_Result_of1<_Rx
> (_Arg0::*)()volatile, _Farg0&>'
> 6>C:/Program Files/Microsoft Visual Studio 9.0/VC/include/xxresult:198:
> error: previous definition of 'struct std::tr1::_Result_of1<_Rx
> (_Arg0::*)()volatile, _Farg0&>'
> 6>C:/Program Files/Microsoft Visual Studio 9.0/VC/include/xxresult:258:
> error: redefinition of 'struct std::tr1::_Result_of1<_Rx (_Arg0::*)()const
> volatile, _Farg0&>'
> 6>C:/Program Files/Microsoft Visual Studio 9.0/VC/include/xxresult:250:
> error: previous definition of 'struct std::tr1::_Result_of1<_Rx
> (_Arg0::*)()const volatile, _Farg0&>'
> 6>C:/Program Files/Microsoft Visual Studio 9.0/VC/include/xxresult:267:
> error: redefinition of 'struct std::tr1::_Result_of1<_Rx (_Arg0::*)()const
> volatile, _Farg0&>'
> 6>C:/Program Files/Microsoft Visual Studio 9.0/VC/include/xxresult:250:
> error: previous definition of 'struct std::tr1::_Result_of1<_Rx
> (_Arg0::*)()const volatile, _Farg0&>'
> 6>C:/Program Files/Microsoft Visual Studio 9.0/VC/include/xxresult:277:
> error: redefinition of 'struct std::tr1::_Result_of1<_Rx (_Arg0::*)()const
> volatile, _Farg0&>'
> 6>C:/Program Files/Microsoft Visual Studio 9.0/VC/include/xxresult:250:
> error: previous definition of 'struct std::tr1::_Result_of1<_Rx
> (_Arg0::*)()const volatile, _Farg0&>'
> 6>C:/Program Files/Microsoft Visual Studio 9.0/VC/include/xxresult:310:
> error: redefinition of 'struct std::tr1::_Result_of1<_Rx (_Arg0::* const)(),
> _Farg0&>'
> 6>C:/Program Files/Microsoft Visual Studio 9.0/VC/include/xxresult:302:
> error: previous definition of 'struct std::tr1::_Result_of1<_Rx (_Arg0::*
> const)(), _Farg0&>'
> 6>C:/Program Files/Microsoft Visual Studio 9.0/VC/include/xxresult:319:
> error: redefinition of 'struct std::tr1::_Result_of1<_Rx (_Arg0::* const)(),
> _Farg0&>'
> 6>C:/Program Files/Microsoft Visual Studio 9.0/VC/include/xxresult:302:
> error: previous definition of 'struct std::tr1::_Result_of1<_Rx (_Arg0::*
> const)(), _Farg0&>'
> 6>C:/Program Files/Microsoft Visual Studio 9.0/VC/include/xxresult:329:
> error: redefinition of 'struct std::tr1::_Result_of1<_Rx (_Arg0::* const)(),
> _Farg0&>'
> 6>C:/Program Files/Microsoft Visual Studio 9.0/VC/include/xxresult:302:
> error: previous definition of 'struct std::tr1::_Result_of1<_Rx (_Arg0::*
> const)(), _Farg0&>'
> 6>C:/Program Files/Microsoft Visual Studio 9.0/VC/include/xxresult:362:
> error: redefinition of 'struct std::tr1::_Result_of1<_Rx (_Arg0::*
> const)()const, _Farg0&>'
> 6>C:/Program Files/Microsoft Visual Studio 9.0/VC/include/xxresult:354:
> error: previous definition of 'struct std::tr1::_Result_of1<_Rx (_Arg0::*
> const)()const, _Farg0&>'
> 6>C:/Program Files/Microsoft Visual Studio 9.0/VC/include/xxresult:371:
> error: redefinition of 'struct std::tr1::_Result_of1<_Rx (_Arg0::*
> const)()const, _Farg0&>'
> 6>C:/Program Files/Microsoft Visual Studio 9.0/VC/include/xxresult:354:
> error: previous definition of 'struct std::tr1::_Result_of1<_Rx (_Arg0::*
> const)()const, _Farg0&>'
> 6>C:/Program Files/Microsoft Visual Studio 9.0/VC/include/xxresult:381:
> error: redefinition of 'struct std::tr1::_Result_of1<_Rx (_Arg0::*
> const)()const, _Farg0&>'
> 6>C:/Program Files/Microsoft Visual Studio 9.0/VC/include/xxresult:354:
> error: previous definition of 'struct std::tr1::_Result_of1<_Rx (_Arg0::*
> const)()const, _Farg0&>'
> 6>C:/Program Files/Microsoft Visual Studio 9.0/VC/include/xxresult:414:
> error: redefinition of 'struct std::tr1::_Result_of1<_Rx (_Arg0::*
> const)()volatile, _Farg0&>'
> 6>C:/Program Files/Microsoft Visual Studio 9.0/VC/include/xxresult:406:
> error: previous definition of 'struct std::tr1::_Result_of1<_Rx (_Arg0::*
> const)()volatile, _Farg0&>'
> 6>C:/Program Files/Microsoft Visual Studio 9.0/VC/include/xxresult:423:
> error: redefinition of 'struct std::tr1::_Result_of1<_Rx (_Arg0::*
> const)()volatile, _Farg0&>'
> 6>C:/Program Files/Microsoft Visual Studio 9.0/VC/include/xxresult:406:
> error: previous definition of 'struct std::tr1::_Result_of1<_Rx (_Arg0::*
> const)()volatile, _Farg0&>'
> 6>C:/Program Files/Microsoft Visual Studio 9.0/VC/include/xxresult:433:
> error: redefinition of 'struct std::tr1::_Result_of1<_Rx (_Arg0::*
> const)()volatile, _Farg0&>'
> 6>C:/Program Files/Microsoft Visual Studio 9.0/VC/include/xxresult:406:
> error: previous definition of 'struct std::tr1::_Result_of1<_Rx (_Arg0::*
> const)()volatile, _Farg0&>'
> 6>C:/Program Files/Microsoft Visual Studio 9.0/VC/include/xxresult:466:
> error: redefinition of 'struct std::tr1::_Result_of1<_Rx (_Arg0::*
> const)()const volatile, _Farg0&>'
> 6>C:/Program Files/Microsoft Visual Studio 9.0/VC/include/xxresult:458:
> error: previous definition of 'struct std::tr1::_Result_of1<_Rx (_Arg0::*
> const)()const volatile, _Farg0&>'
> 6>C:/Program Files/Microsoft Visual Studio 9.0/VC/include/xxresult:475:
> error: redefinition of 'struct std::tr1::_Result_of1<_Rx (_Arg0::*
> const)()const volatile, _Farg0&>'
> 6>C:/Program Files/Microsoft Visual Studio 9.0/VC/include/xxresult:458:
> error: previous definition of 'struct std::tr1::_Result_of1<_Rx (_Arg0::*
> const)()const volatile, _Farg0&>'
> 6>C:/Program Files/Microsoft Visual Studio 9.0/VC/include/xxresult:485:
> error: redefinition of 'struct std::tr1::_Result_of1<_Rx (_Arg0::*
> const)()const volatile, _Farg0&>'
> 6>C:/Program Files/Microsoft Visual Studio 9.0/VC/include/xxresult:458:
> error: previous definition of 'struct std::tr1::_Result_of1<_Rx (_Arg0::*
> const)()const volatile, _Farg0&>'
>
> Any help on fixing the errors would be very much appreciated.
>
> Tegy.
>
>
> _______________________________________________
> Farsight-developers mailing list
> Farsight-developers at lists.kitware.com
> http://www.kitware.com/cgi-bin/mailman/listinfo/farsight-developers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20100831/04065751/attachment.htm>


More information about the Insight-developers mailing list