Return-Path: <tiff-bounces@lists.maptools.org>
Received: from mailgate001.isp.belgacom.be (mailgate001.isp.belgacom.be [195.238.6.86])
        by maildelivery004.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-IN-2.32) with ESMTP id l6AKNQe4003684
        for <joris.at.lebbeke@skynet.be>; Tue, 10 Jul 2007 22:23:27 +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; 10 Jul 2007 22:23:26 +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 l6AK9RrP025634;
	Tue, 10 Jul 2007 16:10:06 -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 l6AK9N3Z025631
	for <tiff@lists.maptools.org>; Tue, 10 Jul 2007 16:09:24 -0400
Received: from [192.168.235.105] (unknown [192.168.235.105])
	by mail.sidefx.com (Postfix) with ESMTP id B55A05C00C;
	Tue, 10 Jul 2007 16:09:21 -0400 (EDT)
Message-ID: <4693E74A.9070504@sidefx.com>
Date: Tue, 10 Jul 2007 16:08:42 -0400
From: Edward Lam <edward@sidefx.com>
User-Agent: Thunderbird 2.0.0.4 (Windows/20070604)
MIME-Version: 1.0
To: David Cheeseman <dcheeseman@dyknow.com>
References: <0E94FDA3505CB34EB57D190F68C7613A01758B6F@admin.dyknow.dyknow.com>
In-Reply-To: <0E94FDA3505CB34EB57D190F68C7613A01758B6F@admin.dyknow.dyknow.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Cc: tiff@lists.maptools.org
Subject: [Tiff] Re: More question about Vista x64 tifflib build.
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.000025d3
X-MSP-STORE: Tue, 10 Jul 2007 22:23:31 +0200
Status:   

David Cheeseman wrote:
> Edward,
>     So I followed your build instruction and managed to get a compiled 
> library of the 3.8.2 libtiff.lib and to get it out of the way I'm very 
> grateful for this information.  However, I've run into the same problem 
> I did when I tried to hook into the library from C driver code, none of 
> the functions can be reached and I get several unresolved external symbols.

Our build system is quite different so it wouldn't help you. Anyhow, so 
I became interested and tried compiling 3.8.2. Here's what I did:

- Commented out the #define's in tiffconf.h for PIXARLOG_SUPPORT,
   ZIP_SUPPORT, and JPEG SUPPORT.
- From the Start menu, chose Visual Studio 2005 x64 Win64 Command Prompt
- cd to the tiff-3.8.2 directory
- nmake -f Makefile.vc
- This now creates the libtiff.lib file inside the libtiff directory.
- For testing, I just cd into libtiff and put the example file source
   file from the website,
      http://www.remotesensing.org/libtiff/libtiff.html#tiffrgbaimage
   (calling it example.c). Commented out the "...process raster data..."
   section.
- Now test compile (in the shell):
      cl /Ox /GX /MD example.c /link libtiff.lib

This all compiled and seemed to run fine when I ran it with a test 
image. Of course, I didn't verify the actual data read. :)

Cheers,
-Edward

>     My new question is, how do you import the libtiff.lib file in such a 
> way that the functions are visible in Visual C?  Also, upon rebuilding 
> our 32bit lib under 3.8.2, I ran into the same issue.  Am I using the 
> wrong build tool?  What modifications did you make to your Makefile?  As 
> far as I know all you need to do to build a 64 bit library is to run 
> 'setenv /x64 /vista' in the platform sdk (which uses nmake).  Could you 
> post your buildsteps for x64?
>     I know this is a lot to ask so I thank you in advance for any more 
> information! 

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