<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<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"
cite="mid:6AdhA-1ymaDfPzWfC6MPavMd76ojJGF17z3wzQBuXg963Hfna6SDiqP0OwdQHmQKtDjWS5PwxW8H2hhFAAoWqMbRWd76jZNYYvcvVbSOsHU=@pm.me">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<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" 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>