ARPA-SIMC / meteosatlib

OpenMTP/HRI/HRIT C++ access libraries, gdal drivers and other tools
GNU General Public License v2.0
8 stars 2 forks source link

class GDALOpenInfo has no member named papszOpenOptions #7

Closed brancomat closed 7 years ago

brancomat commented 7 years ago

only with gdal 1.10 (on f20), working with gdal 2.0 (on f24)

should this be problematic we could drop support for gdal < 2.0 starting from meteosatlib 1.8, but I'd prefer mantain backward compatibility if it's possible

libtool: compile:  g++ -DHAVE_CONFIG_H -I.. -I.. -Werror -I/usr/include/gdal -I/usr/include/gdal -I/usr/include/gdal -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -Wall -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -std=c++11 -c reflectance/pixeltolatlon.cpp  -fPIC -DPIC -o reflectance/.libs/libmsatdrv_la-pixeltolatlon.o
libtool: compile:  g++ -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -Wall -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -std=c++11 -c msatgdalplugin.cpp -o msatgdalplugin.o >/dev/null 2>&1
utils.cpp: In function 'GDALDataset* msat::gdal::add_extras(GDALDataset*, GDALOpenInfo*)':
utils.cpp:17:33: error: 'class GDALOpenInfo' has no member named 'papszOpenOptions'
     int idx = CSLFindName(info->papszOpenOptions, "MSAT_COMPUTE");
                                 ^
utils.cpp:19:45: error: 'class GDALOpenInfo' has no member named 'papszOpenOptions'
     std::string val(CPLParseNameValue(info->papszOpenOptions[idx], nullptr));
                                             ^
make[2]: *** [libmsatdrv_la-utils.lo] Error 1
spanezz commented 7 years ago

Closing as duplicate of #6