On 2019-03-12 15:06, Margherita Di Leo wrote:
I was looking for instructions to compile gdal with netcdf support and
ended up here [1], but I noticed that the links to netcdf library and to quick instructions on how to compile gdal against it appear both broken. I tried to install netcdf package on fedora but it seems to be the wrong one
because I can't convince gdal to grant support to it... Any pointer
appreciated

Have a look at the gdal package spec [0], it uses the netcdf-devel package for NetCDF support and hacks the configure script to use it [1]:

sed -i 's|-L\$with_netcdf -L\$with_netcdf/lib -lnetcdf|-lnetcdf|g' configure

[0] https://src.fedoraproject.org/cgit/rpms/gdal.git/tree/gdal.spec
[1] https://src.fedoraproject.org/cgit/rpms/gdal.git/tree/gdal.spec#n385

Kind Regards,

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

Reply via email to