[Insight-users] Installation Problem
Erik Anderson
eranders at cs.utah.edu
Mon Jun 12 17:02:07 EDT 2006
Hi all,
For the past several days, I have been trying to get ITK installed
and usable with the Python Wrapping. So far, I've gotten CSwig to build
properly, and most of my other problems solved; however, I'm at a
complete loss for how to fix my most recent build problem. Below is a
description of the error:
I am using MS Visual Studio 8 with CMake 2.4 - patch 2
The project failing to build is: _ITKIOPython - RelWithDebInfo
The CMake options are as follows:
BUILD_SHARED_LIBS = ON
ITK_CSWIG_PYTHON = ON
ITK_USE_PYTHON_NUMARRAY = ON
All other variables are default values
The errors are as follows:
17>------ Build started: Project: _ITKIOPython, Configuration:
RelWithDebInfo Win32 ------
17>wrap_itkImageSeriesWriter.xml from
17>C:/env/itk/bin/Vc8/Include/xutility: In instantiation of
`std::_Checked_iterator_base_helper2<long int*, true>':
17>C:/env/itk/bin/Vc8/Include/xutility:934: instantiated from
`std::_Checked_iterator_base_helper<long int*>'
17>C:/env/itk/bin/Vc8/Include/xutility:2989: instantiated from `_OutIt
stdext::unchecked_copy(_InIt, _InIt, _OutIt) [with _InIt = long int*,
_OutIt = long int*]'
17>C:/env/itk/bin/Vc8/Include/vector:563: instantiated from
`std::vector<_Ty, _Ax>& std::vector<_Ty, _Ax>::operator=(const
std::vector<_Ty, _Ax>&) [with _Ty = long int, _Ax = std::allocator<long
int>]'
17>C:/env/Insight/Code/IO/itkImageIORegion.h:120: instantiated from here
17>C:/env/itk/bin/Vc8/Include/xutility:910: error: `long int*' is not a
class,
17> struct, or union type
17>C:/env/itk/bin/Vc8/Include/xutility: In instantiation of
`std::_Checked_iterator_base_helper<long int*>':
17>C:/env/itk/bin/Vc8/Include/xutility:2989: instantiated from `_OutIt
stdext::unchecked_copy(_InIt, _InIt, _OutIt) [with _InIt = long int*,
_OutIt = long int*]'
17>C:/env/itk/bin/Vc8/Include/vector:563: instantiated from
`std::vector<_Ty, _Ax>& std::vector<_Ty, _Ax>::operator=(const
std::vector<_Ty, _Ax>&) [with _Ty = long int, _Ax = std::allocator<long
int>]'
17>C:/env/Insight/Code/IO/itkImageIORegion.h:120: instantiated from here
17>C:/env/itk/bin/Vc8/Include/xutility:934: error: no type named `
17> _Checked_iterator_base_type' in `class
17> std::_Checked_iterator_base_helper2<long int*, true>'
17>C:/env/itk/bin/Vc8/Include/xutility: In instantiation of
`std::_Checked_iterator_base_helper<long int*>':
17>C:/env/itk/bin/Vc8/Include/xutility:2989: instantiated from `_OutIt
stdext::unchecked_copy(_InIt, _InIt, _OutIt) [with _InIt = long int*,
_OutIt = long int*]'
17>C:/env/itk/bin/Vc8/Include/vector:563: instantiated from
`std::vector<_Ty, _Ax>& std::vector<_Ty, _Ax>::operator=(const
std::vector<_Ty, _Ax>&) [with _Ty = long int, _Ax = std::allocator<long
int>]'
17>C:/env/Insight/Code/IO/itkImageIORegion.h:120: instantiated from here
17>C:/env/itk/bin/Vc8/Include/xutility:936: error: no type named `
17> _Checked_iterator_base_type' in `class
17> std::_Checked_iterator_base_helper2<long int*, true>'
17>C:/env/itk/bin/Vc8/Include/xutility: In instantiation of
`std::_Checked_iterator_base_helper<long int*>':
17>C:/env/itk/bin/Vc8/Include/xutility:2989: instantiated from `_OutIt
stdext::unchecked_copy(_InIt, _InIt, _OutIt) [with _InIt = long int*,
_OutIt = long int*]'
17>C:/env/itk/bin/Vc8/Include/vector:563: instantiated from
`std::vector<_Ty, _Ax>& std::vector<_Ty, _Ax>::operator=(const
std::vector<_Ty, _Ax>&) [with _Ty = long int, _Ax = std::allocator<long
int>]'
17>C:/env/Insight/Code/IO/itkImageIORegion.h:120: instantiated from here
17>C:/env/itk/bin/Vc8/Include/xutility:937: error: no type named `
17> _Checked_iterator_base_type' in `class
17> std::_Checked_iterator_base_helper2<long int*, true>'
17>C:/env/itk/bin/Vc8/Include/xutility: In function `_OutIt
17> stdext::unchecked_copy(_InIt, _InIt, _OutIt) [with _InIt = long
int*, _OutIt
17> = long int*]':
17>C:/env/itk/bin/Vc8/Include/vector:563: instantiated from
`std::vector<_Ty, _Ax>& std::vector<_Ty, _Ax>::operator=(const
std::vector<_Ty, _Ax>&) [with _Ty = long int, _Ax = std::allocator<long
int>]'
17>C:/env/Insight/Code/IO/itkImageIORegion.h:120: instantiated from here
17>C:/env/itk/bin/Vc8/Include/xutility:2989: error: no matching function
for call
17> to `_Checked_base(long int*&)'
17>C:/env/itk/bin/Vc8/Include/xutility:2989: error: no matching function
for call
17> to `_Checked_base(long int*&)'
17>C:/Program Files/Microsoft Visual Studio 8/VC/include/memory: In
function `
17> _FwdIt stdext::unchecked_uninitialized_copy(_InIt, _InIt, _FwdIt,
_Alloc&)
17> [with _InIt = long int*, _FwdIt = long int*, _Alloc =
std::allocator<long
17> int>]':
17>C:/env/itk/bin/Vc8/Include/vector:1104: instantiated from `typename
std::_Vector_val<_Ty, _Ax>::_Alty::pointer std::vector<_Ty,
_Ax>::_Ucopy(_Iter, _Iter, typename std::_Vector_val<_Ty,
_Ax>::_Alty::pointer) [with _Iter = long int*, _Ty = long int, _Ax =
std::allocator<long int>]'
17>C:/env/itk/bin/Vc8/Include/vector:571: instantiated from
`std::vector<_Ty, _Ax>& std::vector<_Ty, _Ax>::operator=(const
std::vector<_Ty, _Ax>&) [with _Ty = long int, _Ax = std::allocator<long
int>]'
17>C:/env/Insight/Code/IO/itkImageIORegion.h:120: instantiated from here
17>C:/Program Files/Microsoft Visual Studio 8/VC/include/memory:673:
error: no
17> matching function for call to `_Checked_base(long int*&)'
17>C:/Program Files/Microsoft Visual Studio 8/VC/include/memory:673:
error: no
17> matching function for call to `_Checked_base(long int*&)'
17>C:/env/itk/bin/Vc8/Include/xutility: At global scope:
17>C:/env/itk/bin/Vc8/Include/xutility: In instantiation of
`std::_Checked_iterator_category_helper<double*, true>':
17>C:/env/itk/bin/Vc8/Include/xutility:887: instantiated from
`std::_Checked_iterator_category<double*>'
17>C:/env/itk/bin/Vc8/Include/xutility:1039: instantiated from
`std::_Ptr_cat_helper<std::_Vector_const_iterator<double,
std::allocator<double> >, double*>'
17>C:/Program Files/Microsoft Visual Studio 8/VC/include/memory:673:
instantiated from `_FwdIt stdext::unchecked_uninitialized_copy(_InIt,
_InIt, _FwdIt, _Alloc&) [with _InIt =
std::_Vector_const_iterator<double, std::allocator<double> >, _FwdIt =
double*, _Alloc = std::allocator<double>]'
17>C:/env/itk/bin/Vc8/Include/vector:1104: instantiated from `typename
std::_Vector_val<_Ty, _Ax>::_Alty::pointer std::vector<_Ty,
_Ax>::_Ucopy(_Iter, _Iter, typename std::_Vector_val<_Ty,
_Ax>::_Alty::pointer) [with _Iter = std::_Vector_const_iterator<double,
std::allocator<double> >, _Ty = double, _Ax = std::allocator<double>]'
17>C:/env/itk/bin/Vc8/Include/vector:490: instantiated from
`std::vector<_Ty, _Ax>::vector(const std::vector<_Ty, _Ax>&) [with _Ty =
double, _Ax = std::allocator<double>]'
17>C:/env/Insight/Code/IO/itkImageIOBase.h:120: instantiated from here
17>C:/env/itk/bin/Vc8/Include/xutility:880: error: `double*' is not a
class,
17> struct, or union type
17>C:/env/itk/bin/Vc8/Include/xutility: In instantiation of
`std::_Checked_iterator_category<double*>':
17>C:/env/itk/bin/Vc8/Include/xutility:1039: instantiated from
`std::_Ptr_cat_helper<std::_Vector_const_iterator<double,
std::allocator<double> >, double*>'
17>C:/Program Files/Microsoft Visual Studio 8/VC/include/memory:673:
instantiated from `_FwdIt stdext::unchecked_uninitialized_copy(_InIt,
_InIt, _FwdIt, _Alloc&) [with _InIt =
std::_Vector_const_iterator<double, std::allocator<double> >, _FwdIt =
double*, _Alloc = std::allocator<double>]'
17>C:/env/itk/bin/Vc8/Include/vector:1104: instantiated from `typename
std::_Vector_val<_Ty, _Ax>::_Alty::pointer std::vector<_Ty,
_Ax>::_Ucopy(_Iter, _Iter, typename std::_Vector_val<_Ty,
_Ax>::_Alty::pointer) [with _Iter = std::_Vector_const_iterator<double,
std::allocator<double> >, _Ty = double, _Ax = std::allocator<double>]'
17>C:/env/itk/bin/Vc8/Include/vector:490: instantiated from
`std::vector<_Ty, _Ax>::vector(const std::vector<_Ty, _Ax>&) [with _Ty =
double, _Ax = std::allocator<double>]'
17>C:/env/Insight/Code/IO/itkImageIOBase.h:120: instantiated from here
17>C:/env/itk/bin/Vc8/Include/xutility:887: error: no type named
`_Checked_cat' in
17> `class std::_Checked_iterator_category_helper<double*, true>'
17>C:/env/itk/bin/Vc8/Include/xutility: In instantiation of
`std::_Ptr_cat_helper<std::_Vector_const_iterator<double,
std::allocator<double> >, double*>':
17>C:/Program Files/Microsoft Visual Studio 8/VC/include/memory:673:
instantiated from `_FwdIt stdext::unchecked_uninitialized_copy(_InIt,
_InIt, _FwdIt, _Alloc&) [with _InIt =
std::_Vector_const_iterator<double, std::allocator<double> >, _FwdIt =
double*, _Alloc = std::allocator<double>]'
17>C:/env/itk/bin/Vc8/Include/vector:1104: instantiated from `typename
std::_Vector_val<_Ty, _Ax>::_Alty::pointer std::vector<_Ty,
_Ax>::_Ucopy(_Iter, _Iter, typename std::_Vector_val<_Ty,
_Ax>::_Alty::pointer) [with _Iter = std::_Vector_const_iterator<double,
std::allocator<double> >, _Ty = double, _Ax = std::allocator<double>]'
17>C:/env/itk/bin/Vc8/Include/vector:490: instantiated from
`std::vector<_Ty, _Ax>::vector(const std::vector<_Ty, _Ax>&) [with _Ty =
double, _Ax = std::allocator<double>]'
17>C:/env/Insight/Code/IO/itkImageIOBase.h:120: instantiated from here
17>C:/env/itk/bin/Vc8/Include/xutility:1039: error: no type named
`_Checked_cat'
17> in `class std::_Checked_iterator_category<double*>'
17>C:/Program Files/Microsoft Visual Studio 8/VC/include/memory: In
function `
17> _FwdIt stdext::unchecked_uninitialized_copy(_InIt, _InIt, _FwdIt,
_Alloc&)
17> [with _InIt = std::_Vector_const_iterator<double,
std::allocator<double> >,
17> _FwdIt = double*, _Alloc = std::allocator<double>]':
17>C:/env/itk/bin/Vc8/Include/vector:1104: instantiated from `typename
std::_Vector_val<_Ty, _Ax>::_Alty::pointer std::vector<_Ty,
_Ax>::_Ucopy(_Iter, _Iter, typename std::_Vector_val<_Ty,
_Ax>::_Alty::pointer) [with _Iter = std::_Vector_const_iterator<double,
std::allocator<double> >, _Ty = double, _Ax = std::allocator<double>]'
17>C:/env/itk/bin/Vc8/Include/vector:490: instantiated from
`std::vector<_Ty, _Ax>::vector(const std::vector<_Ty, _Ax>&) [with _Ty =
double, _Ax = std::allocator<double>]'
17>C:/env/Insight/Code/IO/itkImageIOBase.h:120: instantiated from here
17>C:/Program Files/Microsoft Visual Studio 8/VC/include/memory:673:
error: no
17> matching function for call to
`_Ptr_cat(std::_Vector_const_iterator<double,
17> std::allocator<double> >&, double*&)'
17>C:/Program Files/Microsoft Visual Studio 8/VC/include/memory: In
function `
17> _FwdIt stdext::_Unchecked_uninitialized_move(_InIt, _InIt, _FwdIt,
_Alloc&)
17> [with _InIt = long int*, _FwdIt = long int*, _Alloc =
std::allocator<long
17> int>]':
17>C:/env/itk/bin/Vc8/Include/vector:1111: instantiated from `typename
std::_Vector_val<_Ty, _Ax>::_Alty::pointer std::vector<_Ty,
_Ax>::_Umove(_Iter, _Iter, typename std::_Vector_val<_Ty,
_Ax>::_Alty::pointer) [with _Iter = long int*, _Ty = long int, _Ax =
std::allocator<long int>]'
17>C:/env/itk/bin/Vc8/Include/vector:1142: instantiated from `void
std::vector<_Ty, _Ax>::_Insert_n(std::_Vector_iterator<_Ty, typename
std::_Vector_val<_Ty, _Ax>::_Alty>, typename std::_Vector_val<_Ty,
_Ax>::_Alty::size_type, const _Ty&) [with _Ty = long int, _Ax =
std::allocator<long int>]'
17>C:/env/itk/bin/Vc8/Include/vector:696: instantiated from `void
std::vector<_Ty, _Ax>::resize(typename std::_Vector_val<_Ty,
_Ax>::_Alty::size_type, _Ty) [with _Ty = long int, _Ax =
std::allocator<long int>]'
17>C:/env/itk/bin/Vc8/Include/vector:690: instantiated from `void
std::vector<_Ty, _Ax>::resize(typename std::_Vector_val<_Ty,
_Ax>::_Alty::size_type) [with _Ty = long int, _Ax = std::allocator<long
int>]'
17>C:/env/Insight/Code/IO/itkImageIORegion.h:86: instantiated from here
17>C:/Program Files/Microsoft Visual Studio 8/VC/include/memory:693:
error: no
17> matching function for call to `_Checked_base(long int*&)'
17>C:/Program Files/Microsoft Visual Studio 8/VC/include/memory:693:
error: no
17> matching function for call to `_Checked_base(long int*&)'
17>C:/env/itk/bin/Vc8/Include/xutility: In function `void
std::_Fill_n(_OutIt,
17> _Diff, const _Ty&, std::random_access_iterator_tag,
17> std::_Range_checked_iterator_tag) [with _OutIt = long int*, _Diff
= unsigned
17> int, _Ty = long int]':
17>C:/env/itk/bin/Vc8/Include/xutility:3054: instantiated from `void
stdext::unchecked_fill_n(_OutIt, _Diff, const _Ty&) [with _OutIt = long
int*, _Diff = unsigned int, _Ty = long int]'
17>C:/Program Files/Microsoft Visual Studio 8/VC/include/memory:328:
instantiated from `void std::_Uninit_fill_n(_FwdIt, _Diff, const _Tval&,
_Alloc&, std::_Scalar_ptr_iterator_tag,
std::_Range_checked_iterator_tag) [with _FwdIt = long int*, _Diff =
unsigned int, _Tval = long int, _Alloc = std::allocator<long int>]'
17>C:/Program Files/Microsoft Visual Studio 8/VC/include/memory:730:
instantiated from `void stdext::unchecked_uninitialized_fill_n(_FwdIt,
_Diff, const _Tval&, _Alloc&) [with _FwdIt = long int*, _Diff = unsigned
int, _Tval = long int, _Alloc = std::allocator<long int>]'
17>C:/env/itk/bin/Vc8/Include/vector:1208: instantiated from `typename
std::_Vector_val<_Ty, _Ax>::_Alty::pointer std::vector<_Ty,
_Ax>::_Ufill(typename std::_Vector_val<_Ty, _Ax>::_Alty::pointer,
typename std::_Vector_val<_Ty, _Ax>::_Alty::size_type, const _Ty&) [with
_Ty = long int, _Ax = std::allocator<long int>]'
17>C:/env/itk/bin/Vc8/Include/vector:1144: instantiated from `void
std::vector<_Ty, _Ax>::_Insert_n(std::_Vector_iterator<_Ty, typename
std::_Vector_val<_Ty, _Ax>::_Alty>, typename std::_Vector_val<_Ty,
_Ax>::_Alty::size_type, const _Ty&) [with _Ty = long int, _Ax =
std::allocator<long int>]'
17>C:/env/itk/bin/Vc8/Include/vector:696: instantiated from `void
std::vector<_Ty, _Ax>::resize(typename std::_Vector_val<_Ty,
_Ax>::_Alty::size_type, _Ty) [with _Ty = long int, _Ax =
std::allocator<long int>]'
17>C:/env/itk/bin/Vc8/Include/vector:690: instantiated from `void
std::vector<_Ty, _Ax>::resize(typename std::_Vector_val<_Ty,
_Ax>::_Alty::size_type) [with _Ty = long int, _Ax = std::allocator<long
int>]'
17>C:/env/Insight/Code/IO/itkImageIORegion.h:86: instantiated from here
17>C:/env/itk/bin/Vc8/Include/xutility:2834: error: no matching function
for call
17> to `_Checked_base(long int*&)'
17>C:/env/itk/bin/Vc8/Include/xutility: In function `void std::fill(_FwdIt,
17> _FwdIt, const _Ty&) [with _FwdIt = long int*, _Ty = long int]':
17>C:/env/itk/bin/Vc8/Include/vector:1186: instantiated from `void
std::vector<_Ty, _Ax>::_Insert_n(std::_Vector_iterator<_Ty, typename
std::_Vector_val<_Ty, _Ax>::_Alty>, typename std::_Vector_val<_Ty,
_Ax>::_Alty::size_type, const _Ty&) [with _Ty = long int, _Ax =
std::allocator<long int>]'
17>C:/env/itk/bin/Vc8/Include/vector:696: instantiated from `void
std::vector<_Ty, _Ax>::resize(typename std::_Vector_val<_Ty,
_Ax>::_Alty::size_type, _Ty) [with _Ty = long int, _Ax =
std::allocator<long int>]'
17>C:/env/itk/bin/Vc8/Include/vector:690: instantiated from `void
std::vector<_Ty, _Ax>::resize(typename std::_Vector_val<_Ty,
_Ax>::_Alty::size_type) [with _Ty = long int, _Ax = std::allocator<long
int>]'
17>C:/env/Insight/Code/IO/itkImageIORegion.h:86: instantiated from here
17>C:/env/itk/bin/Vc8/Include/xutility:2768: error: no matching function
for call
17> to `_Checked_base(long int*&)'
17>C:/env/itk/bin/Vc8/Include/xutility:2768: error: no matching function
for call
17> to `_Checked_base(long int*&)'
17>C:/env/itk/bin/Vc8/Include/xutility: In function `_BidIt2
17> stdext::_Unchecked_move_backward(_BidIt1, _BidIt1, _BidIt2) [with
_BidIt1 =
17> long int*, _BidIt2 = long int*]':
17>C:/env/itk/bin/Vc8/Include/vector:1199: instantiated from `void
std::vector<_Ty, _Ax>::_Insert_n(std::_Vector_iterator<_Ty, typename
std::_Vector_val<_Ty, _Ax>::_Alty>, typename std::_Vector_val<_Ty,
_Ax>::_Alty::size_type, const _Ty&) [with _Ty = long int, _Ax =
std::allocator<long int>]'
17>C:/env/itk/bin/Vc8/Include/vector:696: instantiated from `void
std::vector<_Ty, _Ax>::resize(typename std::_Vector_val<_Ty,
_Ax>::_Alty::size_type, _Ty) [with _Ty = long int, _Ax =
std::allocator<long int>]'
17>C:/env/itk/bin/Vc8/Include/vector:690: instantiated from `void
std::vector<_Ty, _Ax>::resize(typename std::_Vector_val<_Ty,
_Ax>::_Alty::size_type) [with _Ty = long int, _Ax = std::allocator<long
int>]'
17>C:/env/Insight/Code/IO/itkImageIORegion.h:86: instantiated from here
17>C:/env/itk/bin/Vc8/Include/xutility:3037: error: no matching function
for call
17> to `_Checked_base(long int*&)'
17>C:/env/itk/bin/Vc8/Include/xutility:3037: error: no matching function
for call
17> to `_Checked_base(long int*&)'
17>Project : error PRJ0019: A tool returned an error code from
"wrap_itkImageSeriesWriter.xml from "
17>Build log was saved at
"file://c:\env\itk\Wrapping\CSwig\IO\_ITKIOPython.dir\RelWithDebInfo\BuildLog.htm"
17>_ITKIOPython - 20 error(s), 0 warning(s)
========== Build: 16 succeeded, 1 failed, 49 up-to-date, 0 skipped
==========
Hopefully this is a small oversight of mine and can be easily fixed.
Thanks,
Erik Anderson
More information about the Insight-users
mailing list