Hi Robin,

The "OTB-Applications" repository is not maintained since release 3.20. The compilation errors you get should come from the API change in ITK (starting from version 4.0, OTB is using ITK v4, instead of v3). If you wish to compile this repository, you should use OTB version 3.20 .

However, it might be easier for you to use the set of applications that are already integrated in the main OTB repository (since you have compiled OTB4.2RC, you should see those applications in your build directory).

Regards,
Guillaume

Le 26/08/2014 13:28, Robin Holler a écrit :
Hello,

i already spent a lot of hours to make it work, but I just don't have success ... I want to build OTB-Applications. Building OTB4 and OTB4.2RC went well. But the Applications always throw the same Const-Overload-Error. I first compiled and installed ITK 4.6, then I did

|
hg clonehttp://hg.orfeo-toolbox.org/OTB-Applications <http://hg.orfeo-toolbox.org/OTB-Applications>
|

 and called ccmake; giving

|
 BUILD_SHARED_LIBS    ON
 BUILD_TESTING                    OFF
 CMAKE_BUILD_TYPE
 CMAKE_INSTALL_PREFIX /usr/local
 GDAL_CONFIG /usr/bin/gdal-config
 GDAL_INCLUDE_DIR /usr/include/gdal
GDAL_LIBRARY /usr/lib/libgdal.so ITK_DIR /usr/local/lib/cmake/ITK-4.6 OTB_APPLICATION_LAUNCHER /usr/local/bin/otbApplicationLauncherCommandLine
 OTB_DIR /usr/local/lib/otb
 OTB_ENABLE_LEGACY                ON
 OTB_TEST_DRIVER /usr/local/bin/otbTestDriver
 OTB_USE_QGIS                     OFF
 OTB_USE_QT                       OFF
 OTB_USE_VTK                      OFF
|

configure, generate, and finally make -j4 .... it starts to build, but fails as follows:

|
Scanningdependencies of target OTBApplicationsCommon
Scanningdependencies of target OTBProcessingChain
Scanningdependencies of target otbOrthoInfo
[1%][2%]BuildingCXX objectLegacy/Common/CMakeFiles/OTBApplicationsCommon.dir/foo.cxx.o [4%][5%]BuildingCXX objectApplicationGenerators/ProcessingChain/CMakeFiles/OTBProcessingChain.dir/otbApplicationOptions.cxx.o BuildingCXX objectApplicationGenerators/ProcessingChain/CMakeFiles/OTBProcessingChain.dir/otbApplicationDescriptor.cxx.o BuildingCXX objectProjections/CMakeFiles/otbOrthoInfo.dir/otbOrthoInfo.cxx.o
LinkingCXX shared library ../../bin/libOTBApplicationsCommon.so
[5%]Builttarget OTBApplicationsCommon
Infile included from/home/riru/workspace/OTB42RC/OTB-Applications/ApplicationGenerators/ProcessingChain/otbApplicationOptions.cxx:18:0: /home/riru/workspace/OTB42RC/OTB-Applications/ApplicationGenerators/ProcessingChain/otbApplicationOptions.h:50:29:error:‘otb::ApplicationOptionsResult*otb::ApplicationOptionsResult::Clone()const’cannot be overloaded
ApplicationOptionsResult*Clone()const;
^
Infile included from/usr/local/include/ITK-4.6/itkLightObject.h:21:0,
from/usr/local/include/ITK-4.6/itkObject.h:31,
from/usr/local/include/ITK-4.6/itkDataObject.h:31,
from/usr/local/include/ITK-4.6/itkProcessObject.h:31,
from/home/riru/workspace/OTB42RC/OTB-Applications/ApplicationGenerators/ProcessingChain/otbApplicationOptions.h:27,
from/home/riru/workspace/OTB42RC/OTB-Applications/ApplicationGenerators/ProcessingChain/otbApplicationOptions.cxx:18:
/usr/local/include/ITK-4.6/itkMacro.h:184:11:error:with‘otb::ApplicationOptionsResult::Pointerotb::ApplicationOptionsResult::Clone()const’
PointerClone()const\
^
/usr/local/include/ITK-4.6/itkMacro.h:161:3:note:inexpansion of macro ‘itkCloneMacro’
   itkCloneMacro(x)
^
/home/riru/workspace/OTB42RC/OTB-Applications/ApplicationGenerators/ProcessingChain/otbApplicationOptions.h:47:3:note:inexpansion of macro ‘itkNewMacro’
   itkNewMacro(Self);
^
/home/riru/workspace/OTB42RC/OTB-Applications/ApplicationGenerators/ProcessingChain/otbApplicationOptions.cxx:28:27:error:prototype for‘otb::ApplicationOptionsResult*otb::ApplicationOptionsResult::Clone()const’does notmatch any inclass‘otb::ApplicationOptionsResult’
ApplicationOptionsResult*ApplicationOptionsResult
^
Infile included from/usr/local/include/ITK-4.6/itkLightObject.h:21:0,
from/usr/local/include/ITK-4.6/itkObject.h:31,
from/usr/local/include/ITK-4.6/itkDataObject.h:31,
from/usr/local/include/ITK-4.6/itkProcessObject.h:31,
from/home/riru/workspace/OTB42RC/OTB-Applications/ApplicationGenerators/ProcessingChain/otbApplicationOptions.h:27,
from/home/riru/workspace/OTB42RC/OTB-Applications/ApplicationGenerators/ProcessingChain/otbApplicationOptions.cxx:18:
/usr/local/include/ITK-4.6/itkMacro.h:184:11:error:candidate is:otb::ApplicationOptionsResult::Pointerotb::ApplicationOptionsResult::Clone()const
PointerClone()const\
^
/usr/local/include/ITK-4.6/itkMacro.h:161:3:note:inexpansion of macro ‘itkCloneMacro’
   itkCloneMacro(x)
^
/home/riru/workspace/OTB42RC/OTB-Applications/ApplicationGenerators/ProcessingChain/otbApplicationOptions.h:47:3:note:inexpansion of macro ‘itkNewMacro’
   itkNewMacro(Self);
^
/home/riru/workspace/OTB42RC/OTB-Applications/ApplicationGenerators/ProcessingChain/otbApplicationOptions.cxx:Inmember function‘std::stringotb::ApplicationOptionsResult::GetParameterString(std::string,unsignedint)const’: /home/riru/workspace/OTB42RC/OTB-Applications/ApplicationGenerators/ProcessingChain/otbApplicationOptions.cxx:70:5:error:‘OStringStream’isnota member of ‘itk’
     itk::OStringStreammsg;
^
/home/riru/workspace/OTB42RC/OTB-Applications/ApplicationGenerators/ProcessingChain/otbApplicationOptions.cxx:70:24:error:expected ‘;’before ‘msg’
     itk::OStringStreammsg;
^
/home/riru/workspace/OTB42RC/OTB-Applications/ApplicationGenerators/ProcessingChain/otbApplicationOptions.cxx:71:5:error:‘msg’was notdeclared inthisscope msg <<"GetParameterString(): The following '"<<option <<"' option is unknown !!";
^
make[2]:***[ApplicationGenerators/ProcessingChain/CMakeFiles/OTBProcessingChain.dir/otbApplicationOptions.cxx.o]Fehler1
make[2]:***Warteauf noch nicht beendete Prozesse...
make[1]:***[ApplicationGenerators/ProcessingChain/CMakeFiles/OTBProcessingChain.dir/all]Fehler2
make[1]:***Warteauf noch nicht beendete Prozesse...
LinkingCXX executable ../bin/otbOrthoInfo
[5%]Builttarget otbOrthoInfo
make:***[all]Fehler2
|

Anyone knows what is the reason for this? Wrong ITK-Path? Seems something is misbehaving with ITK and OTB? Tried OTB4, OTB4.2RC, ITK 4.5 and ITK 4.6 .... but it's always the same and I must do something wrong?

Please help, thank you,
Robin
--
--
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] <mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.


--
<www.c-s.fr>      *Guillaume PASERO*
Ingénieur d'études et développement
*Business Unit E-SPACE & Geo Information* <https://thor.si.c-s.fr/blogs/cs-blogs-business/>*- Département APPLICATIONS*

*CS Systèmes d'Information*
Parc de la Grande Plaine - 5, Rue Brindejonc des Moulinais - BP 15872
31506 Toulouse Cedex 05 - FRANCE
+33 561 17 64 21 - [email protected]

--
--
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