<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Thank you Adam, it worked like a charm! I didn't really know that
    there was official support for BigTIFF in libtiff.<br>
    <br>
    Cheers<br>
    Agelos<br>
    <br>
    On 18/6/2012 1:48 πμ, Adam Goode wrote:
    <blockquote
cite="mid:CADN=WdruJRAfSkEQFmDfqXerP6GmvY1yVE06TNNFfHrBmpWsvQ@mail.gmail.com"
      type="cite">
      <p>If you want bigtiff functionality, please use libtiff 4.0 (or
        greater). Don't bother with the old/experimental version from <a
          moz-do-not-send="true" 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"
        &lt;<a moz-do-not-send="true" href="mailto:agelos@smartcode.gr">agelos@smartcode.gr</a>&gt;
        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 moz-do-not-send="true" 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, &amp;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-&gt;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-&gt;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 moz-do-not-send="true"
            href="mailto:openslide-users@lists.andrew.cmu.edu">openslide-users@lists.andrew.cmu.edu</a><br>
          <a moz-do-not-send="true"
            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>
      <p class="" avgcert""="" color="#000000" align="left">No virus
        found in this message.<br>
        Checked by AVG - <a moz-do-not-send="true"
          href="http://www.avg.com">www.avg.com</a><br>
        Version: 2012.0.2180 / Virus Database: 2433/5075 - Release Date:
        06/17/12</p>
    </blockquote>
  </body>
</html>