Return-Path: <tiff-bounces@lists.maptools.org>
Received: from inas016.isp.belgacom.be (localhost [127.0.0.1])
        by inav002.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-AV-3.00) with ESMTP id j7N2NWAt004724
        for <joris.at.lebbeke@skynet.be>; Tue, 23 Aug 2005 04:23:32 +0200
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from inmx013.isp.belgacom.be (inmx013.isp.belgacom.be [195.238.2.216])
        by inas016.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-AS-2.03) with ESMTP id j7N2NMlM010130
        for <joris.at.lebbeke@skynet.be>; Tue, 23 Aug 2005 04:23:22 +0200
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from duke.maptools.org (r153.dmsolutions.ca [209.217.116.153] (may be forged))
        by inmx013.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-2.32) with ESMTP id j7N2NIvU013716
        for <joris.at.lebbeke@skynet.be>; Tue, 23 Aug 2005 04:23:18 +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 j7N2IlLJ004530;
	Mon, 22 Aug 2005 22:19:22 -0400
Received: from mailhub131.itcs.purdue.edu (mailhub131.itcs.purdue.edu
	[128.210.5.131])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id j7N2Ijm6004526
	for <tiff@lists.maptools.org>; Mon, 22 Aug 2005 22:18:46 -0400
Received: from loftroom (dsl-147-034.resnet.purdue.edu [128.211.147.34])
	by mailhub131.itcs.purdue.edu (8.13.4/8.13.4/internal-smtp) with ESMTP
	id j7N2IhFE022015; Mon, 22 Aug 2005 21:18:43 -0500
From: "Mark R. Olin" <olinm@purdue.edu>
To: <tiff@lists.maptools.org>
Subject: RE: [Tiff] win32 libtiff
Date: Mon, 22 Aug 2005 21:18:38 -0500
Organization: Purdue
Message-ID: <000101c5a788$f9662920$6401a8c0@loftroom>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook, Build 10.0.2627
Importance: Normal
In-Reply-To: <000001c5a788$6d9db4d0$6401a8c0@loftroom>
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-PMX-Version: 4.7.1.128075
X-PerlMx-Virus-Scanned: Yes
Cc: 
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.4
Precedence: list
Reply-To: olinm@purdue.edu
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.00000b1b
X-MSP-STORE: Tue, 23 Aug 2005 04:23:41 +0200
Status:   

Hi Larry,

I am very interested in what you have.  I will contact you
directly.  I do have VC6, but will have to get the 2003
compiler from microsoft.

Mark

>
>Hi Mark,
>I finally got the zlib+jpeg+libtiff combo to play happily in 
>Microsoft-land with a strange mix of a VC IDE project file for 
>jpeg (never got the command line compile to work right), and 
>command line compiles of libtiff and zlib. I can send these to 
>you if you like, but they do include some compiler switches 
>that require either VC7 or the 2003 optimizing compiler 
>download from microsoft--it's free if you have VC6. Please 
>contact me directly if you want the files and more details. 
>Larry M. Grill
>NUGLYPHIX
>Tel: 715 497-2351
>Fax: 413 280-2784
>larry@nuglyphix.com
>www.nuglyphix.com 
>
>
>Mark R. Olin wrote: 
>Yeah, I am getting the drift of what Larry, Jeff and Edward 
>are saying. I am trying different things along those lines, 
>including adding the /MDd to "makefile.vc" and to the command 
>line link options in Codewarrior. And I don't set the flag for 
>JPEG_SUPPORT, so it only creates binaries for libtiff.dll and 
>libtiff.lib, and my program only requires the 
>libtiff.dll now.
>
>But still no luck.  Same error:
>
>"Invalid Address specified to RtlFreeHeap"
>
>I will check out the light reading at the msdn weblink that 
>Jeff gave me and try to get better insight into this peculiar problem.
>
>Mark
>
>
>  
>-----Original Message-----
>From: tiff-bounces@lists.maptools.org 
>[mailto:tiff-bounces@lists.maptools.org] On Behalf Of Larry Grill
>Sent: Friday, August 19, 2005 6:59 PM
>To: tiff@lists.maptools.org
>Subject: Re: [Tiff] win32 libtiff
>
>
>Yeah, like Jeff said.
>I've run into similar strangeness. If you are linking zlib 
>and jpeg you 
>should also compile those with the same static or 
>multithreaded options 
>or you can run into problems.
>
>Larry M. Grill
>NUGLYPHIX
>Tel: 715 497-2351
>Fax: 413 280-2784
>larry@nuglyphix.com
>www.nuglyphix.com 
>
>
>
>Jeff Breidenbach wrote:
>
>    
>Check to make sure your program and libtiff were compiled 
>      
>against the 
>    
>same runtime, i.e. all the /MDd or /MT or /ML or whatever compiler 
>flags are the same across all the software. I've found that 
>      
>things can 
>    
>almost - but not quite - work when there is a mismatch.
>
>http://msdn.microsoft.com/library/default.asp?url=/library/en
>      
>-us/vccore
>    
>/html/_core_.2f.MD.2c_2f.ML.2c_2f.MT.2c_2f.LD.asp
>
>
>
>
>On Fri, 2005-08-19 at 13:37 -0700, Mark R. Olin wrote:
> 
>
>      
>I was able to compile a binary lib and dll using "nmake" 
>(begrudgingly), which is a MS Visual Studio utility (I have it, but 
>don't use much).
>
>I read comments in "makefile.vc" in the libtiff distribution which 
>said to execute
>
>nmake /f makefile.vc all
>
>and that worked to supply me with natively compiled libtiff.lib and 
>libtiff.dll.
>
>Linking them into my program using Codewarrior IDE, I am 
>        
>able to use 
>    
>the TIFF routines successfully again, but with the same 
>        
>unusual Access 
>    
>Violation and runtime error in ntdll.dll.
>
>Invalid Address specified to RtlFreeHeap( 00140000, 0014A2F8 )
>
>Since I am using two different linking environments, 
>        
>Codewarrior and 
>    
>MSVC, I am thinking that the problem lies there.
>
>Anyway, thanks to Edward L. for the new direction.
>
>Mark
>
>
>   
>
>        
>I'll work with Cygwin gcc and make and let you know how it goes. 
>Gotta install Cygwin first though.
>
>Thanks...
>
>     
>
>          
>I really recommend setting up make. There's a win32 version
>of make that you can compile as well although I'm not sure 
>how well it works. We're using the cygwin version of gnu make.
>
>Regards,
>-Edward
>
>       
>
>            
>_______________________________________________
>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/tif> f
>
>    
>http://www.remotesensing.org/libtiff/
>
>
>
>  
>

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