It seems the c++ version I use is not compliant with c++14. I tried to add –std=c++11 in the ccmake, but I have the same error.
I think I need to upgrade the c++ compiler. De : otb-users@googlegroups.com <otb-users@googlegroups.com> De la part de Poughon Victor Envoyé : mercredi 16 janvier 2019 15:57 À : otb-users@googlegroups.com Objet : [otb-users] RE:OTB 6.6.1 compilation problem It looks like C++14 is not enabled. It should detect automatically though... Can you show your config script? Victor Poughon ________________________________ De : otb-users@googlegroups.com<mailto:otb-users@googlegroups.com> [otb-users@googlegroups.com] de la part de Koleck Thierry [thierry.kol...@cnes.fr] Envoyé : mercredi 16 janvier 2019 15:52 À : otb-users@googlegroups.com<mailto:otb-users@googlegroups.com> Objet : [otb-users] OTB 6.6.1 compilation problem Hello, I am trying to compile OTB 6.6.1 on a Linux system using Superbuild All librairies compiles correctly but I obtain the following error when compiling OTB itself. I m using gcc version 4.8.5 20150623 (Red Hat 4.8.5-16) (GCC) What’s wrong on my configuration ? Thank you [ 41%] Building CXX object Modules/Wrappers/ApplicationEngine/src/CMakeFiles/OTBApplicationEngine.dir/otbWrapperApplicationHtmlDocGenerator.cxx.o In file included from /home/koleckt/OTB-6.6-test-compile/otb/Modules/Filtering/ImageManipulation/include/otbClampImageFilter.h:24:0, from /home/koleckt/OTB-6.6-test-compile/otb/Modules/Wrappers/ApplicationEngine/include/otbWrapperInputImageParameter.txx:27, from /home/koleckt/OTB-6.6-test-compile/otb/Modules/Wrappers/ApplicationEngine/include/otbWrapperInputImageParameter.h:174, from /home/koleckt/OTB-6.6-test-compile/otb/Modules/Wrappers/ApplicationEngine/include/otbWrapperApplication.h:33, from /home/koleckt/OTB-6.6-test-compile/otb/Modules/Wrappers/ApplicationEngine/include/otbWrapperApplicationHtmlDocGenerator.h:24, from /home/koleckt/OTB-6.6-test-compile/otb/Modules/Wrappers/ApplicationEngine/src/otbWrapperApplicationHtmlDocGenerator.cxx:21: /home/koleckt/OTB-6.6-test-compile/otb/Modules/Filtering/ImageManipulation/include/otbConvertTypeFunctor.h:155:10: erreur: ‘std::enable_if_t’ has not been declared std::enable_if_t < std::is_arithmetic < PixelType > ::value , int > = 0 > ^ /home/koleckt/OTB-6.6-test-compile/otb/Modules/Filtering/ImageManipulation/include/otbConvertTypeFunctor.h:155:22: erreur: expected ‘>’ before ‘<’ token std::enable_if_t < std::is_arithmetic < PixelType > ::value , int > = 0 > ^ /home/koleckt/OTB-6.6-test-compile/otb/Modules/Filtering/ImageManipulation/include/otbConvertTypeFunctor.h:165:10: erreur: ‘std::enable_if_t’ has not been declared std::enable_if_t < boost::is_complex < PixelType > :: value , int > = 0 > ^ /home/koleckt/OTB-6.6-test-compile/otb/Modules/Filtering/ImageManipulation/include/otbConvertTypeFunctor.h:165:22: erreur: expected ‘>’ before ‘<’ token std::enable_if_t < boost::is_complex < PixelType > :: value , int > = 0 > ^ /home/koleckt/OTB-6.6-test-compile/otb/Modules/Filtering/ImageManipulation/include/otbConvertTypeFunctor.h:166:8: erreur: ‘template<class TInputPixelType, class TOutputPixelType> template<class PixelType, int <anonymous> > void otb::Functor::ConvertTypeFunctor<TInputPixelType, TOutputPixelType>::FillIn(unsigned int, const InputPixelType&, std::vector<double>&) const’ cannot be overloaded void FillIn( unsigned int i , ^ /home/koleckt/OTB-6.6-test-compile/otb/Modules/Filtering/ImageManipulation/include/otbConvertTypeFunctor.h:156:8: erreur: with ‘template<class TInputPixelType, class TOutputPixelType> template<class PixelType, int <anonymous> > void otb::Functor::ConvertTypeFunctor<TInputPixelType, TOutputPixelType>::FillIn(unsigned int, const InputPixelType&, std::vector<double>&) const’ void FillIn( unsigned int i , ^ /home/koleckt/OTB-6.6-test-compile/otb/Modules/Filtering/ImageManipulation/include/otbConvertTypeFunctor.h:177:9: erreur: ‘std::enable_if_t’ has not been declared std::enable_if_t < !( boost::is_complex < PixelType > :: value ^ /home/koleckt/OTB-6.6-test-compile/otb/Modules/Filtering/ImageManipulation/include/otbConvertTypeFunctor.h:177:21: erreur: expected ‘>’ before ‘<’ token std::enable_if_t < !( boost::is_complex < PixelType > :: value ^ /home/koleckt/OTB-6.6-test-compile/otb/Modules/Filtering/ImageManipulation/include/otbConvertTypeFunctor.h:179:8: erreur: ‘template<class TInputPixelType, class TOutputPixelType> template<class PixelType, int <anonymous> > void otb::Functor::ConvertTypeFunctor<TInputPixelType, TOutputPixelType>::FillIn(unsigned int, const InputPixelType&, std::vector<double>&) const’ cannot be overloaded void FillIn( unsigned int i , ^ /home/koleckt/OTB-6.6-test-compile/otb/Modules/Filtering/ImageManipulation/include/otbConvertTypeFunctor.h:156:8: erreur: with ‘template<class TInputPixelType, class TOutputPixelType> template<class PixelType, int <anonymous> > void otb::Functor::ConvertTypeFunctor<TInputPixelType, TOutputPixelType>::FillIn(unsigned int, const InputPixelType&, std::vector<double>&) const’ void FillIn( unsigned int i , ^ /home/koleckt/OTB-6.6-test-compile/otb/Modules/Filtering/ImageManipulation/include/otbConvertTypeFunctor.h:198:10: erreur: ‘std::enable_if_t’ has not been declared std::enable_if_t < std::is_arithmetic < PixelType > ::value , int > = 0 > ^ /home/koleckt/OTB-6.6-test-compile/otb/Modules/Filtering/ImageManipulation/include/otbConvertTypeFunctor.h:198:22: erreur: expected ‘>’ before ‘<’ token std::enable_if_t < std::is_arithmetic < PixelType > ::value , int > = 0 > ^ /home/koleckt/OTB-6.6-test-compile/otb/Modules/Filtering/ImageManipulation/include/otbConvertTypeFunctor.h:208:10: erreur: ‘std::enable_if_t’ has not been declared std::enable_if_t < boost::is_complex < PixelType > :: value , int > = 0 > ^ /home/koleckt/OTB-6.6-test-compile/otb/Modules/Filtering/ImageManipulation/include/otbConvertTypeFunctor.h:208:22: erreur: expected ‘>’ before ‘<’ token std::enable_if_t < boost::is_complex < PixelType > :: value , int > = 0 > ^ /home/koleckt/OTB-6.6-test-compile/otb/Modules/Filtering/ImageManipulation/include/otbConvertTypeFunctor.h:209:8: erreur: ‘template<class TInputPixelType, class TOutputPixelType> template<class PixelType, int <anonymous> > void otb::Functor::ConvertTypeFunctor<TInputPixelType, TOutputPixelType>::FillOut(unsigned int, otb::Functor::ConvertTypeFunctor<TInputPixelType, TOutputPixelType>::OutputPixelType&, std::vector<double>&) const’ cannot be overloaded void FillOut( unsigned int i , ^ /home/koleckt/OTB-6.6-test-compile/otb/Modules/Filtering/ImageManipulation/include/otbConvertTypeFunctor.h:199:8: erreur: with ‘template<class TInputPixelType, class TOutputPixelType> template<class PixelType, int <anonymous> > void otb::Functor::ConvertTypeFunctor<TInputPixelType, TOutputPixelType>::FillOut(unsigned int, otb::Functor::ConvertTypeFunctor<TInputPixelType, TOutputPixelType>::OutputPixelType&, std::vector<double>&) const’ void FillOut( unsigned int i , ^ /home/koleckt/OTB-6.6-test-compile/otb/Modules/Filtering/ImageManipulation/include/otbConvertTypeFunctor.h:219:9: erreur: ‘std::enable_if_t’ has not been declared std::enable_if_t < !( boost::is_complex < PixelType > :: value ^ /home/koleckt/OTB-6.6-test-compile/otb/Modules/Filtering/ImageManipulation/include/otbConvertTypeFunctor.h:219:21: erreur: expected ‘>’ before ‘<’ token std::enable_if_t < !( boost::is_complex < PixelType > :: value ^ /home/koleckt/OTB-6.6-test-compile/otb/Modules/Filtering/ImageManipulation/include/otbConvertTypeFunctor.h:221:8: erreur: ‘template<class TInputPixelType, class TOutputPixelType> template<class PixelType, int <anonymous> > void otb::Functor::ConvertTypeFunctor<TInputPixelType, TOutputPixelType>::FillOut(unsigned int, otb::Functor::ConvertTypeFunctor<TInputPixelType, TOutputPixelType>::OutputPixelType&, std::vector<double>&) const’ cannot be overloaded void FillOut( unsigned int i , ^ /home/koleckt/OTB-6.6-test-compile/otb/Modules/Filtering/ImageManipulation/include/otbConvertTypeFunctor.h:199:8: erreur: with ‘template<class TInputPixelType, class TOutputPixelType> template<class PixelType, int <anonymous> > void otb::Functor::ConvertTypeFunctor<TInputPixelType, TOutputPixelType>::FillOut(unsigned int, otb::Functor::ConvertTypeFunctor<TInputPixelType, TOutputPixelType>::OutputPixelType&, std::vector<double>&) const’ void FillOut( unsigned int i , ^ In file included from /home/koleckt/OTB-6.6-test-compile/otb/Modules/Wrappers/ApplicationEngine/include/otbWrapperParameterList.h:202:0, from /home/koleckt/OTB-6.6-test-compile/otb/Modules/Wrappers/ApplicationEngine/include/otbWrapperInputImageListParameter.h:26, from /home/koleckt/OTB-6.6-test-compile/otb/Modules/Wrappers/ApplicationEngine/include/otbWrapperApplication.h:34, from /home/koleckt/OTB-6.6-test-compile/otb/Modules/Wrappers/ApplicationEngine/include/otbWrapperApplicationHtmlDocGenerator.h:24, from /home/koleckt/OTB-6.6-test-compile/otb/Modules/Wrappers/ApplicationEngine/src/otbWrapperApplicationHtmlDocGenerator.cxx:21: /home/koleckt/OTB-6.6-test-compile/otb/Modules/Wrappers/ApplicationEngine/include/otbWrapperParameterList.txx: In member function ‘bool otb::Wrapper::ParameterList<T>::HasValue() const’: /home/koleckt/OTB-6.6-test-compile/otb/Modules/Wrappers/ApplicationEngine/include/otbWrapperParameterList.txx:85:16: erreur: parameter declared ‘auto’ []( auto p ) -> bool ^ /home/koleckt/OTB-6.6-test-compile/otb/Modules/Wrappers/ApplicationEngine/include/otbWrapperParameterList.txx: In lambda function: /home/koleckt/OTB-6.6-test-compile/otb/Modules/Wrappers/ApplicationEngine/include/otbWrapperParameterList.txx:88:16: erreur: ‘p’ was not declared in this scope return p && p->HasValue(); ^ /home/koleckt/OTB-6.6-test-compile/otb/Modules/Wrappers/ApplicationEngine/include/otbWrapperParameterList.txx: In member function ‘std::size_t otb::Wrapper::ParameterList<T>::SetStrings(const StringVector&)’: /home/koleckt/OTB-6.6-test-compile/otb/Modules/Wrappers/ApplicationEngine/include/otbWrapperParameterList.txx:204:22: erreur: parameter declared ‘auto’ [ this ]( auto s ) -> auto ^ /home/koleckt/OTB-6.6-test-compile/otb/Modules/Wrappers/ApplicationEngine/include/otbWrapperParameterList.txx:204:29: erreur: invalid use of ‘auto’ [ this ]( auto s ) -> auto ^ /home/koleckt/OTB-6.6-test-compile/otb/Modules/Wrappers/ApplicationEngine/include/otbWrapperParameterList.txx: In lambda function: /home/koleckt/OTB-6.6-test-compile/otb/Modules/Wrappers/ApplicationEngine/include/otbWrapperParameterList.txx:206:34: erreur: ‘s’ was not declared in this scope return this->FromString( s ); ^ /home/koleckt/OTB-6.6-test-compile/otb/Modules/Wrappers/ApplicationEngine/include/otbWrapperParameterList.txx: In member function ‘std::size_t otb::Wrapper::ParameterList<T>::GetStrings(otb::Wrapper::StringListInterface::StringVector&) const’: /home/koleckt/OTB-6.6-test-compile/otb/Modules/Wrappers/ApplicationEngine/include/otbWrapperParameterList.txx:226:20: erreur: parameter declared ‘auto’ [ this ]( auto p ) -> auto ^ /home/koleckt/OTB-6.6-test-compile/otb/Modules/Wrappers/ApplicationEngine/include/otbWrapperParameterList.txx:226:27: erreur: invalid use of ‘auto’ [ this ]( auto p ) -> auto ^ /home/koleckt/OTB-6.6-test-compile/otb/Modules/Wrappers/ApplicationEngine/include/otbWrapperParameterList.txx: In lambda function: /home/koleckt/OTB-6.6-test-compile/otb/Modules/Wrappers/ApplicationEngine/include/otbWrapperParameterList.txx:228:30: erreur: ‘p’ was not declared in this scope return this->ToString( p ); ^ /home/koleckt/OTB-6.6-test-compile/otb/Modules/Wrappers/ApplicationEngine/include/otbWrapperParameterList.txx: In member function ‘typename L::ObjectType* otb::Wrapper::ParameterList<T>::GetObjectList(L&, Get)’: /home/koleckt/OTB-6.6-test-compile/otb/Modules/Wrappers/ApplicationEngine/include/otbWrapperParameterList.txx:386:30: erreur: parameter declared ‘auto’ [ this_list, get ]( auto parameter ) -> void ^ /home/koleckt/OTB-6.6-test-compile/otb/Modules/Wrappers/ApplicationEngine/include/otbWrapperParameterList.txx: In lambda function: /home/koleckt/OTB-6.6-test-compile/otb/Modules/Wrappers/ApplicationEngine/include/otbWrapperParameterList.txx:395:22: erreur: ‘parameter’ was not declared in this scope DynamicCast< T >( parameter ) ^ At global scope: cc1plus: attention : option "-Wno-long-double" de la ligne de commande non reconnue [enabled by default] make[5]: *** [Modules/Wrappers/ApplicationEngine/src/CMakeFiles/OTBApplicationEngine.dir/otbWrapperApplicationHtmlDocGenerator.cxx.o] Erreur 1 make[4]: *** [Modules/Wrappers/ApplicationEngine/src/CMakeFiles/OTBApplicationEngine.dir/all] Erreur 2 make[3]: *** [all] Erreur 2 make[2]: *** [OTB/src/OTB-stamp/OTB-build] Erreur 2 make[1]: *** [CMakeFiles/OTB.dir/all] Erreur 2 make: *** [all] Erreur 2 -- This mailing will be abandoned soon in favor of a more friendly forum: https://forum.orfeo-toolbox.org Thanks to visit it for any question related to Orfeo Toolbox (OTB) usage, or to check the OTB FAQ: http://www.orfeo-toolbox.org/FAQ.html --- You received this message because you are subscribed to the Google Groups "otb-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to otb-users+unsubscr...@googlegroups.com<mailto:otb-users+unsubscr...@googlegroups.com>. For more options, visit https://groups.google.com/d/optout. -- This mailing will be abandoned soon in favor of a more friendly forum: https://forum.orfeo-toolbox.org Thanks to visit it for any question related to Orfeo Toolbox (OTB) usage, or to check the OTB FAQ: http://www.orfeo-toolbox.org/FAQ.html --- You received this message because you are subscribed to the Google Groups "otb-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to otb-users+unsubscr...@googlegroups.com<mailto:otb-users+unsubscr...@googlegroups.com>. For more options, visit https://groups.google.com/d/optout. -- This mailing will be abandoned soon in favor of a more friendly forum: https://forum.orfeo-toolbox.org Thanks to visit it for any question related to Orfeo Toolbox (OTB) usage, or to check the OTB FAQ: http://www.orfeo-toolbox.org/FAQ.html --- You received this message because you are subscribed to the Google Groups "otb-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to otb-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.