[Insight-users] Compilation error in itkGeometricalQuadEdge.hxx

pmon mail pmon.mail at gmail.com
Wed Feb 15 13:58:45 EST 2012


Hi

First of, I'm new to ITK, but I'm very enthusiastic :)

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.

When compiling the code on Xubuntu with GCC 4.6, I've got the error which
is added at the end of this mail.

It cannot
compile Modules/Core/QuadEdgeMesh/include/itkGeometricalQuadEdge.hxx.

I would be very happy if you could help me with this... :)

Thanks!
PMon

----

[ 71%] Building CXX object
Wrapping/Modules/ITKQuadEdgeMesh/CMakeFiles/ITKQuadEdgeMeshExplicit.dir/ITKQuadEdgeMeshBaseExplicit.cxx.o
In file included from
/usr/local/itk/InsightToolkit-4.0.0/Modules/Core/QuadEdgeMesh/include/itkGeometricalQuadEdge.h:250:0,
                 from
/usr/local/itk/InsightToolkit-4.0.0/bin/Wrapping/Typedefs/ITKQuadEdgeMeshExplicit.h:33,
                 from
/usr/local/itk/InsightToolkit-4.0.0/bin/Wrapping/Modules/ITKQuadEdgeMesh/ITKQuadEdgeMeshBaseExplicit.cxx:2:
/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’:
/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> > >]’
/usr/local/itk/InsightToolkit-4.0.0/bin/Wrapping/Modules/ITKQuadEdgeMesh/ITKQuadEdgeMeshBaseExplicit.cxx:14:53:
  instantiated from here
/usr/local/itk/InsightToolkit-4.0.0/Modules/Core/QuadEdgeMesh/include/itkGeometricalQuadEdge.hxx:32:1:
error: initializer invalid for static member with constructor
/usr/local/itk/InsightToolkit-4.0.0/Modules/Core/QuadEdgeMesh/include/itkGeometricalQuadEdge.hxx:32:1:
error: (an out of class initialization is required)
/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
/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’:
/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]’
/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]’
/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>]’
/usr/local/itk/InsightToolkit-4.0.0/bin/Wrapping/Modules/ITKQuadEdgeMesh/ITKQuadEdgeMeshBaseExplicit.cxx:14:53:
  instantiated from here
/usr/local/itk/InsightToolkit-4.0.0/Modules/Core/QuadEdgeMesh/include/itkGeometricalQuadEdge.hxx:32:1:
error: initializer invalid for static member with constructor
/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
make[2]: ***
[Wrapping/Modules/ITKQuadEdgeMesh/CMakeFiles/ITKQuadEdgeMeshExplicit.dir/ITKQuadEdgeMeshBaseExplicit.cxx.o]
Error 1
make[1]: ***
[Wrapping/Modules/ITKQuadEdgeMesh/CMakeFiles/ITKQuadEdgeMeshExplicit.dir/all]
Error 2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20120215/d85e76ab/attachment.htm>


More information about the Insight-users mailing list