<div dir="ltr">Hi<div><br></div><div>First of, I'm new to ITK, but I'm very enthusiastic :)</div><div><br></div><div>I have downloaded the latest code of ITK and I'm trying to build it. I have ran into a error, which I haven't been able to sort out yet. </div>
<div><br></div><div>When compiling the code on Xubuntu with GCC 4.6, I've got the error which is added at the end of this mail.</div><div><br></div><div>It cannot compile Modules/Core/QuadEdgeMesh/include/itkGeometricalQuadEdge.hxx.</div>
<div><br></div><div>I would be very happy if you could help me with this... :)</div><div><br></div><div>Thanks!</div><div>PMon</div><div><br></div><div>----</div><div><br></div><div><div><font face="'courier new', monospace">[ 71%] Building CXX object Wrapping/Modules/ITKQuadEdgeMesh/CMakeFiles/ITKQuadEdgeMeshExplicit.dir/ITKQuadEdgeMeshBaseExplicit.cxx.o</font></div>
<div><font face="'courier new', monospace">In file included from /usr/local/itk/InsightToolkit-4.0.0/Modules/Core/QuadEdgeMesh/include/itkGeometricalQuadEdge.h:250:0,</font></div><div><font face="'courier new', monospace"> from /usr/local/itk/InsightToolkit-4.0.0/bin/Wrapping/Typedefs/ITKQuadEdgeMeshExplicit.h:33,</font></div>
<div><font face="'courier new', monospace"> from /usr/local/itk/InsightToolkit-4.0.0/bin/Wrapping/Modules/ITKQuadEdgeMesh/ITKQuadEdgeMeshBaseExplicit.cxx:2:</font></div><div><font face="'courier new', monospace">/usr/local/itk/InsightToolkit-4.0.0/Modules/Core/QuadEdgeMesh/include/itkGeometricalQuadEdge.hxx: In instantiation of ‘const OriginRefType itk::GeometricalQuadEdge<long unsigned int, long unsigned int, bool, bool, true>::m_NoPoint’:</font></div>
<div><font face="'courier new', monospace">/usr/local/itk/InsightToolkit-4.0.0/Modules/Core/QuadEdgeMesh/include/itkQuadEdgeMesh.hxx:952:3: instantiated from ‘void itk::QuadEdgeMesh<TPixel, VDimension, TTraits>::LightWeightDeleteEdge(itk::QuadEdgeMesh<TPixel, VDimension, TTraits>::EdgeCellType*) [with TPixel = double, unsigned int VDimension = 2u, TTraits = itk::QuadEdgeMeshTraits<double, 2u, bool, bool, float, float>, itk::QuadEdgeMesh<TPixel, VDimension, TTraits>::EdgeCellType = itk::QuadEdgeMeshLineCell<itk::CellInterface<double, itk::QuadEdgeMeshCellTraitsInfo<2, float, float, long unsigned int, long unsigned int, unsigned char, itk::QuadEdgeMeshPoint<float, 2u>, itk::MapContainer<long unsigned int, itk::QuadEdgeMeshPoint<float, 2u> >, std::set<long unsigned int>, itk::GeometricalQuadEdge<long unsigned int, long unsigned int, bool, bool, true> > > >, typename itk::Mesh<TPixel, VDimension, TTraits>::CellType = itk::CellInterface<double, itk::QuadEdgeMeshCellTraitsInfo<2, float, float, long unsigned int, long unsigned int, unsigned char, itk::QuadEdgeMeshPoint<float, 2u>, itk::MapContainer<long unsigned int, itk::QuadEdgeMeshPoint<float, 2u> >, std::set<long unsigned int>, itk::GeometricalQuadEdge<long unsigned int, long unsigned int, bool, bool, true> > >]’</font></div>
<div><font face="'courier new', monospace">/usr/local/itk/InsightToolkit-4.0.0/bin/Wrapping/Modules/ITKQuadEdgeMesh/ITKQuadEdgeMeshBaseExplicit.cxx:14:53: instantiated from here</font></div><div><font face="'courier new', monospace">/usr/local/itk/InsightToolkit-4.0.0/Modules/Core/QuadEdgeMesh/include/itkGeometricalQuadEdge.hxx:32:1: error: initializer invalid for static member with constructor</font></div>
<div><font face="'courier new', monospace">/usr/local/itk/InsightToolkit-4.0.0/Modules/Core/QuadEdgeMesh/include/itkGeometricalQuadEdge.hxx:32:1: error: (an out of class initialization is required)</font></div><div>
<font face="'courier new', monospace">/usr/local/itk/InsightToolkit-4.0.0/Modules/Core/QuadEdgeMesh/include/itkGeometricalQuadEdge.hxx:32:1: error: ‘itk::GeometricalQuadEdge<long unsigned int, long unsigned int, bool, bool, true>::m_NoPoint’ cannot be initialized by a non-constant expression when being declared</font></div>
<div><font face="'courier new', monospace">/usr/local/itk/InsightToolkit-4.0.0/Modules/Core/QuadEdgeMesh/include/itkGeometricalQuadEdge.hxx: In instantiation of ‘const OriginRefType itk::GeometricalQuadEdge<long unsigned int, long unsigned int, bool, bool, false>::m_NoPoint’:</font></div>
<div><font face="'courier new', monospace">/usr/local/itk/InsightToolkit-4.0.0/Modules/Core/QuadEdgeMesh/include/itkGeometricalQuadEdge.h:137:33: instantiated from ‘void itk::GeometricalQuadEdge<TVRef, TFRef, TPrimalData, TDualData, PrimalDual>::UnsetOrigin() [with TVRef = long unsigned int, TFRef = long unsigned int, TPrimalData = bool, TDualData = bool, bool PrimalDual = false]’</font></div>
<div><font face="'courier new', monospace">/usr/local/itk/InsightToolkit-4.0.0/Modules/Core/QuadEdgeMesh/include/itkGeometricalQuadEdge.h:140:30: instantiated from ‘void itk::GeometricalQuadEdge<TVRef, TFRef, TPrimalData, TDualData, PrimalDual>::UnsetLeft() [with TVRef = long unsigned int, TFRef = long unsigned int, TPrimalData = bool, TDualData = bool, bool PrimalDual = true]’</font></div>
<div><font face="'courier new', monospace">/usr/local/itk/InsightToolkit-4.0.0/Modules/Core/QuadEdgeMesh/include/itkQuadEdgeMesh.hxx:880:11: instantiated from ‘void itk::QuadEdgeMesh<TPixel, VDimension, TTraits>::DeleteEdge(itk::QuadEdgeMesh<TPixel, VDimension, TTraits>::QEPrimal*) [with TPixel = double, unsigned int VDimension = 2u, TTraits = itk::QuadEdgeMeshTraits<double, 2u, bool, bool, float, float>, itk::QuadEdgeMesh<TPixel, VDimension, TTraits>::QEPrimal = itk::GeometricalQuadEdge<long unsigned int, long unsigned int, bool, bool, true>]’</font></div>
<div><font face="'courier new', monospace">/usr/local/itk/InsightToolkit-4.0.0/bin/Wrapping/Modules/ITKQuadEdgeMesh/ITKQuadEdgeMeshBaseExplicit.cxx:14:53: instantiated from here</font></div><div><font face="'courier new', monospace">/usr/local/itk/InsightToolkit-4.0.0/Modules/Core/QuadEdgeMesh/include/itkGeometricalQuadEdge.hxx:32:1: error: initializer invalid for static member with constructor</font></div>
<div><font face="'courier new', monospace">/usr/local/itk/InsightToolkit-4.0.0/Modules/Core/QuadEdgeMesh/include/itkGeometricalQuadEdge.hxx:32:1: error: ‘itk::GeometricalQuadEdge<long unsigned int, long unsigned int, bool, bool, false>::m_NoPoint’ cannot be initialized by a non-constant expression when being declared</font></div>
<div><font face="'courier new', monospace">make[2]: *** [Wrapping/Modules/ITKQuadEdgeMesh/CMakeFiles/ITKQuadEdgeMeshExplicit.dir/ITKQuadEdgeMeshBaseExplicit.cxx.o] Error 1</font></div><div><font face="'courier new', monospace">make[1]: *** [Wrapping/Modules/ITKQuadEdgeMesh/CMakeFiles/ITKQuadEdgeMeshExplicit.dir/all] Error 2</font></div>
</div></div>