Return-Path: <tiff-bounces@lists.maptools.org>
Received: from mailgate006.isp.belgacom.be (mailgate006.isp.belgacom.be [195.238.5.212])
        by maildelivery007.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-IN-2.32) with ESMTP id l69KIV6N012066
        for <joris.at.lebbeke@skynet.be>; Mon, 9 Jul 2007 22:18:31 +0200
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from r153.dmsolutions.ca (HELO duke.maptools.org) ([209.217.116.153])
  by in.mx.skynet.be with ESMTP; 09 Jul 2007 22:18:30 +0200
Received: from duke.maptools.org (duke.maptools.org [127.0.0.1])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id l69K4NLT005876;
	Mon, 9 Jul 2007 16:05:32 -0400
Received: from mail.sidefx.com (mail.sidefx.com [149.99.58.193])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id l69K4LbS005873
	for <tiff@lists.maptools.org>; Mon, 9 Jul 2007 16:04:21 -0400
Received: from [192.168.235.105] (unknown [192.168.235.105])
	by mail.sidefx.com (Postfix) with ESMTP id 37E835C03E
	for <tiff@lists.maptools.org>; Mon,  9 Jul 2007 16:04:21 -0400 (EDT)
Message-ID: <4692949F.1030304@sidefx.com>
Date: Mon, 09 Jul 2007 16:03:43 -0400
From: Edward Lam <edward@sidefx.com>
User-Agent: Thunderbird 2.0.0.4 (Windows/20070604)
MIME-Version: 1.0
To: tiff@lists.maptools.org
Subject: Re: [Tiff] 64 Bit Vista Build Problems
References: <0E94FDA3505CB34EB57D190F68C7613A01758B6A@admin.dyknow.dyknow.com>	<Pine.SOC.4.60.0707091044470.922@blade.simplesystems.org>
	<0E94FDA3505CB34EB57D190F68C7613A017EB44A@admin.dyknow.dyknow.com>
In-Reply-To: <0E94FDA3505CB34EB57D190F68C7613A017EB44A@admin.dyknow.dyknow.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.4
Precedence: list
List-Id: TIFF and libtiff discussion <tiff.lists.maptools.org>
List-Unsubscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=unsubscribe>
List-Archive: <http://lists.maptools.org/mailman/private/tiff>
List-Post: <mailto:tiff@lists.maptools.org>
List-Help: <mailto:tiff-request@lists.maptools.org?subject=help>
List-Subscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=subscribe>
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org
X-UIDL: 000000000023ceae.000025b6
X-MSP-STORE: Mon, 09 Jul 2007 22:18:32 +0200
Status:   


 > 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

David Cheeseman wrote:
> 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!
> 
> David Cheeseman
> DyKnow(r)
> Systems Developer Intern
> 317.275.5890 (office)
> 317.275.5901 (fax)
>  
> 
> -----Original Message-----
> From: Bob Friesenhahn [mailto:bfriesen@simple.dallas.tx.us] 
> Sent: Monday, July 09, 2007 11:47 AM
> To: David Cheeseman
> 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.
> 
> Bob
> ======================================
> Bob Friesenhahn
> bfriesen@simple.dallas.tx.us,
> http://www.simplesystems.org/users/bfriesen/
> GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/
> 
> 
> 
> 
> _______________________________________________
> Tiff mailing list: Tiff@lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/tiff
> http://www.remotesensing.org/libtiff/

_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
