<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>