<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div>Thanks Even</div>
<div><br>
</div>
<div>I believe this wasn't the case in older GDAL releases for eg release 3.3 where we had an requirement to explicitly set options to avoid symbol clash?</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<br>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Even Rouault <even.rouault@spatialys.com><br>
<b>Sent:</b> Tuesday, December 17, 2024 9:49 PM<br>
<b>To:</b> Parveen Sharma <sharma1981@outlook.com>; Michał Kowalczuk via gdal-dev <gdal-dev@lists.osgeo.org><br>
<b>Subject:</b> Re: [gdal-dev] Which options to use to avoid the symbol clash between GDAL and external libgeotiff and external TIFF libraries</font>
<div> </div>
</div>
<div>
<p>You don't need to set any explicit option for symbol renaming. This is done automatically as soon as internal libraries are used<br>
</p>
<p><br>
</p>
<div class="x_moz-cite-prefix">Le 17/12/2024 à 10:57, Parveen Sharma via gdal-dev a écrit :<br>
</div>
<blockquote type="cite"><style type="text/css" style="display:none">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div class="x_elementToProof" style="text-align:left; text-indent:0px; margin-top:0px; font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hello<br>
<br>
</div>
<div class="x_elementToProof" style="text-align:left; text-indent:0px; margin-top:0px; font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
I am trying to build GDAL 3.9.3 using CMAKE and want to avoid the <b>symbol clash between GDAL and external libgeotiff and external TIFF libraries.</b></div>
<div class="x_elementToProof" style="text-align:left; text-indent:0px; margin-top:0px; font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<b><br>
</b></div>
<div class="x_elementToProof" style="text-align:left; text-indent:0px; margin-top:0px; font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
I have enabled the GDAL internal TIFF and GEOTIFF with below CMAKE options<b><br>
<br>
</b></div>
<table data-editing-info="{"topBorderColor":"#ABABAB","bottomBorderColor":"#ABABAB","verticalBorderColor":"#ABABAB","hasHeaderRow":false,"hasFirstColumn":false,"hasBandedRows":false,"hasBandedColumns":false,"bgColorEven":null,"bgColorOdd":"#ABABAB20","headerRowColor":"#ABABAB","tableBorderFormat":0,"verticalAlign":"top"}" style="box-sizing:border-box; border-collapse:collapse; border-spacing:0px">
<tbody>
<tr>
<td style="width:611.348px; height:22px; border-width:1px; border-style:solid; border-color:rgb(171,171,171); vertical-align:top; box-sizing:border-box">
<div class="x_elementToProof" style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<arg value="-DGDAL_USE_LIBTIFF_INTERNAL=ON"/><br>
<arg value="-DGDAL_USE_GEOTIFF_INTERNAL=ON"/></div>
</td>
</tr>
</tbody>
</table>
<div class="x_elementToProof" style="text-align:left; text-indent:0px; margin-top:0px; font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div class="x_elementToProof" style="text-align:left; text-indent:0px; margin-top:0px; font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<b><br>
</b>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.<br>
<br>
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</div>
<div class="x_elementToProof" style="text-align:left; margin-top:0px; font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
  </div>
<table data-editing-info="{"topBorderColor":"#ABABAB","bottomBorderColor":"#ABABAB","verticalBorderColor":"#ABABAB","hasHeaderRow":false,"hasFirstColumn":false,"hasBandedRows":false,"hasBandedColumns":false,"bgColorEven":null,"bgColorOdd":"#ABABAB20","headerRowColor":"#ABABAB","tableBorderFormat":0,"verticalAlign":"top"}" style="box-sizing:border-box; border-collapse:collapse; border-spacing:0px">
<tbody>
<tr>
<td style="width:519.023px; height:126.345px; border-width:1px; border-style:solid; border-color:rgb(171,171,171); vertical-align:top; box-sizing:border-box">
<div class="x_elementToProof" style="text-align:left; text-indent:0px; margin:0px; font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
  <arg value="-DRENAME_INTERNAL_LIBTIFF_SYMBOLS=ON"/></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
  <arg value="-DRENAME_INTERNAL_LIBGEOTIFF_SYMBOLS=ON"/></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
  <arg value="-DRENAME_INTERNAL_GEOTIFF_SYMBOLS=ON"/></div>
<div class="x_elementToProof" style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
  <arg value="-DRENAME_INTERNAL_TIFF_SYMBOLS=ON"/></div>
<div class="x_elementToProof" style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
</td>
</tr>
</tbody>
</table>
<div class="x_elementToProof" style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
<br>
Can anyone please suggest?</div>
<div class="x_elementToProof" style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div class="x_elementToProof" style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Best regards,</div>
<div class="x_elementToProof" style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Parveen</div>
<br>
<fieldset class="x_moz-mime-attachment-header"></fieldset>
<pre class="x_moz-quote-pre">_______________________________________________
gdal-dev mailing list
<a class="x_moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<a class="x_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="x_moz-signature" cols="72">-- 
<a class="x_moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.
Butcher of all kinds of standards, open or closed formats. At the end, this is just about bytes.</pre>
</div>
</body>
</html>