[gdal-dev] Which options to use to avoid the symbol clash between GDAL and external libgeotiff and external TIFF libraries

Parveen Sharma sharma1981 at outlook.com
Tue Dec 17 01:57:43 PST 2024


Hello

I am trying to build GDAL 3.9.3 using CMAKE and want to avoid the symbol clash between GDAL and external libgeotiff and external TIFF libraries.

I have enabled the GDAL internal TIFF and GEOTIFF with below CMAKE options

<arg value="-DGDAL_USE_LIBTIFF_INTERNAL=ON"/>
<arg value="-DGDAL_USE_GEOTIFF_INTERNAL=ON"/>


But i am confused which of the below is valid option to rename the internal symbols so that they don't clash with the external libraries symbols.

All of the below 4 are present in GDAL 3.9.3 code base and I am unable to figure out which one to use
  

  <arg value="-DRENAME_INTERNAL_LIBTIFF_SYMBOLS=ON"/>
  <arg value="-DRENAME_INTERNAL_LIBGEOTIFF_SYMBOLS=ON"/>
  <arg value="-DRENAME_INTERNAL_GEOTIFF_SYMBOLS=ON"/>
  <arg value="-DRENAME_INTERNAL_TIFF_SYMBOLS=ON"/>



Can anyone please suggest?

Best regards,
Parveen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20241217/ba9e63d6/attachment.htm>


More information about the gdal-dev mailing list