[gdal-dev] [External] : Re: how to build netCDF driver plugin

Ivan Lucena ivan.lucena at outlook.com
Fri Feb 25 05:09:50 PST 2022


Hi Fengting,

The Windows error message might be telling you that while it was loading the plugin library, that DLL was required to load another DLL(s), from the SDK probably, and that is not in the PATH.

You need to check if the plugin DLL was built against a static or a dynamic SDK library. Static would make your deployment easier, but some SDK make it hard to build this way.

Good luck,

Ivan

________________________________
From: gdal-dev <gdal-dev-bounces at lists.osgeo.org> on behalf of Fengting Chen <fengting.chen at oracle.com>
Sent: Thursday, February 24, 2022 9:10 PM
To: gdal-dev at lists.osgeo.org <gdal-dev at lists.osgeo.org>
Subject: Re: [gdal-dev] [External] : Re: how to build netCDF driver plugin


After fix the plugin library name, the netCDF driver plugin on linux is working. However, it still didn’t work on windows:



E:\tmp\gdal>gdalinfo

ERROR 1: Can't load requested DLL: E:\tmp\gdal\bin\gdalplugins\gdal_netCDF.dll

126: The specified module could not be found.



ERROR 1: Can't load requested DLL: E:\tmp\gdal\bin\gdalplugins\gdal_netCDF.dll

126: The specified module could not be found.



I verified that specified gdal_netCDF.dll exists at above directory and netcdf.dll is in the path of %PATH%.



Any possible problem?



This is a build on gdal 3.4.1.



Thanks,



From: Even Rouault <even.rouault at spatialys.com>
Sent: Thursday, February 24, 2022 12:54 PM
To: Fengting Chen <fengting.chen at oracle.com>; gdal-dev at lists.osgeo.org
Subject: [External] : Re: [gdal-dev] how to build netCDF driver plugin



- The filename is case sensitive: it must be gdal_netCDF.so/dll since the registration function is called GDALRegister_netCDF()

- You need to set the GDAL_DRIVER_PATH environment variable to point to the directory where the driver is

- You might find it easier when using master to use CMake:  cmake -DGDAL_ENABLE_DRIVER_NETCDF_PLUGIN:BOOL=ON  . That will work on both Linux and Windows

Le 24/02/2022 à 17:45, Fengting Chen a écrit :

Under current build system, how to build netCDF driver as a plugin on linux and windows?



On windows, when I set NETCDF_PLUGIN=YES, the gdal_netcdf.ddl was built. But gdalinfo still doesn’t show netcdf as a supported format.



On linux, I changed the local makefile for netcdf and built gdal_netcdf.so. But gdalinfo doesn’t show netcdf as a supported format either.



Any help would be appreciated.



Thanks



_______________________________________________

gdal-dev mailing list

gdal-dev at lists.osgeo.org<mailto:gdal-dev at lists.osgeo.org>

https://lists.osgeo.org/mailman/listinfo/gdal-dev<https://urldefense.com/v3/__https:/lists.osgeo.org/mailman/listinfo/gdal-dev__;!!ACWV5N9M2RV99hQ!arl8eQzGRDqBZJr6WK8ShQVivQBxsojpL11eSfaFnZOe2MhcbeySDvlb0A2SfGO3X9M$>

--

http://www.spatialys.com<https://urldefense.com/v3/__http:/www.spatialys.com__;!!ACWV5N9M2RV99hQ!arl8eQzGRDqBZJr6WK8ShQVivQBxsojpL11eSfaFnZOe2MhcbeySDvlb0A2SocmiOpw$>

My software is free, but my time generally not.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20220225/7fcd7501/attachment.html>


More information about the gdal-dev mailing list