[Insight-users] compilation problem
Pierre Gueth
pierre.gueth at crans.org
Thu Jul 3 23:35:11 EDT 2008
hi,
i am trying to compile itk 3.6.0 on arch linux x86_64 pc using gcc 4.3.
so i type:
cmake -DBUILD_EXAMPLES:BOOL=OFF -DBUILD_TESTING:BOOL=OFF
-DBUILD_SHARED_LIBS:BOOL=OFF .
make
everything goes ok (except some <cstring> include problem) until i get
this error:
[ 72%] Built target itkvnl
[ 78%] Built target itkvnl_algo
[ 78%] Building CXX object
Code/Common/CMakeFiles/ITKCommon.dir/itkOctreeNode.o
In file included from
/home/pierre/abs/itk/src/InsightToolkit-3.6.0/Code/Common/itkImageBoundaryCondition.h:22,
from
/home/pierre/abs/itk/src/InsightToolkit-3.6.0/Code/Common/itkNeighborhoodAccessorFunctor.h:20,
from
/home/pierre/abs/itk/src/InsightToolkit-3.6.0/Code/Common/itkImage.h:29,
from
/home/pierre/abs/itk/src/InsightToolkit-3.6.0/Code/Common/itkOctree.h:21,
from
/home/pierre/abs/itk/src/InsightToolkit-3.6.0/Code/Common/itkOctreeNode.cxx:18:
/home/pierre/abs/itk/src/InsightToolkit-3.6.0/Code/Common/itkNeighborhood.h:153:
error: declaration of ‘unsigned int itk::Neighborhood<TPixel,
VDimension, TAllocator>::Size() const’
/home/pierre/abs/itk/src/InsightToolkit-3.6.0/Code/Common/itkSize.h:46:
error: changes meaning of ‘Size’ from ‘class itk::Size<VDimension>’
make[2]: *** [Code/Common/CMakeFiles/ITKCommon.dir/itkOctreeNode.o] Error 1
make[1]: *** [Code/Common/CMakeFiles/ITKCommon.dir/all] Error 2
make: *** [all] Error 2
same problem appears when building shared libs...
does anyone knows about a way to fix it??
regards
pierre
More information about the Insight-users
mailing list