2015.06.02 06:44 "[Tiff] Compiling 4.0.4beta on 64 bit MSWin has some problems.", by Graeme Gill

2015.06.02 06:44 "[Tiff] Compiling 4.0.4beta on 64 bit MSWin has some problems.", by Graeme Gill

  1. Using tif_unix.c compiles, but doesn't work properly on 32 bit MSWin - it seemed to sit there creating an infinity big file on write. (I didn't test on 64 bit MSWin).
  2. tif_win32.c won't compile without the valid warning that you can't cast a (64 bit) HANDLE to an (32 bit) int, which is what's happening with TIFFFdOpen()'s first argument and in several other places, and in the main tiff structure in tiffiop.h where tif_fd is an int, and following on
  3. from that with TIFFFileno() and TIFFSetFileno(), etc.
  4. To quiet the warning I ended up hacking in a tfd_t type that is a thandle_t for MSWin and and int for everything else, and changing the declaration of the structure and functions accordingly.
  5. There were also lots of warning inside tif_dirwrite.c because its functions have uint16 tag parameters, while the TIFFFieldInfo structure has field_tag of type ttag_t which is uint32.

Graeme Gill.