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.
From: Even Rouault <even.roua...@spatialys.com> Date: Wednesday, February 15, 2023 at 7:18 AM To: Fengting Chen <fengting.c...@oracle.com>, gdal-dev@lists.osgeo.org <gdal-dev@lists.osgeo.org> Subject: [External] : Re: [gdal-dev] How to build GDAL without dependency on libtiff.so or libjpeg.so Hi, Assuming you're speaking about how to link against internal copy with CMake builds, cf GDAL_USE_TIFF_INTERNAL and GDAL_USE_JPEG_INTERNAL at https://gdal.org/development/building_from_source.html#tiff<https://urldefense.com/v3/__https:/gdal.org/development/building_from_source.html*tiff__;Iw!!ACWV5N9M2RV99hQ!J4ZpckslhF-pMKh63wut6u59ulUGlFppObpXHbYwyIrsz-5l72L9XzCYGVOfvJFFFQuMCVW88PwKz_ECg1Ih6_xMPa-T$> and https://gdal.org/development/building_from_source.html#jpeg<https://urldefense.com/v3/__https:/gdal.org/development/building_from_source.html*jpeg__;Iw!!ACWV5N9M2RV99hQ!J4ZpckslhF-pMKh63wut6u59ulUGlFppObpXHbYwyIrsz-5l72L9XzCYGVOfvJFFFQuMCVW88PwKz_ECg1Ih62IxHq7c$> 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, ... Even Le 15/02/2023 à 01:57, Fengting Chen a écrit : Hi, 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? Thanks! _______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org<mailto:gdal-dev@lists.osgeo.org> https://lists.osgeo.org/mailman/listinfo/gdal-dev<https://urldefense.com/v3/__https:/lists.osgeo.org/mailman/listinfo/gdal-dev__;!!ACWV5N9M2RV99hQ!J4ZpckslhF-pMKh63wut6u59ulUGlFppObpXHbYwyIrsz-5l72L9XzCYGVOfvJFFFQuMCVW88PwKz_ECg1Ih68ySfDAV$> -- http://www.spatialys.com<https://urldefense.com/v3/__http:/www.spatialys.com__;!!ACWV5N9M2RV99hQ!J4ZpckslhF-pMKh63wut6u59ulUGlFppObpXHbYwyIrsz-5l72L9XzCYGVOfvJFFFQuMCVW88PwKz_ECg1Ih63zwy5xD$> My software is free, but my time generally not.
_______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev