[gdal-dev] Build issue with GDAL 3.14 and 3.2.1, missing the GRIB driver

James Gallagher jgallagher at opendap.org
Wed Feb 24 10:44:21 PST 2021


Hi,

I’m trying to build GDAL 3.2.1 so that it includes only a few drivers. Previously I’ve been using GDAL 2.x and would like to upgrade to 3.x. When I configure and build, the GRIB driver is missing. Here’s how I’m configuring the build:

	PKG_CONFIG=$(openjpeg_prefix)/lib/pkgconfig \
	CPPFLAGS=-I$(proj_prefix)/include \
       OPENJPEG_CFLAGS="-I$(openjpeg_prefix)/include/openjpeg-2.4" \
	OPENJPEG_LIBS="-L$(openjpeg_prefix)/lib -lopenjp2" \
       ./configure $(CONFIGURE_FLAGS) --prefix=$(gdal4_prefix) --with-pic \
       --with-openjpeg --with-proj=$(proj_prefix) \
       --with-proj-extra-lib-for-test="-L$(prefix)/deps/lib -lsqlite3 -lstdc++" \
       --enable-driver-grib --disable-all-optional-drivers \
       --without-python --without-netcdf --without-hdf5 --without-hdf4 \
       --without-png --without-sqlite3 --without-pg --without-cfitsio

A little gnarly I know, bit I suspect the issue is '--enable-driver-grib --disable-all-optional-drivers.’ I tried both ordering of those two options, with the same results.

gdal-config —formats returns:
derived gtiff hfa mem vrt webp openjpeg jpeg2000 gif jpeg pcraster pcidsk

I’m building on OSX 11.2.1 using:

g++ --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 12.0.0 (clang-1200.0.32.29)
Target: x86_64-apple-darwin20.3.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

Thanks
—
James Gallagher
jgallagher at opendap.org



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: Message signed with OpenPGP
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20210224/d0ef5502/attachment.sig>


More information about the gdal-dev mailing list