<div style="font-family: Arial, sans-serif; font-size: 14px;">Hi Evan,</div><div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div><div style="font-family: Arial, sans-serif; font-size: 14px;">I tried running 'cmake  <span>.. "-UGEOS*"' followed by '<span>cmake --build .', but received the same error:</span></span></div><div style="font-family: Arial, sans-serif; font-size: 14px;"><span><span><br></span></span></div><div style="font-family: Arial, sans-serif; font-size: 14px;"><span><span><span>CMakeFiles/GDAL.dir/build.make:2687: *** target pattern contains no '%'.  Stop.</span><div><span>make[1]: *** [CMakeFiles/Makefile2:5005: CMakeFiles/GDAL.dir/all] Error 2</span></div><span>make: *** [Makefile:141: all] Error 2</span><br></span></span></div><div style="font-family: Arial, sans-serif; font-size: 14px;"><span><span><span><br></span></span></span></div><div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div><div style="font-family: Arial, sans-serif; font-size: 14px;">$ grep -i GEOS CMakeCache.txt</div><div style="font-family: Arial, sans-serif; font-size: 14px;"><div><span>//Config file name for GEOS</span></div><div><span>GDAL_CHECK_PACKAGE_GEOS_NAMES:STRING=GEOS</span></div><div><span>//Target name candidates for GEOS</span></div><div><span>GDAL_CHECK_PACKAGE_GEOS_TARGETS:STRING=GEOS::geos_c;GEOS::GEOS</span></div><div><span>//Set ON to build Geospatial PDF format</span></div><div><span>//Set ON to use GEOS</span></div><div><span>GDAL_USE_GEOS:BOOL=ON</span></div><div><span>//The directory containing a CMake configuration file for GEOS.</span></div><div><span>GEOS_DIR:PATH=/usr/local/geos-3.12.1/cmake</span></div><div><span>pkgcfg_lib_PC_SPATIALITE_geos_c:FILEPATH=/usr/local/lib/libgeos_c.so</span></div><div><span>//ADVANCED property for variable: GDAL_CHECK_PACKAGE_GEOS_NAMES</span></div><div><span>GDAL_CHECK_PACKAGE_GEOS_NAMES-ADVANCED:INTERNAL=1</span></div><div><span>//ADVANCED property for variable: GDAL_CHECK_PACKAGE_GEOS_TARGETS</span></div><div><span>GDAL_CHECK_PACKAGE_GEOS_TARGETS-ADVANCED:INTERNAL=1</span></div><div><span>PC_SPATIALITE_LDFLAGS:INTERNAL=-lspatialite;-lminizip;-lrttopo;-lfreexl;-lproj;-lsqlite3;-lz;-lsqlite3;-lgeos_c;-lxml2;-lm</span></div><div><span>PC_SPATIALITE_LIBRARIES:INTERNAL=spatialite;minizip;rttopo;freexl;proj;sqlite3;z;sqlite3;geos_c;xml2;m</span></div><div><span>PC_SPATIALITE_STATIC_LDFLAGS:INTERNAL=-lspatialite;-lminizip;-lrttopo;-lfreexl;-lproj;-lsqlite3;-lz;-lsqlite3;-lgeos_c;-lxml2;-lm</span></div><div><span>PC_SPATIALITE_STATIC_LIBRARIES:INTERNAL=spatialite;minizip;rttopo;freexl;proj;sqlite3;z;sqlite3;geos_c;xml2;m</span></div><div><span>//ADVANCED property for variable: pkgcfg_lib_PC_SPATIALITE_geos_c</span></div><span>pkgcfg_lib_PC_SPATIALITE_geos_c-ADVANCED:INTERNAL=1</span></div><div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div><div style="font-family: Arial, sans-serif; font-size: 14px;">Thanks,</div><div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div>
<div class="protonmail_signature_block" style="font-family: Arial, sans-serif; font-size: 14px;">
    <div class="protonmail_signature_block-user">
        <div>~ Eric.<br></div>
    </div>
    <div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div>
    <div class="protonmail_signature_block-proton"><br></div>
</div>
<div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div><div class="protonmail_quote">
        On Tuesday, 16 January 2024 at 12:23, Even Rouault <even.rouault@spatialys.com> wrote:<br>
        <blockquote class="protonmail_quote" type="cite">
            
    <p>Eric,</p>
    <p>What is the output of "grep -i GEOS CMakeCache.txt" ?<br>
    </p>
    <p>Also retry with   cmake .. "-UGEOS*"  to make sure any potential
      old GEOS variables are reset<br>
    </p>
    <p>Even<br>
    </p>
    <div class="moz-cite-prefix">Le 16/01/2024 à 17:20, Eric Patton via
      gdal-dev a écrit :<br>
    </div>
    <blockquote type="cite">
      
      <div style="font-family: Arial, sans-serif; font-size: 14px;"><span style="line-height:1.5">I am running into an error while
          building gdal 3.8.3 from source - it seems GEOS (version
          3.12.1) is not being found during the build, despite that fact
          it was completely installed from source with no errors. I'm
          using LInux Mint 20.3.</span>
        <div style="line-height:1.5"><span><br>
          </span></div>
        <div style="line-height:1.5"><span># GDAL build commands used:</span>
          <div><br>
          </div>
          <div><span>$ cmake -DCMAKE_BUILD_TYPE=Release ..</span></div>
          <div><span>(No obvious errors in output, GEOS seems to be
              located):</span></div>
          <div><br>
          </div>
          <div><span>-- The following RECOMMENDED packages have been
              found:</span></div>
          <div><span>* GEOS</span></div>
          <div><span>   Geometry Engine - Open Source (GDAL core
              dependency)</span></div>
          <div><br>
          </div>
          <div><span>$ cmake --build .</span></div>
          <div><span><snip></span></div>
          <div><span>[ 95%] Built target gcore_mdreader</span></div>
          <div><span>CMakeFiles/GDAL.dir/build.make:2687: *** target
              pattern contains no '%'.  Stop.</span></div>
          <div><span>make[1]: *** [CMakeFiles/Makefile2:5005:
              CMakeFiles/GDAL.dir/all] Error 2</span></div>
          <div><span>make: *** [Makefile:141: all] Error 2</span></div>
          <div><br>
          </div>
          <div><span># Line 2687 of
              /usr/local/gdal-3.8.3/build/CMakefiles/GDAL.dir:</span></div>
          <div><span>libgdal.so.34.3.8.3: GEOS::geos_c-NOTFOUND</span></div>
          <div><br>
          </div>
          <div># But that's strange:</div>
          <div><span>$ which geos-config</span></div>
          <div><span>/usr/local/bin/geos-config</span></div>
          <div><br>
          </div>
          <div><span>$ geos-config --version</span></div>
          <div><span>3.12.1</span></div>
          <div><br>
          </div>
          <div><span># Location of GEOS include dir:</span></div>
          <div><br>
          </div>
          <div><span>$ cd /usr</span></div>
          <div><span>$ find . -name "geos_c.h"</span></div>
          <div><br>
          </div>
          <div><span>./local/geos-3.12.1/_build/capi/geos_c.h</span></div>
          <div><span>./local/include/geos_c.h</span></div>
          <div><br>
          </div>
          <div><span># Location of GEOS_LIBRARY:</span></div>
          <div><br>
          </div>
          <div><span>$ cd /usr</span></div>
          <div><span>$ find . -name "*libgeos_c*"</span></div>
          <div><br>
          </div>
          <div><span>./local/lib/libgeos_c.so.1</span></div>
          <div><span>./local/lib/libgeos_c.so.1.18.1</span></div>
          <div><span>./local/lib/libgeos_c.so</span></div>
          <div><span>./local/geos-3.12.1/_build/lib/libgeos_c.so.1</span></div>
          <div><span>./local/geos-3.12.1/_build/lib/libgeos_c.so.1.18.1</span></div>
          <div><span>./local/geos-3.12.1/_build/lib/libgeos_c.so</span></div>
          <div><br>
          </div>
          <div>$ uname -a:</div>
          <div><br>
          </div>
          <div><span>Linux FieldBathy 5.15.0-91-generic
              #101~20.04.1-Ubuntu SMP Thu Nov 16 14:22:28 UTC 2023
              x86_64 x86_64 x86_64 GNU/Linux</span></div>
          <span></span><br>
        </div>
        <div style="line-height:1.5">Please let me know if there's
          anything else I can post to help diagnose the error, thanks.</div>
        <div style="line-height:1.5"><br>
        </div>
        <div style="line-height:1.5">--</div>
        <div style="line-height:1.5">
          <div><span>Eric Patton</span></div>
        </div>
      </div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre">_______________________________________________
gdal-dev mailing list
<a href="mailto:gdal-dev@lists.osgeo.org" class="moz-txt-link-abbreviated" rel="noreferrer nofollow noopener" target="_blank">gdal-dev@lists.osgeo.org</a>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" class="moz-txt-link-freetext" rel="noreferrer nofollow noopener" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
</pre>
    </blockquote>
    <pre cols="72" class="moz-signature">--
<a href="http://www.spatialys.com" class="moz-txt-link-freetext" rel="noreferrer nofollow noopener" target="_blank">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
  


        </blockquote><br>
    </div>