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 clone 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:
Scanning dependencies of target OTBApplicationsCommon
Scanning dependencies of target OTBProcessingChain
Scanning dependencies of target otbOrthoInfo
[ 1%] [ 2%] Building CXX object Legacy/Common/CMakeFiles/
OTBApplicationsCommon.dir/foo.cxx.o
[ 4%] [ 5%] Building CXX object ApplicationGenerators/ProcessingChain/
CMakeFiles/OTBProcessingChain.dir/otbApplicationOptions.cxx.o
Building CXX object ApplicationGenerators/ProcessingChain/CMakeFiles/
OTBProcessingChain.dir/otbApplicationDescriptor.cxx.o
Building CXX object Projections/CMakeFiles/otbOrthoInfo.dir/otbOrthoInfo.cxx
.o
Linking CXX shared library ../../bin/libOTBApplicationsCommon.so
[ 5%] Built target OTBApplicationsCommon
In file 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;
^
In file 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::Pointer otb::ApplicationOptionsResult::Clone()
const’
Pointer Clone() const \
^
/usr/local/include/ITK-4.6/itkMacro.h:161:3: note: in expansion of macro ‘
itkCloneMacro’
itkCloneMacro(x)
^
/home/riru/workspace/OTB42RC/OTB-Applications/ApplicationGenerators/
ProcessingChain/otbApplicationOptions.h:47:3: note: in expansion 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 not match any in class ‘otb::ApplicationOptionsResult’
ApplicationOptionsResult* ApplicationOptionsResult
^
In file 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::Pointer otb::ApplicationOptionsResult::Clone()
const
Pointer Clone() const \
^
/usr/local/include/ITK-4.6/itkMacro.h:161:3: note: in expansion of macro ‘
itkCloneMacro’
itkCloneMacro(x)
^
/home/riru/workspace/OTB42RC/OTB-Applications/ApplicationGenerators/
ProcessingChain/otbApplicationOptions.h:47:3: note: in expansion of macro ‘
itkNewMacro’
itkNewMacro(Self);
^
/home/riru/workspace/OTB42RC/OTB-Applications/ApplicationGenerators/
ProcessingChain/otbApplicationOptions.cxx: In member function ‘std::string
otb::ApplicationOptionsResult::GetParameterString(std::string, unsigned int)
const’:
/home/riru/workspace/OTB42RC/OTB-Applications/ApplicationGenerators/
ProcessingChain/otbApplicationOptions.cxx:70:5: error: ‘OStringStream’ is
not a member of ‘itk’
itk::OStringStream msg;
^
/home/riru/workspace/OTB42RC/OTB-Applications/ApplicationGenerators/
ProcessingChain/otbApplicationOptions.cxx:70:24: error: expected ‘;’ before
‘msg’
itk::OStringStream msg;
^
/home/riru/workspace/OTB42RC/OTB-Applications/ApplicationGenerators/
ProcessingChain/otbApplicationOptions.cxx:71:5: error: ‘msg’ was not
declared in this scope
msg << "GetParameterString(): The following '" << option << "' option
is unknown !!";
^
make[2]: *** [ApplicationGenerators/ProcessingChain/CMakeFiles/
OTBProcessingChain.dir/otbApplicationOptions.cxx.o] Fehler 1
make[2]: *** Warte auf noch nicht beendete Prozesse...
make[1]: *** [ApplicationGenerators/ProcessingChain/CMakeFiles/
OTBProcessingChain.dir/all] Fehler 2
make[1]: *** Warte auf noch nicht beendete Prozesse...
Linking CXX executable ../bin/otbOrthoInfo
[ 5%] Built target otbOrthoInfo
make: *** [all] Fehler 2
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].
For more options, visit https://groups.google.com/d/optout.