Hi I get this error when ticking the flag for ITKVTKglue when building ITK:
/vcl_compiler.h:243:0,
CMakeFiles/Makefile2:34960: recipe for target ‘Modules/Bridge/VtkGlue/src/CMakeFiles/ITKVtkGlue.dir/all’ failed
Lots of complaining regarding VCL and VNL
I am using cmake-gui 3.5.2 ITK 4.3.2, VTK-9.0 gcc 4.8.5 Ubuntu 16.04
Any suggestions: below is the full output:
Building CXX object Modules/Bridge/VtkGlue/src/CMakeFiles/ITKVtkGlue.dir/QuickView.cxx.o
In file included from /home/petic/ITK/Modules/ThirdParty/VNL/src/vxl/vcl/vcl_compiler.h:243:0,
from /home/petic/ITK/Modules/ThirdParty/VNL/src/vxl/vcl/vcl_limits.h:5,
from /home/petic/ITK/Modules/Core/Common/include/itkNumericTraits.h:45,
from /home/petic/ITK/Modules/Core/Common/include/itkPoint.h:22,
from /home/petic/ITK/Modules/Core/Common/include/itkContinuousIndex.h:21,
from /home/petic/ITK/Modules/Core/Common/include/itkImageRegion.h:34,
from /home/petic/ITK/Modules/Core/Common/include/itkImage.h:21,
from /home/petic/ITK/Modules/Bridge/VtkGlue/include/QuickView.h:25,
from /home/petic/ITK/Modules/Bridge/VtkGlue/src/QuickView.cxx:18:
/home/petic/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_numeric_traits.h:366:60: error: ‘constexpr’ needed for in-class initialization of static data member ‘const float vnl_numeric_traits<float>::zero’ of non-integral type [-fpermissive]
static const float zero VCL_STATIC_CONST_INIT_FLOAT_DECL(0.0F);
^
/home/petic/ITKbin/Modules/ThirdParty/VNL/src/vxl/vcl/vcl_config_compiler.h:148:48: note: in definition of macro ‘VCL_STATIC_CONST_INIT_FLOAT_DECL’
# define VCL_STATIC_CONST_INIT_FLOAT_DECL(x) = x
^
/home/petic/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_numeric_traits.h:368:59: error: ‘constexpr’ needed for in-class initialization of static data member ‘const float vnl_numeric_traits<float>::one’ of non-integral type [-fpermissive]
static const float one VCL_STATIC_CONST_INIT_FLOAT_DECL(1.0F);
^
/home/petic/ITKbin/Modules/ThirdParty/VNL/src/vxl/vcl/vcl_config_compiler.h:148:48: note: in definition of macro ‘VCL_STATIC_CONST_INIT_FLOAT_DECL’
# define VCL_STATIC_CONST_INIT_FLOAT_DECL(x) = x
^
/home/petic/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_numeric_traits.h:370:62: error: ‘constexpr’ needed for in-class initialization of static data member ‘const float vnl_numeric_traits<float>::maxval’ of non-integral type [-fpermissive]
static const float maxval VCL_STATIC_CONST_INIT_FLOAT_DECL(3.40282346638528860e+38F);
^
/home/petic/ITKbin/Modules/ThirdParty/VNL/src/vxl/vcl/vcl_config_compiler.h:148:48: note: in definition of macro ‘VCL_STATIC_CONST_INIT_FLOAT_DECL’
# define VCL_STATIC_CONST_INIT_FLOAT_DECL(x) = x
^
/home/petic/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_numeric_traits.h:389:61: error: ‘constexpr’ needed for in-class initialization of static data member ‘const double vnl_numeric_traits<double>::zero’ of non-integral type [-fpermissive]
static const double zero VCL_STATIC_CONST_INIT_FLOAT_DECL(0.0);
^
/home/petic/ITKbin/Modules/ThirdParty/VNL/src/vxl/vcl/vcl_config_compiler.h:148:48: note: in definition of macro ‘VCL_STATIC_CONST_INIT_FLOAT_DECL’
# define VCL_STATIC_CONST_INIT_FLOAT_DECL(x) = x
^
/home/petic/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_numeric_traits.h:391:60: error: ‘constexpr’ needed for in-class initialization of static data member ‘const double vnl_numeric_traits<double>::one’ of non-integral type [-fpermissive]
static const double one VCL_STATIC_CONST_INIT_FLOAT_DECL(1.0);
^
/home/petic/ITKbin/Modules/ThirdParty/VNL/src/vxl/vcl/vcl_config_compiler.h:148:48: note: in definition of macro ‘VCL_STATIC_CONST_INIT_FLOAT_DECL’
# define VCL_STATIC_CONST_INIT_FLOAT_DECL(x) = x
^
/home/petic/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_numeric_traits.h:393:63: error: ‘constexpr’ needed for in-class initialization of static data member ‘const double vnl_numeric_traits<double>::maxval’ of non-integral type [-fpermissive]
static const double maxval VCL_STATIC_CONST_INIT_FLOAT_DECL(1.7976931348623157E+308);
^
/home/petic/ITKbin/Modules/ThirdParty/VNL/src/vxl/vcl/vcl_config_compiler.h:148:48: note: in definition of macro ‘VCL_STATIC_CONST_INIT_FLOAT_DECL’
# define VCL_STATIC_CONST_INIT_FLOAT_DECL(x) = x
^
/home/petic/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_numeric_traits.h:412:66: error: ‘constexpr’ needed for in-class initialization of static data member ‘const long double vnl_numeric_traits<long double>::zero’ of non-integral type [-fpermissive]
static const long double zero VCL_STATIC_CONST_INIT_FLOAT_DECL(0.0);
^
/home/petic/ITKbin/Modules/ThirdParty/VNL/src/vxl/vcl/vcl_config_compiler.h:148:48: note: in definition of macro ‘VCL_STATIC_CONST_INIT_FLOAT_DECL’
# define VCL_STATIC_CONST_INIT_FLOAT_DECL(x) = x
^
/home/petic/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_numeric_traits.h:414:65: error: ‘constexpr’ needed for in-class initialization of static data member ‘const long double vnl_numeric_traits<long double>::one’ of non-integral type [-fpermissive]
static const long double one VCL_STATIC_CONST_INIT_FLOAT_DECL(1.0);
^
/home/petic/ITKbin/Modules/ThirdParty/VNL/src/vxl/vcl/vcl_config_compiler.h:148:48: note: in definition of macro ‘VCL_STATIC_CONST_INIT_FLOAT_DECL’
# define VCL_STATIC_CONST_INIT_FLOAT_DECL(x) = x
^
/home/petic/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_numeric_traits.h:416:68: error: ‘constexpr’ needed for in-class initialization of static data member ‘const long double vnl_numeric_traits<long double>::maxval’ of non-integral type [-fpermissive]
static const long double maxval VCL_STATIC_CONST_INIT_FLOAT_DECL(1.7976931348623157E+308);
^
/home/petic/ITKbin/Modules/ThirdParty/VNL/src/vxl/vcl/vcl_config_compiler.h:148:48: note: in definition of macro ‘VCL_STATIC_CONST_INIT_FLOAT_DECL’
# define VCL_STATIC_CONST_INIT_FLOAT_DECL(x) = x
^
Modules/Bridge/VtkGlue/src/CMakeFiles/ITKVtkGlue.dir/build.make:62: recipe for target 'Modules/Bridge/VtkGlue/src/CMakeFiles/ITKVtkGlue.dir/QuickView.cxx.o' failed
make[2]: *** [Modules/Bridge/VtkGlue/src/CMakeFiles/ITKVtkGlue.dir/QuickView.cxx.o] Error 1
CMakeFiles/Makefile2:34960: recipe for target 'Modules/Bridge/VtkGlue/src/CMakeFiles/ITKVtkGlue.dir/all' failed
make[1]: *** [Modules/Bridge/VtkGlue/src/CMakeFiles/ITKVtkGlue.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2