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

Even Rouault even.rouault at spatialys.com
Wed Feb 15 04:17:59 PST 2023


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 and 
https://gdal.org/development/building_from_source.html#jpeg

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
> https://lists.osgeo.org/mailman/listinfo/gdal-dev

-- 
http://www.spatialys.com
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/476347f6/attachment.htm>


More information about the gdal-dev mailing list