<p>If you want bigtiff functionality, please use libtiff 4.0 (or greater). Don't bother with the old/experimental version from <a href="http://bigtiff.org">bigtiff.org</a>.<br></p>
<p>Adam</p>
<div class="gmail_quote">On Jun 17, 2012 3:23 PM, "Agelos Pappas" <<a href="mailto:agelos@smartcode.gr">agelos@smartcode.gr</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
I was trying to compile OpenSlide using the unofficial BigTIFF modified<br>
version of libtiff available here:<br>
<a href="http://bigtiff.org/" target="_blank">http://bigtiff.org/</a><br>
<br>
in order to add support for BigTIFF in OpenSlide. Although I was able to<br>
compile BigTIFF and then OpenSlide successfully, I was getting runtime<br>
errors signifying that there was a problem in the libtiff library.<br>
I tried to test the library with an Aperio SVS file that previously<br>
worked fine, but was now giving errors.<br>
<br>
Specifically the problem was in this call:<br>
openslide-hash.c, Line 117:<br>
<br>
if (TIFFGetField(tiff, TIFFTAG_TILEBYTECOUNTS, &sizes) == 0)<br>
<br>
Even though TIFFGetField returned a correct value, the sizes pointer did<br>
not receive a value. The TIFFGetField function is implemented in<br>
tifflib, in the file tif_dir.c:<br>
<br>
This is an extract from libtiff<br>
case TIFFTAG_TILEBYTECOUNTS:<br>
_TIFFFillStriles( tif );<br>
*va_arg(ap, uint64**) = td->td_stripbytecount;<br>
break;<br>
<br>
in the modified BigTIFF libtiff version, the equivalent implementation<br>
looks like this (tif_dir.c):<br>
case TIFFTAG_TILEBYTECOUNTS:<br>
*va_arg(ap, uint32**) = td->td_stripbcsbuf;<br>
break;<br>
<br>
As you can see, the call to _TIFFFillStriles( tif ) is missing from the<br>
BigTIFF version and the function is nowhere defined. Thus OpenSlide does<br>
not work when built against the BigTIFF version.<br>
Does OpenSlide use a modified libtiff version? Has anyone else managed<br>
to add support for BigTIFF? Is there an official version of libtiff<br>
supporting BigTIFF?<br>
<br>
Regards<br>
Agelos<br>
<br>
<br>
_______________________________________________<br>
openslide-users mailing list<br>
<a href="mailto:openslide-users@lists.andrew.cmu.edu">openslide-users@lists.andrew.cmu.edu</a><br>
<a href="https://lists.andrew.cmu.edu/mailman/listinfo/openslide-users" target="_blank">https://lists.andrew.cmu.edu/mailman/listinfo/openslide-users</a><br>
</blockquote></div>