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

2022-07-16 Thread Even Rouault

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 
 -> osgeo
#26 179.4 copying 
build/lib.linux-x86_64-3.10/osgeo/_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 
 -> osgeo
#26 179.4 copying 
build/lib.linux-x86_64-3.10/osgeo/_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 
 -> osgeo
#26 179.4 copying 
build/lib.linux-x86_64-3.10/osgeo/_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 
 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/
    

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


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

2022-07-14 Thread Travis Featherston
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 -> osgeo
#26 179.4 copying build/lib.linux-x86_64-3.10/osgeo/_
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 -> osgeo
#26 179.4 copying build/lib.linux-x86_64-3.10/osgeo/_
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 -> osgeo
#26 179.4 copying build/lib.linux-x86_64-3.10/osgeo/_
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 
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/
>  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 
> listgdal-dev@lists.osgeo.orghttps://lists.osgeo.org/mailman/listinfo/gdal-dev
>
> -- 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


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

2022-07-14 Thread Even Rouault

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/
    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.
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev


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

2022-07-13 Thread Travis Featherston
I fully intend to switch over, just have some legacy deliveries in place
that aren't ready to switch without some testing.

On Wed, Jul 13, 2022, 8:37 PM Nyall Dawson  wrote:

> On Thu, 14 Jul 2022 at 10:21, Travis Featherston  wrote:
> >
> > 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
>
> Slightly off topic response: Is there a particularly compelling reason
> you want the FileGDB driver over the OpenFileGDB driver? On GDAL
> master builds the open driver is better in almost every way :D
>
> Nyall
>
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev


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

2022-07-13 Thread Nyall Dawson
On Thu, 14 Jul 2022 at 10:21, Travis Featherston  wrote:
>
> 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

Slightly off topic response: Is there a particularly compelling reason
you want the FileGDB driver over the OpenFileGDB driver? On GDAL
master builds the open driver is better in almost every way :D

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