[gdal-dev] Build GDAL for RedHat 7.9 with python bindings and non-default drivers

Roman Breitfuss-Schiffer roman.schiffer at gmail.com
Tue Jan 11 02:38:55 PST 2022


Dear all!

We are currently trying to build a GDAL/OGR installation (version >=3.1) 
for our server which operates on RedHat 7.9 (RHEL).

I have some experience with building GDAL on Ubuntu but have no working 
workflow for RHEL as the required packages and header files (e.g. 
gdal-libs, gdal-libs-devel, python-devel etc.) are not available for 
recent GDAL versions via yum.

*Problem 1: Does anyone have experience with building GDAL **(version 
 >=3.1)**on RHEL?*

We want to build with Python bindings and some non-default drivers (e.g. 
GPKG (raster), JP2OpenJPEG, MBTILES, WMS/WCS). I tried out the build on 
Ubuntu with the following ./configure:

./configure
   --prefix=/usr
   --libdir=/usr/lib64
   --with-armadillo=yes
   --with-sqlite3=yes
   --with-spatialite=yes
   --with-openjpeg
   --with-geos=yes
   --with-curl=/usr/bin/curl-config
   --with-python=yes
   --with-png=internal
   --with-jpeg=internal

*Problem 2: After running the ./configure command the GPKG (raster) 
driver and the JP2OpenJPEG driver are not listed in misc. gdal formats.
*

./configure output see attachment.

Best regards
Roman

  
_______________________________________________
Dipl.-Ing. Roman Breitfuss-Schiffer, MSc. (GIS)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20220111/b6b682f6/attachment.html>
-------------- next part --------------
GDAL is now configured for x86_64-pc-linux-gnu

  Installation directory:    /usr
  C compiler:                gcc -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -g -O2
  C++ compiler:              g++ -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -g -O2
  C++14 support:             no

  LIBTOOL support:           yes

  Armadillo support:         yes
  Blosc support:             no
  CFITSIO support:           external
  crypto/openssl support:    yes
  cryptopp support:          no
  cURL support (wms/wcs/...):yes
  DDS support:               no
  DODS support:              no
  ECW support:               no
  Expat support:             yes
  EXR support:               no
  FGDB support:              no
  FreeXL support:            yes
  GEORASTER support:         no
  GEOS support:              yes
  Google libkml support:     yes
  GRASS support:             no
  GTA support:               no
  HDF4 support:              yes
  HDF5 support:              yes
  JXL support:               no
  HDFS support:              no
  HEIF support:              no
  INFORMIX DataBlade support:no
  Ingres support:            no
  JP2Lura support:           no
  JPEG 12 bit:               yes
  JPEG-in-TIFF 12 bit:       no
  JPEG JasPer support:       no
  JPEG-Lossless/CharLS:      yes
  Kakadu support:            no
  Kea support:               no
  LERC support:              internal
  libbrunsli support:        no
  libdeflate support:        no
  LIBGEOTIFF support:        external
  LIBGIF support:            external
  LIBJPEG support:           internal
  LIBLZMA support:           no
  LIBPNG support:            internal
  LIBTIFF support:           external (BigTIFF=yes)
  libxml2 support:           yes
  LIBZ support:              external
  LZ4 support:               no
  MDB support:               no
  MongoCXX v3 support:       no
  MongoDB support:           no
  MrSID/MG4 Lidar support:   no
  MrSID support:             no
  MSG support:               no
  MySQL support:             no
  NetCDF has netcdf_mem.h:   yes
  NetCDF support:            yes
  OCI support:               no
  ODBC support:              yes
  OGDI support:              yes
  OpenCL support:            no
  OpenJPEG support:          yes
  PCIDSK support:            internal
  PCRaster support:          internal
  PCRE support:              yes
  PCRE2 support:             no
  PDFium support:            no
  Podofo support:            no
  Poppler support:           no
  PostgreSQL support:        yes
  QHull support:             external
  Rasdaman support:          no
  RasterLite2 support:       no
  RDB support:               no
  SFCGAL support:
  SOSI support:              no
  SpatiaLite support:        yes
  SQLite support:            yes
  Teigha (DWG and DGNv8):    no
  TileDB support:            no
  userfaultfd support:       yes
  WebP support:              yes
  Xerces-C support:          yes
  ZSTD support:              yes


  misc. gdal formats:        aaigrid adrg aigrid airsar arg blx bmp bsb cals ceos ceos2 coasp cosar ctg dimap dted elas envisat ers esric fit gff gsg gxf hf2 idrisi ilwis ingr iris iso8211 jaxapalsar jdem kmlsuperoverlay l1b leveller map mrf msgn ngsgeoid nitf northwood pds prf r raw rmf rs2 safe saga sdts sentinel2 sgi sigdem srtmhgt stacit stacta terragen tga til tsx usgsdem xpm xyz zarr zmap rik ozi eeda plmosaic rda wcs wms wmts daas ogcapi rasterlite mbtiles grib pdf
  misc. ogr formats:         arcgen avc cad csv dgn dxf edigeo flatgeobuf geoconcept georss gml gmt gpsbabel gpx gtm jml mapml mvt ntf openfilegdb pgdump rec s57 selafin shape svg sxf tiger vdv wasp idrisi pds sdts amigocloud carto cloudant couchdb csw elastic ngw plscenes wfs gpkg vfk osm nas ili gmlas ods xlsx lvbag odbc pgeo mssqlspatial geomedia walk

  disabled gdal formats:
  disabled ogr formats:

  SWIG Bindings:             python

  PROJ >= 6:                 yes
  enable GNM building:       yes
  enable pthread support:    yes
  enable POSIX iconv support:yes
  hide internal symbols:     no


More information about the gdal-dev mailing list