<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">On Saturday, 20 May 2023 9:26:26 AM AEST Sean Gillies wrote:</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> Hi all,</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> I really appreciate the documentation at</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> https://gdal.org/development/building_from_source.html. But there are gaps.</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> For example, today I ran into</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> CMake Error at cmake/helpers/GdalDriverHelper.cmake:331 (message):</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> GDAL_ENABLE_DRIVER_AIGRID cannot be enabled because condition</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> OGR_ENABLE_DRIVER_AVC is not met. To ignore this error (but the driver</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> will not be built), set the GDAL_IGNORE_FAILED_CONDITIONS variable</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> This dependence isn't documented. It's a bit frustrating to work through</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> missing directives one at a time when adding new drivers to my build.</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">While I appreciate that it is frustrating, there probably aren't that many people who regularly do custom builds (and of those, having stuff magically turned on probably isn't expected).</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">There is a list in the source code:</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><a href="https://github.com/OSGeo/gdal/blob/master/frmts/CMakeLists.txt">https://github.com/OSGeo/gdal/blob/master/frmts/CMakeLists.txt</a></p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">- just scan fro gdal_dependent_format</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">and also at</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><a href="https://github.com/OSGeo/gdal/blob/master/ogr/ogrsf_frmts/CMakeLists.txt#L53-L108">https://github.com/OSGeo/gdal/blob/master/ogr/ogrsf_frmts/CMakeLists.txt#L53-L108</a></p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">for OGR formats</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> Is it possible for a driver's dependencies to be enabled when I enable a</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> driver?</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> If not, can we consider using GDAL maintenance funding and resources on</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> documenting the heck out of this system?</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">While sympathising with your frustration, I don't see this as a high priority activity. That said, it probably wouldn't be that hard to scan through the CMakeLists with a simple script and generate it.</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Brad</p>
</body>
</html>