Building GDAL, file format not recognized

Mazin Marwan via gdal-dev <[email protected]>
Newsgroups gmane.comp.gis.gdal.devel
Message-ID <CAJgBAzA5h17Gk4kBpvASo=zGFfSEZwOP+FeT7tzv-euJ00je3A@mail.gmail.com>
Hello all,

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

[ 96%] Built target gcore_mdreader
[ 96%] Linking CXX shared library libgdal.so
/usr/bin/ld: cannot find /home/mazianos/build/curl/lib: file format not
recognized
/usr/bin/ld: cannot find /home/mazianos/build/geos-3.14.1/lib: file format
not recognized
/usr/bin/ld: cannot find /home/mazianos/build/geos-3.14.1/lib: file format
not recognized
/usr/bin/ld: cannot find /home/mazianos/build/geos-3.14.1/lib: file format
not recognized
/usr/bin/ld: cannot find /home/mazianos/build/geos-3.14.1/lib: file format
not recognized
collect2: error: ld returned 1 exit status
gmake[2]: *** [CMakeFiles/GDAL.dir/build.make:2788: libgdal.so.38.3.12.2]
Error 1
gmake[1]: *** [CMakeFiles/Makefile2:3352: CMakeFiles/GDAL.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2

I'm not sure what's causing this, but I had previously ran
sudo cmake -DGEOS_INCLUDE_DIR=/home/mazianos/build/geos-3.14.1/include \
-DGEOS_LIBRARY=/home/mazianos/build/geos-3.14.1/lib \
-DGDAL_USE_HDF5=ON \
-DEXPAT_INCLUDE_DIR=/home/mazianos/build/expat/include \
-DEXPAT_LIBRARY=/home/mazianos/build/expat/lib \
-DCURL_INCLUDE_DIR=/home/mazianos/build/curl/include \
-DCURL_LIBRARY_RELEASE=/home/mazianos/build/curl/lib \
-DCMAKE_BUILD_TYPE=Release ..
successfully, so it's able to find geos and curl.

Any ideas on what I may have done wrong on the way to this point would be
appreciated.

_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.