[gdal-dev] Is it possible to create standalone DLL for OGR GML driver ?

Even Rouault even.rouault at spatialys.com
Thu Aug 29 15:09:17 PDT 2024


Le 29/08/2024 à 19:42, Andrew C Aitchison via gdal-dev a écrit :
> On Thu, 29 Aug 2024, Even Rouault via gdal-dev wrote:
>
>>
>>>
>>> I was wondering if there exists a way to get standalone OGR GML 
>>> Driver. Please suggest.
>>
>> No, it must be built-in in core libgdal as part of its functionality 
>> is re-used by other drivers (NAS, WFS) through direct function calls
>
> Would disabling NAS and WFS support make a difference ?

It would be required, but not sufficient. You also need to replace the 
BUILTIN keyword in ogr/ogrsf_frmts/gml/CMakeLists.txt with 
PLUGIN_CAPABLE . I wouldn't exclude that you would hit linking errors 
because the driver might use functions of the core that are not 
exported. In that case you need to tag the declaration of those 
functions with CPL_DLL

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



More information about the gdal-dev mailing list