Thank you so much Jordi, finaly it works :) , using this cmd (ccmake
-DCMAKE_CXX_FLAGS:STRING=-std=c++14 path_to_tutorial_src)

2016-07-21 2:19 GMT-04:00 Jordi Inglada <[email protected]>:

> Hi,
>
> I am not sure what's happening here, but if you used my tutorial, you may
> have compiled using std=c++14. Try using the same when configuring your
> HelloWorld tutorial:
>
> ccmake -DCMAKE_CXX_FLAGS:STRING=-std=c++14 path_to_tutorial_src
>
> Jordi
>
> Marwen Bdiri <[email protected]> wrote:
> >
> > hi everyone, I'm trying to compile OTB Hello World exemple delivered in
> OTBSoftwareGuide, but it doesn't work :/ please, if you have any idea about
> these erreurs, help me
> >
> > I compile OTB from source following steps of jordin inglada in this tuto
> (
> http://jordiinglada.net/wp/2015/05/27/installing-otb-has-never-been-so-easy-8/),
> using debian8.
> >
> > This is the cmakefile:
> >
> ****************************************************************************
> > PROJECT(Tutorials)
> > cmake_minimum_required(VERSION 2.6)
> > FIND_PACKAGE(OTB)
> > IF(OTB_FOUND)
> > INCLUDE(${OTB_USE_FILE})
> > ELSE(OTB_FOUND)
> > MESSAGE(FATAL_ERROR
> > "Cannot build OTB project without OTB.Please set OTB_DIR.")
> > ENDIF(OTB_FOUND)
> >
> > ADD_EXECUTABLE(HelloWorldOTB HelloWorldOTB.cxx )
> > TARGET_LINK_LIBRARIES(HelloWorldOTB ${OTB_LIBRARIES})
> >
> ******************************************************************************
> > and there the erreurs when i use "make" cmd:
> >
> >
> ***************************************************************************
> > ^
> > /home/otb/OTB/SuperBuild/include/ITK-4.10/itkImageRegion.hxx:118:28:
> error: ‘const class itk::ImageRegion<2u>’ has no member named ‘GetSize’
> > os << indent << "Size: " << this->GetSize() << std::endl;
> > ^
> > CMakeFiles/HelloWorldOTB.dir/build.make:54: recipe for target
> 'CMakeFiles/HelloWorldOTB.dir/HelloWorldOTB.cxx.o' failed
> > make[2]: *** [CMakeFiles/HelloWorldOTB.dir/HelloWorldOTB.cxx.o] Error 1
> > CMakeFiles/Makefile2:60: recipe for target
> 'CMakeFiles/HelloWorldOTB.dir/all' failed
> > make[1]: *** [CMakeFiles/HelloWorldOTB.dir/all] Error 2
> > Makefile:76: recipe for target 'all' failed
> > make: *** [all] Error 2
> >
> *********************************************************************************
> >
> > --
>
> --
> --
> Check the OTB FAQ at
> http://www.orfeo-toolbox.org/FAQ.html
>
> You received this message because you are subscribed to the Google
> Groups "otb-users" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/otb-users?hl=en
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "otb-users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/otb-users/T_jVQXX8zYk/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
Check the OTB FAQ at
http://www.orfeo-toolbox.org/FAQ.html

You received this message because you are subscribed to the Google
Groups "otb-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/otb-users?hl=en
--- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to