[gdal-dev] libgdal.so: undefined reference to `qh_qh'

Even Rouault even.rouault at spatialys.com
Thu Dec 23 05:54:39 PST 2021


Hi,

This should be fixed per https://github.com/OSGeo/gdal/pull/5033 which 
adds support for re-entrant qhull (libqhull_r), which is what is now 
shipped in recent qhull versions.

Even

Le 22/12/2021 à 11:38, Pei JIA a écrit :
>
> Hi, all:
>
> Again, I failed to build *gdal-3.4.0* , against the current *qhull 
> 8.1.1 *.
>
> 1. I used
>
>     /CFLAGS="-O3 -pipe -march=native -w"; CXXFLAGS="${CFLAGS}"
>     ./configure --with-proj=$ROOTDIR --with-cpp14  --with-crypto=yes
>     --with-liblzma --with-python --with-geos=$ROOTDIR
>     --with-spatialite --with-openjpeg --with-hdf5=$ROOTDIR
>     --with-netcdf=$ROOTDIR --with-pg --with-curl --with-png
>     --with-qhull=yes/
>
> for configuration.
>
> 2. while making, I got the following error messages:
>
>     /echo 'CONFIG_FORMATS="derived gtiff hfa mem vrt  aaigrid adrg
>     aigrid airsar arg blx bmp bsb cals ceos ceos2 coasp cosar ctg
>     dimap dted elas envisat ers esric fit gff gsg gxf hf2 idrisi ilwis
>     ingr iris iso8211 jaxapalsar jdem kmlsuperoverlay l1b leveller map
>     mrf msgn ngsgeoid nitf northwood pds prf r raw rmf rs2 safe saga
>     sdts sentinel2 sgi sigdem srtmhgt stacit stacta terragen tga til
>     tsx usgsdem xpm xyz zarr zmap rik ozi eeda plmosaic rda wcs wms
>     wmts daas ogcapi rasterlite mbtiles grib pdf heif exr webp
>     openjpeg netcdf hdf5 gif png pcraster fits jpeg  pcidsk
>     postgisraster jpegls"' >> gdal-config-inst/
>     /echo 'CONFIG_FORMATS="derived gtiff hfa mem vrt  aaigrid adrg
>     aigrid airsar arg blx bmp bsb cals ceos ceos2 coasp cosar ctg
>     dimap dted elas envisat ers esric fit gff gsg gxf hf2 idrisi ilwis
>     ingr iris iso8211 jaxapalsar jdem kmlsuperoverlay l1b leveller map
>     mrf msgn ngsgeoid nitf northwood pds prf r raw rmf rs2 safe saga
>     sdts sentinel2 sgi sigdem srtmhgt stacit stacta terragen tga til
>     tsx usgsdem xpm xyz zarr zmap rik ozi eeda plmosaic rda wcs wms
>     wmts daas ogcapi rasterlite mbtiles grib pdf heif exr webp
>     openjpeg netcdf hdf5 gif png pcraster fits jpeg  pcidsk
>     postgisraster jpegls"' >> gdal-config/
>     /cat gdal-config.in <http://gdal-config.in> >> gdal-config/
>     /cat gdal-config.in <http://gdal-config.in> >> gdal-config-inst/
>     /chmod a+x gdal-config/
>     /chmod a+x gdal-config-inst/
>     //bin/bash ....../gdal/libtool --mode=link --silent g++
>      gdal_create.lo  ....../gdal/libgdal.la <http://libgdal.la> -o
>     gdal_create/
>     //bin/bash ....../gdal/libtool --mode=link --silent g++
>      gdal_contour.lo  ....../gdal/libgdal.la <http://libgdal.la> -o
>     gdal_contour/
>     //usr/bin/ld: ....../gdal/.libs/libgdal.so: undefined reference to
>     `qh_qh'/
>     //usr/bin/ld: ....../gdal/.libs/libgdal.so: undefined reference to
>     `qh_qh'/
>     //usr/bin/ld: ....../gdal/.libs/libgdal.so: undefined reference to
>     `qh_qh'/
>     //usr/bin/ld: ....../gdal/.libs/libgdal.so: undefined reference to
>     `qh_qh'/
>     //usr/bin/ld: ....../gdal/.libs/libgdal.so: undefined reference to
>     `qh_qh'/
>     //usr/bin/ld: ....../gdal/.libs/libgdal.so: undefined reference to
>     `qh_qh'/
>     //usr/bin/ld: ....../gdal/.libs/libgdal.so: undefined reference to
>     `qh_qh'/
>     //usr/bin/ld: ....../gdal/.libs/libgdal.so: undefined reference to
>     `qh_qh'/
>     //usr/bin/ld: ....../gdal/.libs/libgdal.so: undefined reference to
>     `qh_qh'/
>     //usr/bin/ld: ....../gdal/.libs/libgdal.so: undefined reference to
>     `qh_qh'/
>     //usr/bin/ld: ....../gdal/.libs/libgdal.so: undefined reference to
>     `qh_qh'/
>     //usr/bin/ld: ....../gdal/.libs/libgdal.so: undefined reference to
>     `qh_qh'/
>     //usr/bin/ld: ....../gdal/.libs/libgdal.so/usr/bin/ld
>     <http://libgdal.so/usr/bin/ld>: undefined reference to `:
>     ....../gdal/.libs/libgdal.so: undefined reference to `qh_qhqh_qh'/
>     /'/
>     //usr/bin/ld: ....../gdal/.libs/libgdal.so: undefined reference to
>     `qh_qh'/
>     //usr/bin/ld: ....../gdal/.libs/libgdal.so: undefined reference to
>     `qh_qh'/
>     /collect2: error: ld returned 1 exit status/
>     /collect2: error: ld returned 1 exit status/
>     /collect2: error: ld returned 1 exit status/
>     /collect2: error: ld returned 1 exit status/
>     /collect2: error: ld returned 1 exit status/
>     /make[1]: *** [GNUmakefile:89: gdalinfo] Error 1/
>     /make[1]: *** Waiting for unfinished jobs..../
>     /make[1]: *** [GNUmakefile:110: nearblack] Error 1/
>     /make[1]: *** [GNUmakefile:92: gdalmdiminfo] Error 1/
>     /collect2: error: ld returned 1 exit status/
>     /make[1]: *** [GNUmakefile:95: gdalmdimtranslate] Error 1/
>     /make[1]: *** [GNUmakefile:134: gdaldem] Error 1/
>     /collect2: error: ld returned 1 exit status/
>     /collect2: error: ld returned 1 exit status/
>     /collect2: error: ld returned 1 exit status/
>     /make[1]: *** [GNUmakefile:149: gdalsrsinfo] Error 1/
>     /collect2: error: ld returned 1 exit status/
>     /collect2: error: ld returned 1 exit status/
>     /collect2: error: ld returned 1 exit status/
>     /collect2: error: ld returned 1 exit status/
>     /collect2: error: ld returned 1 exit status/
>     /make[1]: *** [GNUmakefile:191: gdal_viewshed] Error 1/
>     /collect2: error: ld returned 1 exit status/
>     /make[1]: *** [GNUmakefile:143: gdaltransform] Error 1/
>     /make[1]: *** [GNUmakefile:98: gdal_translate] Error 1/
>     /make[1]: *** [GNUmakefile:113: gdalmanage] Error 1/
>     /collect2: error: ld returned 1 exit status/
>     /make[1]: *** [GNUmakefile:101: gdaladdo] Error 1/
>     /make[1]: *** [GNUmakefile:146: gdallocationinfo] Error 1/
>     /make[1]: *** [GNUmakefile:107: gdal_contour] Error 1/
>     /make[1]: *** [GNUmakefile:104: gdalwarp] Error 1/
>     /make[1]: *** [GNUmakefile:131: gdalenhance] Error 1/
>     /make[1]: *** [GNUmakefile:194: gdal_create] Error 1/
>     /make[1]: Leaving directory '....../gdal/apps'/
>     /make: *** [GNUmakefile:123: apps-target] Error 2/
>
>
>
> Did anybody successfully build *gdal-3.4.0* with *qhull-8.1.1* ? 
> Please give me a hand... Thank you ...
>
> -- 
>
> Pei JIA, Ph.D.
>
> Email: jp4work at gmail.com <mailto:jp4work at gmail.com>
>
>
> Welcome to Vision Open
> http://www.visionopen.com <http://www.visionopen.com>
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev

-- 
http://www.spatialys.com
My software is free, but my time generally not.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20211223/9b287112/attachment.html>


More information about the gdal-dev mailing list