[gdal-dev] installing gdal in CentOS

Markus Neteler neteler at osgeo.org
Mon Apr 1 04:10:37 PDT 2019


Hi,

On Fri, Mar 22, 2019 at 12:02 AM Thomas Gertin <tgertin at vt.edu> wrote:
>
> Hello,
>
> Does anybody know how to install gdal in CentOS?

While Fedora EPEL7 only offers a GDAL 1.x package, I am trying to
compile GDAL 2.3 in order to provide it as a RPM package:

https://copr.fedorainfracloud.org/coprs/neteler/GDAL/

However, compilation is still struggling with the pdf/ driver:

https://copr-be.cloud.fedoraproject.org/results/neteler/GDAL/epel-7-x86_64/00875120-gdal/builder-live.log
[...]

make[2]: Entering directory `/builddir/build/BUILD/gdal-2.3.2-fedora/frmts/pdf'
/bin/sh /builddir/build/BUILD/gdal-2.3.2-fedora/libtool --mode=compile
--silent --tag=CXX g++ -std=c++11
-I/builddir/build/BUILD/gdal-2.3.2-fedora/port
-I/builddir/build/BUILD/gdal-2.3.2-fedora/gcore
-I/builddir/build/BUILD/gdal-2.3.2-fedora/alg
-I/builddir/build/BUILD/gdal-2.3.2-fedora/ogr
-I/builddir/build/BUILD/gdal-2.3.2-fedora/ogr/ogrsf_frmts
-I/builddir/build/BUILD/gdal-2.3.2-fedora/gnm
-I/builddir/build/BUILD/gdal-2.3.2-fedora/apps
-DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -O2 -g -pipe
-Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong
--param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic
-fpic -I/usr/include/libgeotiff -I/usr/include/tirpc  -Wall -Wextra
-Winit-self -Wunused-parameter -Wformat -Werror=format-security
-Wno-format-nonliteral -Wlogical-op -Wshadow -Werror=vla
-Wmissing-declarations -Wnon-virtual-dtor -Woverloaded-virtual
-fno-operator-names -Wzero-as-null-pointer-constant  -I../vrt -I../mem
-I../../ogr/ogrsf_frmts/mem -DGNM_ENABLED -I/usr/include/libgeotiff
-I/usr/include/tirpc -I/builddir/build/BUILD/gdal-2.3.2-fedora/port
-I/usr/include/openjpeg-2.3   -I/usr/include -Iexternal/include
-I/usr/include/cfitsio  -DGDAL_COMPILATION -DHAVE_XERCES
-I/usr/include -I/usr/include/xercesc -I/usr/include/libgeotiff
-I/usr/include/tirpc -I/builddir/build/BUILD/gdal-2.3.2-fedora/port
-I/usr/include/openjpeg-2.3   -I/usr/include -Iexternal/include
-I/usr/include/cfitsio  -DGDAL_COMPILATION -DHAVE_POPPLER
-DPOPPLER_HAS_OPTCONTENT -DPOPPLER_BASE_STREAM_HAS_TWO_ARGS
-DPOPPLER_0_20_OR_LATER -DPOPPLER_0_23_OR_LATER -I/usr/include
-I/usr/include/poppler   -DDO_NOT_USE_DEBUG_BOOL -c -o
../o/pdfdataset.lo pdfdataset.cpp
/bin/sh /builddir/build/BUILD/gdal-2.3.2-fedora/libtool --mode=compile
--silent --tag=CXX g++ -std=c++11 -DHAVE_AVX_AT_COMPILE_TIME
-DHAVE_SSSE3_AT_COMPILE_TIME -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong
--param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic
-fpic -I/usr/include/libgeotiff -I/usr/include/tirpc  -Wall -Wextra
-Winit-self -Wunused-parameter -Wformat -Werror=format-security
-Wno-format-nonliteral -Wlogical-op -Wshadow -Werror=vla
-Wmissing-declarations -Wnon-virtual-dtor -Woverloaded-virtual
-fno-operator-names -Wzero-as-null-pointer-constant  -I. -I.. -I../..
-DGNM_ENABLED -I/usr/include/libgeotiff -I/usr/include/tirpc
-I/builddir/build/BUILD/gdal-2.3.2-fedora/port
-I/usr/include/openjpeg-2.3   -I/usr/include -Iexternal/include
-I/usr/include/cfitsio  -DGDAL_COMPILATION -DHAVE_XERCES
-I/usr/include -I/usr/include/xercesc -I/usr/include/libgeotiff
-I/usr/include/tirpc -I/builddir/build/BUILD/gdal-2.3.2-fedora/port
-I/usr/include/openjpeg-2.3   -I/usr/include -Iexternal/include
-I/usr/include/cfitsio  -DGDAL_COMPILATION -c -o ../../o/cadobjects.lo
cadobjects.cpp
pdfdataset.cpp: In member function 'void PDFDataset::FindLayersPoppler()':
pdfdataset.cpp:3444:31: error: no matching function for call to
'begin(GooList* const&)'
         for (const auto &oc : ocgList) {
                               ^
pdfdataset.cpp:3444:31: note: candidates are:
In file included from /usr/include/c++/4.8.2/string:51:0,
                 from /usr/include/c++/4.8.2/stdexcept:39,
                 from /usr/include/c++/4.8.2/array:38,
                 from /usr/include/c++/4.8.2/tuple:39,
                 from /usr/include/c++/4.8.2/bits/stl_map.h:63,
                 from /usr/include/c++/4.8.2/map:61,
                 from gdal_pdf.h:46,
                 from pdfdataset.cpp:36:
/usr/include/c++/4.8.2/bits/range_access.h:87:5: note: template<class
_Tp, long unsigned int _Nm> _Tp* std::begin(_Tp (&)[_Nm])
     begin(_Tp (&__arr)[_Nm])
     ^
/usr/include/c++/4.8.2/bits/range_access.h:87:5: note:   template
argument deduction/substitution failed:
pdfdataset.cpp:3444:31: note:   mismatched types '_Tp [_Nm]' and
'GooList* const'
         for (const auto &oc : ocgList) {
                               ^
In file included from /usr/include/c++/4.8.2/string:51:0,
                 from /usr/include/c++/4.8.2/stdexcept:39,
                 from /usr/include/c++/4.8.2/array:38,
                 from /usr/include/c++/4.8.2/tuple:39,
                 from /usr/include/c++/4.8.2/bits/stl_map.h:63,
                 from /usr/include/c++/4.8.2/map:61,
                 from gdal_pdf.h:46,
                 from pdfdataset.cpp:36:
/usr/include/c++/4.8.2/bits/range_access.h:58:5: note: template<class
_Container> decltype (__cont.begin()) std::begin(const _Container&)
     begin(const _Container& __cont) -> decltype(__cont.begin())
     ^
/usr/include/c++/4.8.2/bits/range_access.h:58:5: note:   template
argument deduction/substitution failed:
/usr/include/c++/4.8.2/bits/range_access.h: In substitution of
'template<class _Container> decltype (__cont.begin()) std::begin(const
_Container&) [with _Container = GooList*]':
pdfdataset.cpp:3444:31:   required from here
/usr/include/c++/4.8.2/bits/range_access.h:58:5: error: request for
member 'begin' in '__cont', which is of pointer type 'GooList* const'
(maybe you meant to use '->' ?)
/usr/include/c++/4.8.2/bits/range_access.h:48:5: note: template<class
_Container> decltype (__cont.begin()) std::begin(_Container&)
     begin(_Container& __cont) -> decltype(__cont.begin())
     ^
[...]

Any hints for that?

thanks
Markus

-- 
Markus Neteler, PhD
https://www.mundialis.de - free data with free software
https://grass.osgeo.org
https://courses.neteler.org/blog


More information about the gdal-dev mailing list