missing include in otbGDALimageIO.h
Mantis Issue 340, reported by cmoisy, assigned to jmalik, created: 2011-06-15
compilation blocks because of missing includes in otbGDALimageIO.h cuurrent file beginning : ifndef __otbGDALImageIO_h #define __otbGDALImageIO_h
/* C++ Libraries */ #include
/* ITK Libraries */ #include "itkImageIOBase.h"
namespace otb
Doxygen version :
#ifndef __otbGDALImageIO_h 00019 #define __otbGDALImageIO_h 00020 00021 #ifdef _MSC_VER 00022 #pragma warning ( disable : 4786 ) 00023 #endif 00024 00025 /* C++ Libraries / 00026 #include 00027 #include "stdlib.h" 00028 00029 / ITK Libraries / 00030 #include "itkImageIOBase.h" 00031 00032 / GDAL Libraries */ 00033 #include "gdal.h" 00034 #include "gdal_priv.h" 00035 #include "cpl_string.h" 00036 #include "cpl_conv.h" 00037 #include "ogr_spatialref.h" 00038 #include "ogr_srs_api.h" 00039 00040 namespace otb
1308183032 - christopThese include were removed on purpose (we want to limit the compile-time dependencies for projects using OTB).
What compilation error do you have?
1308238514 - chmoisyhere is the full error [ 89%] Building CXX object Code/IO/CMakeFiles/OTBIO.dir/otbGDALImageIO.cxx.o /opt/OTB-dev/OTB/Code/IO/otbGDALImageIO.cxx: In member function ‘virtual void otb::GDALImageIO::Read(void*)’: /opt/OTB-dev/OTB/Code/IO/otbGDALImageIO.cxx:252: error: cannot convert ‘otb::GDALDataTypeWrapper*’ to ‘GDALDataType’ for argument ‘1’ to ‘int GDALDataTypeIsComplex(GDALDataType)’ /opt/OTB-dev/OTB/Code/IO/otbGDALImageIO.cxx:262: error: cannot convert ‘otb::GDALDataTypeWrapper*’ to ‘GDALDataType’ for argument ‘1’ to ‘int GDALDataTypeIsComplex(GDALDataType)’ /opt/OTB-dev/OTB/Code/IO/otbGDALImageIO.cxx:263: error: no match for ‘operator!=’ in ‘((otb::GDALImageIO*)this)->otb::GDALImageIO::m_PxType != (GDALDataType)10u’ /opt/OTB-dev/OTB/Code/IO/otbGDALImageIO.cxx:264: error: no match for ‘operator!=’ in ‘((ot