Return-Path: <tiff-bounces@lists.maptools.org>
X-Original-To: info@awaresystems.be
Delivered-To: info@awaresystems.be
Received: from mx-i.b-one.net (mx-i.one.com [91.198.169.56])
	by mail9.b-one.net (Postfix) with ESMTP id 5D7FB400165
	for <info@awaresystems.be>; Thu, 22 Jan 2009 17:27:28 +0100 (CET)
X-Virus-Scanned: by one.com
X-Spam-Score: 0
X-Spam-Level: 
X-Spam-Status: No, score=0 tagged_above=0 required=6 tests=[none]
X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4
Received: from lists.maptools.org (lists.maptools.org [65.39.174.144])
	by mx-i.b-one.net (Postfix) with ESMTP id 4F4368C10
	for <info@awaresystems.be>; Thu, 22 Jan 2009 17:27:27 +0100 (CET)
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by lists.maptools.org (Postfix) with ESMTP id EBCC41D18E0D1;
	Thu, 22 Jan 2009 11:26:40 -0500 (EST)
Received: from mail.sidefx.com (mail.sidefx.com [38.99.137.163])
	by lists.maptools.org (Postfix) with ESMTP id CAEF41D18E0B9
	for <tiff@lists.maptools.org>; Thu, 22 Jan 2009 11:23:44 -0500 (EST)
Message-ID: <49789D94.6020302@sidefx.com>
Date: Thu, 22 Jan 2009 11:23:48 -0500
From: Edward Lam <edward@sidefx.com>
User-Agent: Thunderbird 2.0.0.19 (Windows/20081209)
MIME-Version: 1.0
To: Frank Warmerdam <warmerdam@pobox.com>
References: <49769F6C.4020908@pobox.com> <49778F6A.6080700@sidefx.com>
In-Reply-To: <49778F6A.6080700@sidefx.com>
Cc: TIFF mailing list <tiff@lists.maptools.org>
Subject: Re: [Tiff] libtiff 4.0.0beta3
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.9
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>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org

Looks like I spoke too soon. I had previously only built libtiff with my 
custom build process and did not go through the usual nmake.

I did a pass using the canonical build instructions for MSVC and got 
some additional warnings similar to:

tif_lzw.c(389) : warning C4244: '+=' : conversion from 'tmsize_t' to 
'long', possible loss of data
tif_lzw.c(606) : warning C4244: '+=' : conversion from 'tmsize_t' to 
'long', possible loss of data
tif_lzw.c(715) : warning C4244: '=' : conversion from 'tmsize_t' to 
'long', possible loss of data

As for the tools, tiffcrop fails to compile on Windows. stdint.h is not 
available on Windows. I only took a quick look and I'm not sure if it's 
necessary?

Here is the patch that I did to get it to compile on Windows:

============================================================
--- tiffcrop.c  2009-01-11 15:04:22.000000000 -0500
+++ ../../tiff-4.0.0beta3.new/tools/tiffcrop.c  2009-01-22 
11:17:55.670500000 -0
500
@@ -117,7 +117,9 @@
  #include <stdio.h>
  #include <stdlib.h>
  #include <string.h>
+#if !defined(__WIN32__) && !defined(_MSC_VER)
  #include <stdint.h>
+#endif
  #include <math.h>
  #include <ctype.h>
  #include <limits.h>
@@ -130,6 +132,7 @@

  #ifndef HAVE_GETOPT
  extern int getopt(int, char**, char*);
+extern int optind;
  #endif

  #include "tiffio.h"
=============================================================

Regards,
-Edward

Edward Lam wrote:
> Hi Frank,
> 
> I justed tested this with a build on WinXP x64. Things seem to work fine 
> with my own narrow regression tests.
> 
> The only warning I got while compiling was:
> 
> tif_dirinfo.c(508) : warning C4133: 'function' : incompatible types - 
> from 'size_t *' to 'unsigned int *'
> 
> Regards,
> -Edward
> 
> Frank Warmerdam wrote:
>> Folks,
>>
>> With Bob's help I have uploaded a snapshot of CVS head which I have
>> dubbed libtiff 4.0.0 beta3.
>>
>>    http://download.osgeo.org/libtiff/tiff-4.0.0beta3.tar.gz
>>    http://download.osgeo.org/libtiff/tiff-4.0.0beta3.zip
>>
>> I would appreciate folks trying this out and reporting outstanding issues
>> via bugzilla.  Ideally I'd like to prepare a libtiff 4.0.0 release candidate
>> within the next month.
>>
>> Best regards,
> 
> _______________________________________________
> 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/
