2007.07.09 13:18 "[Tiff] 64 Bit Vista Build Problems", by David Cheeseman

2007.07.09 20:03 "Re: [Tiff] 64 Bit Vista Build Problems", by Edward Lam

 > To sum up, I'm looking for a fellow-Vista x64 developer who has built
 > the libtiff under the 64 bit environment and successfully used the
 > library in a Vista application or driver (a fellow driver developer
 > would be preferable).

FWIW, I'm on WinXP x64, using libtiff 3.8.0, libjpeg6a, zlib-1.2.3. Things seem to work on some simple test cases. Mind you, we use our own Makefiles and we build the .dll version. Make sure that you're compiling the static version of the library.

The only gotcha I found when we started compiling on x64 platforms was to make sure that SIZEOF_LONG is set correctly in tif_config.h. While it

  is 4 on MSVC, it is 8 on gcc. Mind you, our default usage is 8-bit,

RGBA, Deflate (or LZW)-compressed files. So it's not like I've tested a lot of code paths in libtiff. :)

To add to Bob's comments about easily avoiding the need to use libjpeg and zlib, there are precise instructions from http://www.remotesensing.org/libtiff/build.html on how to do this on Windows. However, I found the defines in tif_config.h (for 3.8.0 anyhow), not tiffconf.h.

Regards,

-Edward

First off, I do understand that the version has been updated to 3.8.2. However, the 3.8.2 version requires jpeglib and zlib, which the 3.6.1 version does not require. Also, when I compiled the 3.8.2 version using the latest jpeglib and zlib under an x64 platform, the jcapimin.c file conflicted with a windows sdk file:

C:\Program Files\Microsoft SDKs\Windows\v6.0\VC\Include\crtdefs.h(430): error C2371: 'size_t': redefinition; different basic types

        jcapimin.c: see declaration of 'size_t'

NMAKE: fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\bin\.\cl.EXE"': return code '0x2' Stop.

We've tried using the 3.8.1 before this and had similar issues, which is why we went back to the 3.6.1 version designed for the Win32 platform with 64 bit compatibility. The issue is that we can't import the library once it is built for some reason, so it's either a makefile issue or something simple like a VS2005 import conventions for 64 bit libraries (this is my first year developing Windows software).

To sum up, I'm looking for a fellow-Vista x64 developer who has built the libtiff under the 64 bit environment and successfully used the library in a Vista application or driver (a fellow driver developer would be preferable).

Thanks for your time and thanks in advance for relevant replies!

Cc: tiff@lists.maptools.org; Nuvious@gmail.com Subject: Re: [Tiff] 64 Bit Vista Build Problems

On Mon, 9 Jul 2007, David Cheeseman wrote:

> Hey,
> I'll start off by getting my request out of the way:
> If anyone knows how to compile the tiff library for 64 bit Vista,

> please let me know what I'm doing wrong or build steps for 64 bit Vista. > I have my attempt described bellow.

>
> I am currently trying to build the libtiff.lib using the Vista 64

> bit enviroment provided in the Windows Platform SDK and the > tiff-win32-3.6.1-2-src. According to documentation, the package

> should

In case you were not aware, the current release of libtiff is 3.8.2. The 3.6.1 release is very old.