[gdal-dev] [External] : Re: How to build GDAL without dependency on libtiff.so or libjpeg.so

Fengting Chen fengting.chen at oracle.com
Wed Feb 15 13:36:07 PST 2023


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.rouault at spatialys.com>
Date: Wednesday, February 15, 2023 at 7:18 AM
To: Fengting Chen <fengting.chen at oracle.com>, gdal-dev at lists.osgeo.org <gdal-dev at 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 at lists.osgeo.org<mailto:gdal-dev at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20230215/f363cbf9/attachment.htm>


More information about the gdal-dev mailing list