<div dir="ltr">Hi<div><br></div><div>First of, I&#39;m new to ITK, but I&#39;m very enthusiastic :)</div><div><br></div><div>I have downloaded the latest code of ITK and I&#39;m trying to build it. I have ran into a error, which I haven&#39;t been able to sort out yet. </div>
<div><br></div><div>When compiling the code on Xubuntu with GCC 4.6, I&#39;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="&#39;courier new&#39;, monospace">[ 71%] Building CXX object Wrapping/Modules/ITKQuadEdgeMesh/CMakeFiles/ITKQuadEdgeMeshExplicit.dir/ITKQuadEdgeMeshBaseExplicit.cxx.o</font></div>
<div><font face="&#39;courier new&#39;, 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="&#39;courier new&#39;, monospace">                 from /usr/local/itk/InsightToolkit-4.0.0/bin/Wrapping/Typedefs/ITKQuadEdgeMeshExplicit.h:33,</font></div>
<div><font face="&#39;courier new&#39;, monospace">                 from /usr/local/itk/InsightToolkit-4.0.0/bin/Wrapping/Modules/ITKQuadEdgeMesh/ITKQuadEdgeMeshBaseExplicit.cxx:2:</font></div><div><font face="&#39;courier new&#39;, monospace">/usr/local/itk/InsightToolkit-4.0.0/Modules/Core/QuadEdgeMesh/include/itkGeometricalQuadEdge.hxx: In instantiation of ‘const OriginRefType itk::GeometricalQuadEdge&lt;long unsigned int, long unsigned int, bool, bool, true&gt;::m_NoPoint’:</font></div>
<div><font face="&#39;courier new&#39;, monospace">/usr/local/itk/InsightToolkit-4.0.0/Modules/Core/QuadEdgeMesh/include/itkQuadEdgeMesh.hxx:952:3:   instantiated from ‘void itk::QuadEdgeMesh&lt;TPixel, VDimension, TTraits&gt;::LightWeightDeleteEdge(itk::QuadEdgeMesh&lt;TPixel, VDimension, TTraits&gt;::EdgeCellType*) [with TPixel = double, unsigned int VDimension = 2u, TTraits = itk::QuadEdgeMeshTraits&lt;double, 2u, bool, bool, float, float&gt;, itk::QuadEdgeMesh&lt;TPixel, VDimension, TTraits&gt;::EdgeCellType = itk::QuadEdgeMeshLineCell&lt;itk::CellInterface&lt;double, itk::QuadEdgeMeshCellTraitsInfo&lt;2, float, float, long unsigned int, long unsigned int, unsigned char, itk::QuadEdgeMeshPoint&lt;float, 2u&gt;, itk::MapContainer&lt;long unsigned int, itk::QuadEdgeMeshPoint&lt;float, 2u&gt; &gt;, std::set&lt;long unsigned int&gt;, itk::GeometricalQuadEdge&lt;long unsigned int, long unsigned int, bool, bool, true&gt; &gt; &gt; &gt;, typename itk::Mesh&lt;TPixel, VDimension, TTraits&gt;::CellType = itk::CellInterface&lt;double, itk::QuadEdgeMeshCellTraitsInfo&lt;2, float, float, long unsigned int, long unsigned int, unsigned char, itk::QuadEdgeMeshPoint&lt;float, 2u&gt;, itk::MapContainer&lt;long unsigned int, itk::QuadEdgeMeshPoint&lt;float, 2u&gt; &gt;, std::set&lt;long unsigned int&gt;, itk::GeometricalQuadEdge&lt;long unsigned int, long unsigned int, bool, bool, true&gt; &gt; &gt;]’</font></div>
<div><font face="&#39;courier new&#39;, monospace">/usr/local/itk/InsightToolkit-4.0.0/bin/Wrapping/Modules/ITKQuadEdgeMesh/ITKQuadEdgeMeshBaseExplicit.cxx:14:53:   instantiated from here</font></div><div><font face="&#39;courier new&#39;, 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="&#39;courier new&#39;, 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="&#39;courier new&#39;, monospace">/usr/local/itk/InsightToolkit-4.0.0/Modules/Core/QuadEdgeMesh/include/itkGeometricalQuadEdge.hxx:32:1: error: ‘itk::GeometricalQuadEdge&lt;long unsigned int, long unsigned int, bool, bool, true&gt;::m_NoPoint’ cannot be initialized by a non-constant expression when being declared</font></div>
<div><font face="&#39;courier new&#39;, monospace">/usr/local/itk/InsightToolkit-4.0.0/Modules/Core/QuadEdgeMesh/include/itkGeometricalQuadEdge.hxx: In instantiation of ‘const OriginRefType itk::GeometricalQuadEdge&lt;long unsigned int, long unsigned int, bool, bool, false&gt;::m_NoPoint’:</font></div>
<div><font face="&#39;courier new&#39;, monospace">/usr/local/itk/InsightToolkit-4.0.0/Modules/Core/QuadEdgeMesh/include/itkGeometricalQuadEdge.h:137:33:   instantiated from ‘void itk::GeometricalQuadEdge&lt;TVRef, TFRef, TPrimalData, TDualData, PrimalDual&gt;::UnsetOrigin() [with TVRef = long unsigned int, TFRef = long unsigned int, TPrimalData = bool, TDualData = bool, bool PrimalDual = false]’</font></div>
<div><font face="&#39;courier new&#39;, monospace">/usr/local/itk/InsightToolkit-4.0.0/Modules/Core/QuadEdgeMesh/include/itkGeometricalQuadEdge.h:140:30:   instantiated from ‘void itk::GeometricalQuadEdge&lt;TVRef, TFRef, TPrimalData, TDualData, PrimalDual&gt;::UnsetLeft() [with TVRef = long unsigned int, TFRef = long unsigned int, TPrimalData = bool, TDualData = bool, bool PrimalDual = true]’</font></div>
<div><font face="&#39;courier new&#39;, monospace">/usr/local/itk/InsightToolkit-4.0.0/Modules/Core/QuadEdgeMesh/include/itkQuadEdgeMesh.hxx:880:11:   instantiated from ‘void itk::QuadEdgeMesh&lt;TPixel, VDimension, TTraits&gt;::DeleteEdge(itk::QuadEdgeMesh&lt;TPixel, VDimension, TTraits&gt;::QEPrimal*) [with TPixel = double, unsigned int VDimension = 2u, TTraits = itk::QuadEdgeMeshTraits&lt;double, 2u, bool, bool, float, float&gt;, itk::QuadEdgeMesh&lt;TPixel, VDimension, TTraits&gt;::QEPrimal = itk::GeometricalQuadEdge&lt;long unsigned int, long unsigned int, bool, bool, true&gt;]’</font></div>
<div><font face="&#39;courier new&#39;, monospace">/usr/local/itk/InsightToolkit-4.0.0/bin/Wrapping/Modules/ITKQuadEdgeMesh/ITKQuadEdgeMeshBaseExplicit.cxx:14:53:   instantiated from here</font></div><div><font face="&#39;courier new&#39;, 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="&#39;courier new&#39;, monospace">/usr/local/itk/InsightToolkit-4.0.0/Modules/Core/QuadEdgeMesh/include/itkGeometricalQuadEdge.hxx:32:1: error: ‘itk::GeometricalQuadEdge&lt;long unsigned int, long unsigned int, bool, bool, false&gt;::m_NoPoint’ cannot be initialized by a non-constant expression when being declared</font></div>
<div><font face="&#39;courier new&#39;, monospace">make[2]: *** [Wrapping/Modules/ITKQuadEdgeMesh/CMakeFiles/ITKQuadEdgeMeshExplicit.dir/ITKQuadEdgeMeshBaseExplicit.cxx.o] Error 1</font></div><div><font face="&#39;courier new&#39;, monospace">make[1]: *** [Wrapping/Modules/ITKQuadEdgeMesh/CMakeFiles/ITKQuadEdgeMeshExplicit.dir/all] Error 2</font></div>
</div></div>