<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:PMingLiU;
        panose-1:2 2 5 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:"\@PMingLiU";
        panose-1:2 1 6 1 0 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:10.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        font-size:10.0pt;
        font-family:"Courier New";}
span.pre
        {mso-style-name:pre;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;}
span.EmailStyle23
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt">Thanks. I later found out that libproj has dependency on libtiff. And since libproj is required by GDAL, basically GDAL indirectly depends on external libtiff.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="font-size:12.0pt;color:black">From:
</span></b><span style="font-size:12.0pt;color:black">Even Rouault <even.rouault@spatialys.com><br>
<b>Date: </b>Wednesday, February 15, 2023 at 7:18 AM<br>
<b>To: </b>Fengting Chen <fengting.chen@oracle.com>, gdal-dev@lists.osgeo.org <gdal-dev@lists.osgeo.org><br>
<b>Subject: </b>[External] : Re: [gdal-dev] How to build GDAL without dependency on libtiff.so or libjpeg.so<o:p></o:p></span></p>
</div>
<p>Hi,<o:p></o:p></p>
<p>Assuming you're speaking about how to link against internal copy with CMake builds, cf GDAL_USE_TIFF_INTERNAL and
<span class="pre">GDAL_USE_JPEG_INTERNAL</span> at <a href="https://urldefense.com/v3/__https:/gdal.org/development/building_from_source.html*tiff__;Iw!!ACWV5N9M2RV99hQ!J4ZpckslhF-pMKh63wut6u59ulUGlFppObpXHbYwyIrsz-5l72L9XzCYGVOfvJFFFQuMCVW88PwKz_ECg1Ih6_xMPa-T$">
https://gdal.org/development/building_from_source.html#tiff</a> and <a href="https://urldefense.com/v3/__https:/gdal.org/development/building_from_source.html*jpeg__;Iw!!ACWV5N9M2RV99hQ!J4ZpckslhF-pMKh63wut6u59ulUGlFppObpXHbYwyIrsz-5l72L9XzCYGVOfvJFFFQuMCVW88PwKz_ECg1Ih62IxHq7c$">
https://gdal.org/development/building_from_source.html#jpeg</a><o:p></o:p></p>
<p>Even if you set those, you can still get external libtiff or libjpeg dependency, if you also link to a GDAL dependency that links against those, like libgeotiff, librasterlite2, ...<o:p></o:p></p>
<p>Even<o:p></o:p></p>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">Le 15/02/2023 à 01:57, Fengting Chen a écrit :<o:p></o:p></span></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt">Hi,
<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt"> <o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt">In the old build system, I was able to build GDAL 3.4 using “—with-libtiff=internal” and “—with-jpeg=internal” . However, ldd on libgdal.so shows
 that it still depends on libtiff.so and libjpeg.so. How to build GDAL without this dependency?
<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt"> <o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt">Thanks!<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-size:11.0pt"><br>
<br>
<o:p></o:p></span></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>gdal-dev mailing list<o:p></o:p></pre>
<pre><a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><o:p></o:p></pre>
<pre><a href="https://urldefense.com/v3/__https:/lists.osgeo.org/mailman/listinfo/gdal-dev__;!!ACWV5N9M2RV99hQ!J4ZpckslhF-pMKh63wut6u59ulUGlFppObpXHbYwyIrsz-5l72L9XzCYGVOfvJFFFQuMCVW88PwKz_ECg1Ih68ySfDAV$">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a><o:p></o:p></pre>
</blockquote>
<pre>-- <o:p></o:p></pre>
<pre><a href="https://urldefense.com/v3/__http:/www.spatialys.com__;!!ACWV5N9M2RV99hQ!J4ZpckslhF-pMKh63wut6u59ulUGlFppObpXHbYwyIrsz-5l72L9XzCYGVOfvJFFFQuMCVW88PwKz_ECg1Ih63zwy5xD$">http://www.spatialys.com</a><o:p></o:p></pre>
<pre>My software is free, but my time generally not.<o:p></o:p></pre>
</div>
</body>
</html>