[Insight-users] compilation problem

Karthik Krishnan karthik.krishnan at kitware.com
Thu Jul 3 18:08:37 EDT 2008


Get ITK from CVS. It contains the fixes to build with gcc 4.3. There are 
dashboards for it.

Pierre Gueth wrote:
> 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
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users

-- 
--
Karthik Krishnan
R & D Engineer,
Kitware Inc,
Ph: +1 518 3713971 x119
Fax: +1 518 3714573



More information about the Insight-users mailing list