AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2021.04.16 17:46 "[Tiff] tiffcp: LERC codec options refer to zstd even if zstd support is not present", by Miguel Medalha
2021.04.16 17:48 "Re: [Tiff] tiffcp: LERC codec options refer to zstd even if zstd support is not present", by Even Rouault
2021.04.16 17:59 "Re: [Tiff] tiffcp: LERC codec options refer to zstd even if zstd support is not present", by Miguel Medalha
2021.04.16 18:06 "Re: [Tiff] tiffcp: LERC codec options refer to zstd even if zstd support is not present", by Even Rouault
2021.04.16 18:18 "Re: [Tiff] tiffcp: LERC codec options refer to zstd even if zstd support is not present", by Miguel Medalha
2021.04.16 21:05 "Re: [Tiff] tiffcp: LERC codec options refer to zstd even if zstd support is not present", by Miguel Medalha
2021.04.16 21:37 "Re: [Tiff] tiffcp: LERC codec options refer to zstd even if zstd support is not present", by Miguel Medalha
2021.04.16 21:41 "Re: [Tiff] tiffcp: LERC codec options refer to zstd even if zstd support is not present", by Even Rouault
2021.04.16 22:23 "Re: [Tiff] tiffcp: LERC codec options refer to zstd even if zstd support is not present", by Miguel Medalha
2021.04.16 22:28 "Re: [Tiff] tiffcp: LERC codec options refer to zstd even if zstd support is not present", by Even Rouault
2021.04.16 22:34 "Re: [Tiff] tiffcp: LERC codec options refer to zstd even if zstd support is not present", by Miguel Medalha
2021.04.16 22:58 "Re: [Tiff] tiffcp: LERC codec options refer to zstd even if zstd support is not present", by Miguel Medalha
2021.04.16 23:08 "Re: [Tiff] tiffcp: LERC codec options refer to zstd even if zstd support is not present", by Miguel Medalha
2021.04.16 23:08 "Re: [Tiff] tiffcp: LERC codec options refer to zstd even if zstd support is not present", by Even Rouault

2021.04.16 22:23 "Re: [Tiff] tiffcp: LERC codec options refer to zstd even if zstd support is not present", by Miguel Medalha

When you say "https://github.com/Esri/lerc.git", I assume you mean the master version. Yes it is ahead of the v2.2.1 tag. On my Linux box, Lerc master works fine with tiffcp.

Yes, I mean the master version.

When switching between liblerc, do you make sure to rebuild libtiff against the new updated Lerc headers?

Yes, I had forgotten to replace the headers after switching to master.

But still some problem persists. If I build from master, with the correct headers, the following messages are produced, four of them fatal:

C:\Build\git\libtiff.mod\libtiff\tif_lerc.c(510,46): warning C4047: 'function': 'int' differs in levels of indirection from 'uint8_t *' [C:\Build\bin\libtiff\libtiff\tiff.vcxproj]
C:\Build\git\libtiff.mod\libtiff\tif_lerc.c(510,22): warning C4024: 'lerc_decode': different types for formal and actua l parameter 3 [C:\Build\bin\libtiff\libtiff\tiff.vcxproj]
C:\Build\git\libtiff.mod\libtiff\tif_lerc.c(511,18): warning C4047: 'function': 'unsigned char *' differs in levels of indirection from 'int' [C:\Build\bin\libtiff\libtiff\tiff.vcxproj]
C:\Build\git\libtiff.mod\libtiff\tif_lerc.c(511,13): warning C4024: 'lerc_decode': different types for formal and actua l parameter 4 [C:\Build\bin\libtiff\libtiff\tiff.vcxproj]
C:\Build\git\libtiff.mod\libtiff\tif_lerc.c(516,36): warning C4047: 'function': 'unsigned int' differs in levels of ind irection from 'uint8_t *' [C:\Build\bin\libtiff\libtiff\tiff.vcxproj]
C:\Build\git\libtiff.mod\libtiff\tif_lerc.c(516,15): warning C4024: 'lerc_decode': different types for formal and actua l parameter 9 [C:\Build\bin\libtiff\libtiff\tiff.vcxproj]
C:\Build\git\libtiff.mod\libtiff\tif_lerc.c(504,31): error C2198: 'lerc_decode': too few arguments for call [C:\Build\b in\libtiff\libtiff\tiff.vcxproj]
C:\Build\git\libtiff.mod\libtiff\tif_lerc.c(865,46): warning C4047: 'function': 'int' differs in levels of indirection from 'uint8_t *' [C:\Build\bin\libtiff\libtiff\tiff.vcxproj]
C:\Build\git\libtiff.mod\libtiff\tif_lerc.c(865,22): warning C4024: 'lerc_encodeForVersion': different types for formal and actual parameter 8 [C:\Build\bin\libtiff\libtiff\tiff.vcxproj]
C:\Build\git\libtiff.mod\libtiff\tif_lerc.c(866,26): error C2440: 'function': cannot convert from 'double' to 'const un signed char *' [C:\Build\bin\libtiff\libtiff\tiff.vcxproj]
C:\Build\git\libtiff.mod\libtiff\tif_lerc.c(866,15): warning C4024: 'lerc_encodeForVersion': different types for formal and actual parameter 9 [C:\Build\bin\libtiff\libtiff\tiff.vcxproj]
C:\Build\git\libtiff.mod\libtiff\tif_lerc.c(867,34): error C2440: 'function': cannot convert from 'void *' to 'double'
[C:\Build\bin\libtiff\libtiff\tiff.vcxproj]
C:\Build\git\libtiff.mod\libtiff\tif_lerc.c(867,15): warning C4024: 'lerc_encodeForVersion': different types for formal and actual parameter 10 [C:\Build\bin\libtiff\libtiff\tiff.vcxproj]
C:\Build\git\libtiff.mod\libtiff\tif_lerc.c(868,32): warning C4047: 'function': 'unsigned char *' differs in levels of indirection from 'unsigned int' [C:\Build\bin\libtiff\libtiff\tiff.vcxproj]
C:\Build\git\libtiff.mod\libtiff\tif_lerc.c(868,15): warning C4024: 'lerc_encodeForVersion': different types for formal and actual parameter 11 [C:\Build\bin\libtiff\libtiff\tiff.vcxproj]
C:\Build\git\libtiff.mod\libtiff\tif_lerc.c(869,29): warning C4047: 'function': 'unsigned int' differs in levels of ind irection from 'unsigned int *' [C:\Build\bin\libtiff\libtiff\tiff.vcxproj]
C:\Build\git\libtiff.mod\libtiff\tif_lerc.c(869,13): warning C4024: 'lerc_encodeForVersion': different types for formal and actual parameter 12 [C:\Build\bin\libtiff\libtiff\tiff.vcxproj]
C:\Build\git\libtiff.mod\libtiff\tif_lerc.c(853,41): error C2198: 'lerc_encodeForVersion': too few arguments for call [
C:\Build\bin\libtiff\libtiff\tiff.vcxproj]

The build against v2.2.1 works correctly.