<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>The various xxx_LIBRARY CMake variables must point to the
libXXXX.so file, not just the directory where it is.</p>
<div class="moz-cite-prefix">Le 23/03/2026 à 23:16, Mazin Marwan via
gdal-dev a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:CAJgBAzA5h17Gk4kBpvASo=zGFfSEZwOP+FeT7tzv-euJ00je3A@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Hello all,
<div><br>
</div>
<div>I'm trying to build GDAL with GEOS and Curl among other
packages and I'm running into an error when trying to run
"cmake --build ."</div>
<div><br>
</div>
<div><font face="monospace">[ 96%] Built target gcore_mdreader<br>
[ 96%] Linking CXX shared library libgdal.so<br>
/usr/bin/ld: cannot find /home/mazianos/build/curl/lib: file
format not recognized<br>
/usr/bin/ld: cannot find
/home/mazianos/build/geos-3.14.1/lib: file format not
recognized<br>
/usr/bin/ld: cannot find
/home/mazianos/build/geos-3.14.1/lib: file format not
recognized<br>
/usr/bin/ld: cannot find
/home/mazianos/build/geos-3.14.1/lib: file format not
recognized<br>
/usr/bin/ld: cannot find
/home/mazianos/build/geos-3.14.1/lib: file format not
recognized<br>
collect2: error: ld returned 1 exit status<br>
gmake[2]: *** [CMakeFiles/GDAL.dir/<a class="moz-txt-link-freetext" href="build.make:2788">build.make:2788</a>:
libgdal.so.38.3.12.2] Error 1<br>
gmake[1]: *** [CMakeFiles/<a class="moz-txt-link-freetext" href="Makefile2:3352">Makefile2:3352</a>:
CMakeFiles/GDAL.dir/all] Error 2<br>
gmake: *** [<a class="moz-txt-link-freetext" href="Makefile:146">Makefile:146</a>: all] Error 2</font></div>
<div><font face="monospace"><br>
</font></div>
<div><font face="arial, sans-serif">I'm not sure what's causing
this, but I had previously ran</font></div>
<div><font face="monospace">sudo cmake
-DGEOS_INCLUDE_DIR=/home/mazianos/build/geos-3.14.1/include
\</font></div>
<div><font face="monospace">-DGEOS_LIBRARY=/home/mazianos/build/geos-3.14.1/lib
\</font></div>
<div><font face="monospace">-DGDAL_USE_HDF5=ON \</font></div>
<div><font face="monospace">-DEXPAT_INCLUDE_DIR=/home/mazianos/build/expat/include
\</font></div>
<div><font face="monospace">-DEXPAT_LIBRARY=/home/mazianos/build/expat/lib
\</font></div>
<div><font face="monospace">-DCURL_INCLUDE_DIR=/home/mazianos/build/curl/include
\</font></div>
<div><font face="monospace">-DCURL_LIBRARY_RELEASE=/home/mazianos/build/curl/lib
\</font></div>
<div><font face="monospace">-DCMAKE_BUILD_TYPE=Release ..</font></div>
<div><font face="arial, sans-serif">successfully, so it's able
to find geos and curl.</font></div>
<div><font face="arial, sans-serif"><br>
</font></div>
<div><font face="arial, sans-serif">Any ideas on what I may have
done wrong on the way to this point would be appreciated.</font></div>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre wrap="" class="moz-quote-pre">_______________________________________________
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>