OK, I've updated the PR with a working tested fix now.

Le 14/07/2022 à 18:00, Travis Featherston a écrit :
Even,

Now I'm getting build errors

git fetch origin pull/6079/head:test
git checkout test
Edit docker/ubuntu-full/Dockerfile; set ARG WITH_FILEGDB=yes
*ubuntu-full/build.sh --release --gdal v3.5.1 --proj master*
...
#26 179.4 copying build/lib.linux-x86_64-3.10/osgeo/_gdal.cpython-310-x86_64-linux-gnu.so <http://gdal.cpython-310-x86_64-linux-gnu.so> -> osgeo #26 179.4 copying build/lib.linux-x86_64-3.10/osgeo/_gdalconst.cpython-310-x86_64-linux-gnu.so <http://gdalconst.cpython-310-x86_64-linux-gnu.so> -> osgeo #26 179.4 copying build/lib.linux-x86_64-3.10/osgeo/_osr.cpython-310-x86_64-linux-gnu.so <http://osr.cpython-310-x86_64-linux-gnu.so> -> osgeo #26 179.4 copying build/lib.linux-x86_64-3.10/osgeo/_ogr.cpython-310-x86_64-linux-gnu.so <http://ogr.cpython-310-x86_64-linux-gnu.so> -> osgeo #26 179.4 copying build/lib.linux-x86_64-3.10/osgeo/_gnm.cpython-310-x86_64-linux-gnu.so <http://gnm.cpython-310-x86_64-linux-gnu.so> -> osgeo #26 179.4 copying build/lib.linux-x86_64-3.10/osgeo/_gdal_array.cpython-310-x86_64-linux-gnu.so <http://gdal_array.cpython-310-x86_64-linux-gnu.so> -> osgeo
#26 179.4 [ 93%] Built target python_binding
#26 179.4 make: *** [Makefile:146: all] Error 2
------
*executor failed running [/bin/sh -c . /buildscripts/bh-set-envvars.**sh     && /buildscripts/bh-gdal.sh]: exit code: 2*

If I try a non release master build I get something totally different
ubuntu-full/build.sh --gdal master --proj master
or
ubuntu-full/build.sh
Error response from daemon: network mode "docker_build_gdal" not supported by buildkit







On Thu, Jul 14, 2022 at 2:00 AM Even Rouault <even.roua...@spatialys.com> wrote:

    Travis,

    Can you try the patch at https://github.com/OSGeo/gdal/pull/6079 ?
    (the FileGDB part wasn't correctly ported when the Docker images
    have been ported to CMake builds)

    Even

    Le 14/07/2022 à 02:20, Travis Featherston a écrit :
    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















    _______________________________________________
    gdal-dev mailing list
    gdal-dev@lists.osgeo.org
    https://lists.osgeo.org/mailman/listinfo/gdal-dev

-- http://www.spatialys.com
    My software is free, but my time generally not.

--
http://www.spatialys.com
My software is free, but my time generally not.
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to