[gdal-dev] ESRI FileGDB not available in Docker ubuntu-full after enabling WITH_FILEGDB

Travis Featherston bespin at gmail.com
Wed Jul 13 17:20:27 PDT 2022


I'm unable to see the ESRI FileGDB driver after enabling it in the
Dockerfile

Steps
1) git clone https://github.com/OSGeo/gdal.git
2) Edit docker/ubuntu-full/Dockerfile; set ARG WITH_FILEGDB=yes
3) ubuntu-full/build.sh --release --gdal v3.5.1 --proj master
4) docker run --rm osgeo/gdal:ubuntu-full-v3.5.1 ogr2ogr --formats |grep -i
gdb

Result
It seems to build successfully without any warning/errors but only the Open
driver is available.
OpenFileGDB -vector- (rov): ESRI FileGDB

Digging into the dockerfile and images ...

osgeo/gdal:ubuntu-full-v3.5.1_builder
  /usr/local/FileGDB_API/lib/
    libFileGDBAPI.so  libfgdbunixrtl.a  libfgdbunixrtl.so

  /build_thirdparty/usr/lib/
    libFileGDBAPI.so  libfgdbunixrtl.a  libfgdbunixrtl.so

  /usr/local/FileGDB_API/include/
    FileGDBAPI.h  FileGDBCore.h  Geodatabase.h  GeodatabaseManagement.h
 Raster.h  Row.h  Table.h  Util.h  make.include

  /usr/include/
    FileGDBAPI.h  FileGDBCore.h  Geodatabase.h  GeodatabaseManagement.h
 Raster.h  Row.h  Table.h  Util.h  make.include

osgeo/gdal:ubuntu-full-v3.5.1
  /usr/lib
    libFileGDBAPI.so  libfgdbunixrtl.a  libfgdbunixrtl.so

  /usr/include/
    <none of the header files are here, were they only needed during the
gdal compile?>

Is there a disconnect between these two lines in the docker file?
Line #175 && cp /usr/local/FileGDB_API/include/* /usr/include \
Line #319 COPY --from=builder /build/usr/include/ /usr/include/


Any thoughts?

My local env is wsl2 Ubuntu 22.04, with buildkit enabled

Thanks,
Travis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20220713/4291c02d/attachment.htm>


More information about the gdal-dev mailing list