Skip to content

GDAL: external LERC only available in 3.3+#31583

Closed
adamjstewart wants to merge 1 commit intospack:developfrom
adamjstewart:packages/gdal
Closed

GDAL: external LERC only available in 3.3+#31583
adamjstewart wants to merge 1 commit intospack:developfrom
adamjstewart:packages/gdal

Conversation

@adamjstewart
Copy link
Copy Markdown
Member

User reported a build issue when linking to external LERC for older GDAL. According to https://gdal.org/drivers/raster/gtiff.html:

LERC and LERC_DEFLATE are available only when using internal libtiff for GDAL < 3.3.0. Since GDAL 3.3.0, LERC compression is also available when building GDAL against external libtiff >= 4.3.0, built itself against https://github.com/esri/lerc

Actually, now that I look at this, I'm not sure if it even makes sense to have a +lerc variant/dependency. @rouault is LERC actually used in GDAL or is it only used when building the internal copy of libtiff? Since we don't use internal copies of any dependencies, we may be able to remove the +lerc variant. Are there any other dependencies listed at https://gdal.org/build_hints.html that are secretly dependencies of dependencies?

@rouault
Copy link
Copy Markdown
Contributor

rouault commented Jul 16, 2022

@rouault is LERC actually used in GDAL or is it only used when building the internal copy of libtiff?

the story depends on versions. LERC can be used by the MRF driver too. I'm not sure if it is from 3.5.0 or master, but previously only the internal copy of libLERC could be used by the MRF driver. Now it can be the external copy too.

@adamjstewart
Copy link
Copy Markdown
Member Author

Looks like that may also be the case with zstd: #26809 (comment)

I would love to know which dependencies are actually used in GDAL and from which versions those deps are supported externally.

@adamjstewart adamjstewart deleted the packages/gdal branch August 1, 2022 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants