Re: [gdal-dev] GDAL compilation with driver OGR_PG

2022-11-28 Thread Even Rouault
https://github.com/OSGeo/gdal/pull/6816 should make it much more obvious with an explicit fatal error when explicitly enabling a driver whose requirements are not met. Le 28/11/2022 à 17:47, Johannes Paul a écrit : Perfect ! Thank you very much. Johannes On Mon, 28 Nov 2022 at 16:16, Even Rou

Re: [gdal-dev] GDAL compilation with driver OGR_PG

2022-11-28 Thread Johannes Paul
Perfect ! Thank you very much. Johannes On Mon, 28 Nov 2022 at 16:16, Even Rouault wrote: > Johannes, > > minimum or near-minimum builds are tricky because of inter-driver > dependencies. > > You also need to add -DOGR_ENABLE_DRIVER_PGDUMP=ON > > Cf > https://github.com/OSGeo/gdal/blob/b2c689436

Re: [gdal-dev] GDAL compilation with driver OGR_PG

2022-11-28 Thread Even Rouault
Johannes, minimum or near-minimum builds are tricky because of inter-driver dependencies. You also need to add -DOGR_ENABLE_DRIVER_PGDUMP=ON Cf https://github.com/OSGeo/gdal/blob/b2c689436208e72518f4cd60fb5e27d6d985a621/ogr/ogrsf_frmts/CMakeLists.txt#L87: {{{ ogr_dependent_driver(pg PostG

[gdal-dev] GDAL compilation with driver OGR_PG

2022-11-28 Thread Johannes Paul
Hello, i'm having trouble getting GDAL compiled on Centos 7 and 8 with OGR PostgreSQL driver. I used to compile GDAL using configure --with-pg=yes, which was working fine, however since v3.6.0 cmake shall be used, and I can't get OGR_PG driver enabled using the following cmake options: cmake3 .. -