Return-Path: <tiff-bounces@lists.maptools.org>
Received: from inas028.isp.belgacom.be (localhost [127.0.0.1])
        by inav025.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-AV-3.00) with ESMTP id j8RJM3Ui019196
        for <joris.at.lebbeke@skynet.be>; Tue, 27 Sep 2005 21:22:03 +0200
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from inmx019.isp.belgacom.be (inmx019.isp.belgacom.be [195.238.3.138])
        by inas028.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-AS-2.03) with ESMTP id j8RJLwXh029062
        for <joris.at.lebbeke@skynet.be>; Tue, 27 Sep 2005 21:21:58 +0200
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from duke.maptools.org (r153.dmsolutions.ca [209.217.116.153] (may be forged))
        by inmx019.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-2.32) with ESMTP id j8RJLqYW000488
        for <joris.at.lebbeke@skynet.be>; Tue, 27 Sep 2005 21:21:53 +0200
        (envelope-from <tiff-bounces@lists.maptools.org>)
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 j8RJGQev017108;
	Tue, 27 Sep 2005 15:17:28 -0400
Received: from mail.exinor.net (as3-2-6.t.lk.bonet.se [194.236.155.184])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id j8RJGMfg017105
	for <tiff@lists.maptools.org>; Tue, 27 Sep 2005 15:16:23 -0400
Received: from [192.168.0.2] (1-1-2-20a.lk.lk.bostream.se [82.183.136.76])
	(authenticated bits=0)
	by mail.exinor.net (8.13.4/8.13.4) with ESMTP id j8RJGH6c030344
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)
	for <tiff@lists.maptools.org>; Tue, 27 Sep 2005 21:16:19 +0200
Message-ID: <43399A81.2070909@exinor.net>
Date: Tue, 27 Sep 2005 21:16:17 +0200
From: Nicklas Norling <exinor@exinor.net>
User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: tiff@lists.maptools.org
Subject: Re: [Tiff] libtiff 3.7.4 win32 fails compilation
References: <43397018.3020002@exinor.net>
In-Reply-To: <43397018.3020002@exinor.net>
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.00000c9c
X-MSP-STORE: Tue, 27 Sep 2005 21:22:09 +0200
Status:   

Nicklas Norling wrote:

> Hi,
>
> I've downloaded tiff-3.7.4.zip and tried to compile using VS.NET.
> I have the default settings (unmodified source tree) and get:
>
>        cl /nologo /Ox /MD /GX /W3 -I.   -DDEFAULT_EXTRASAMPLE_AS_ALPHA 
> -DSTRIPC
> T=TIFF_STRIPCHOP -DLOGLUV_SUPPORT -DNEXT_SUPPORT -DTHUNDER_SUPPORT 
> -DLZW_SUPPORT
> S_SUPPORT -DCCITT_SUPPORT -DTIF_PLATFORM_CONSOLE -DFILLODER_LSB2MSB  
> /c tif_jpeg
> tif_jpeg.c
> tif_jpeg.c(75) : fatal error C1083: Cannot open include file: 
> 'jpeglib.h': No su
> directory
> NMAKE : fatal error U1077: 'cl' : return code '0x2'
> Stop.
>
> I checked the nmake.opt file and made sure jpg support is commented 
> and also tried
> commenting CHECK_JPEG_YCBCR_SUBSAMPLING with no effect.
>
> Not being a C guy it's certianly possible I've screwed something up...
> Any pointers?
> /Nicke

This now compiles. The problem I found was that the libtiff subdir 
Makefile.vc contains two statements
top copy tiffconf.h.in -> tiffconf.h and tif_conf.h.in -> tif_conf.h. 
Since (guessing now) the tiffconf.h file
already exists in the zip distribution it won't get overwritten and only 
the tif_conf.h presumably gets created.

I removed the original tiffconf.h file and the tif_conf.h file and 
re-ran nmake. This time the correct tiffconf.h
was created but no (!) tif_conf.h, the compile worked (with a few 
warnings that looked benign to me).
I guess the nmake.opt settings are ignored in this file for some reason. 
Maybe this should somehow be fixed?
Fiddling with the original tiffconf.h will make the compile stop because 
of missing zip lib.

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