<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi Sean,</p>
    <p>I presume you got this because you defined
      OGR_BUILD_OPTIONAL_DRIVERS=OFF which then cause <span
        class="gmail-CheckStep-line-content gmail-d-inline-block
        gmail-flex-auto gmail-ml-3 gmail-js-check-line-content"><span
          class="gmail-"> OGR_ENABLE_DRIVER_AVC to be set to OFF.</span></span></p>
    <p><span class="gmail-CheckStep-line-content gmail-d-inline-block
        gmail-flex-auto gmail-ml-3 gmail-js-check-line-content"><span
          class="gmail-">We already a quite overwhelming amount of
          documentation in 
          <a class="moz-txt-link-freetext" href="https://gdal.org/development/building_from_source.html">https://gdal.org/development/building_from_source.html</a> about
          all the existing variables, and I'm not sure adding an
          exhaustive list of all the inter driver dependencies will be
          user-digestable and could rot easily.<br>
        </span></span></p>
    <p><span class="gmail-CheckStep-line-content gmail-d-inline-block
        gmail-flex-auto gmail-ml-3 gmail-js-check-line-content"><span
          class="gmail-">That said in </span></span><a class="moz-txt-link-freetext" href="https://github.com/OSGeo/gdal/pull/7806">https://github.com/OSGeo/gdal/pull/7806</a>
      I've tried to improve the current error message with a hint for
      the reason for the error and the (likely) reason for it to happen.
      <br>
    </p>
    <p>I've also added pointers in the doc page to the CMakeLists.txt
      files where the dependencies are expressed. Hopefully people who
      are in the business of making custom GDAL builds can make sense of
      that.<br>
    </p>
    <p>Even<br>
    </p>
    <div class="moz-cite-prefix">Le 20/05/2023 à 01:26, Sean Gillies a
      écrit :<br>
    </div>
    <blockquote type="cite"
cite="mid:CAOodmJo+0DVgz9S-kNM0TF6OgXFUskstp+dV13P=gYHwxcZ_XQ@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div>Hi all,</div>
        <div><br>
        </div>
        <div>I really appreciate the documentation at <a
            href="https://gdal.org/development/building_from_source.html"
            moz-do-not-send="true" class="moz-txt-link-freetext">https://gdal.org/development/building_from_source.html</a>.
          But there are gaps. For example, today I ran into <br>
        </div>
        <div><br>
        </div>
        <div>
          <div>
            <div class="gmail-js-check-step-line gmail-CheckStep-line
              gmail-d-flex gmail-log-line-plain"><span
                class="gmail-CheckStep-line-content gmail-d-inline-block
                gmail-flex-auto gmail-ml-3 gmail-js-check-line-content">
                <span class="gmail-">CMake Error at
                  cmake/helpers/GdalDriverHelper.cmake:331 (message):
                </span></span> </div>
          </div>
          <div>
            <div class="gmail-js-check-step-line gmail-CheckStep-line
              gmail-d-flex gmail-log-line-plain"> </div>
          </div>
          <div>
            <div class="gmail-js-check-step-line gmail-CheckStep-line
              gmail-d-flex gmail-log-line-plain"> <span
                class="gmail-CheckStep-line-content gmail-d-inline-block
                gmail-flex-auto gmail-ml-3 gmail-js-check-line-content">
                <span class="gmail-"> GDAL_ENABLE_DRIVER_AIGRID cannot
                  be enabled because condition
                </span></span> </div>
          </div>
          <div>
            <div class="gmail-js-check-step-line gmail-CheckStep-line
              gmail-d-flex gmail-log-line-plain"> </div>
          </div>
          <div>
            <div class="gmail-js-check-step-line gmail-CheckStep-line
              gmail-d-flex gmail-log-line-plain"> <span
                class="gmail-CheckStep-line-content gmail-d-inline-block
                gmail-flex-auto gmail-ml-3 gmail-js-check-line-content">
                <span class="gmail-"> OGR_ENABLE_DRIVER_AVC is not met.
                  To ignore this error (but the driver
                </span></span> </div>
          </div>
          <div>
            <div class="gmail-js-check-step-line gmail-CheckStep-line
              gmail-d-flex gmail-log-line-plain"> </div>
          </div>
          <span class="gmail-CheckStep-line-content gmail-d-inline-block
            gmail-flex-auto gmail-ml-3 gmail-js-check-line-content"> <span
              class="gmail-"> will not be built), set the
              GDAL_IGNORE_FAILED_CONDITIONS variable</span></span></div>
        <div><span class="gmail-CheckStep-line-content
            gmail-d-inline-block gmail-flex-auto gmail-ml-3
            gmail-js-check-line-content"><span class="gmail-"><br>
            </span></span></div>
        <div><span class="gmail-CheckStep-line-content
            gmail-d-inline-block gmail-flex-auto gmail-ml-3
            gmail-js-check-line-content"><span class="gmail-">This
              dependence isn't documented. It's a bit frustrating to
              work through missing directives one at a time when adding
              new drivers to my build.<br>
            </span></span></div>
        <div><span class="gmail-CheckStep-line-content
            gmail-d-inline-block gmail-flex-auto gmail-ml-3
            gmail-js-check-line-content"><span class="gmail-"><br>
            </span></span></div>
        <div><span class="gmail-CheckStep-line-content
            gmail-d-inline-block gmail-flex-auto gmail-ml-3
            gmail-js-check-line-content"><span class="gmail-">Is it
              possible for </span></span>a driver's dependencies to be
          enabled when I enable a driver?</div>
        <div><br>
        </div>
        <div>If not, can we consider using GDAL maintenance funding and
          resources on documenting the heck out of this system?<br>
        </div>
        <br>
        <span class="gmail_signature_prefix">-- </span><br>
        <div dir="ltr" class="gmail_signature"
          data-smartmail="gmail_signature">Sean Gillies</div>
      </div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
gdal-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/gdal-dev">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
<a class="moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
  </body>
</html>