[gdal-dev] Problems linking without curl
Even Rouault
even.rouault at mines-paris.org
Fri Mar 1 20:14:51 PST 2013
Le mardi 26 février 2013 18:50:18, Jose Gomez-Dans a écrit :
> Hi,
> Trying to compile GDAL on RHEL6 x864_64. It's failing looking for libcurl
> when linking. I don't need curl in this machine, and it's not installed. My
> configure line is as follows:
>
> ./configure --prefix=/home/User/bin/ --with-libtiff=internal
> --with-hdf4=/usr/lib64/hdf --without-curl --without-expat --without-mysql
> --without-dwgdirect --without-odbc --with-python --without-oci
> --without-sqlite3 --without-oci-include --without-oci-lib --without-grib
>
> Unrelated to curl, in order to configure HDF4, I need the line above.
> However, I then need to go into GDALmake.opt and edit the content of
> HDF4_INCLUDE to point to /usr/include/hdf.
--with-hdf4 should be enough. If you specify a path behind --with-hdf4= , it
must be the root installation directory of the hdf4 ( /usr , /usr/local, etc
... ), not the path of the .so itself. But with x86_64 RedHat based
distributions that have stuff in /usr/lib64 , some ./configure detections don't
work out of the box.
However in the HDF4 case it should work since I can see that in the
configure.in script :
[snip]
if test x"$with_hdf4" = x"yes" -o x"$with_hdf4" = x"" ; then
dnl Fedora has hdf static libraries in /usr/lib/hdf
if test -d /usr/lib64/hdf; then
HDF_LIB_DIR="/usr/lib64/hdf"
[snip]
>
> But how can I get rid of the curl dependency?
I'm surprised --without-curl doesn't work for you. Perhaps you should look at
config.log and search "curl" in it to see if something interesting shows up.
>
> Thanks!
> Jose
More information about the gdal-dev
mailing list