Return-Path: <tiff-bounces@lists.maptools.org>
X-Original-To: info@awaresystems.be
Delivered-To: info@awaresystems.be
Received: from mx-j.b-one.net (mx-j.one.com [91.198.169.57])
	by mail9.b-one.net (Postfix) with ESMTP id C392C400107
	for <info@awaresystems.be>; Wed,  4 Mar 2009 18:41:29 +0100 (CET)
X-Virus-Scanned: by one.com
X-Spam-Score: 0.001
X-Spam-Level: 
X-Spam-Status: No, score=0.001 tagged_above=0 required=6
	tests=[HTML_MESSAGE=0.001]
X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4
Received: from lists.maptools.org (lists.maptools.org [65.39.174.144])
	by mx-j.b-one.net (Postfix) with ESMTP id 33FE24AFC5C
	for <info@awaresystems.be>; Wed,  4 Mar 2009 18:41:28 +0100 (CET)
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by lists.maptools.org (Postfix) with ESMTP id 164521D202778;
	Wed,  4 Mar 2009 12:40:43 -0500 (EST)
Received: from el-out-1112.google.com (el-out-1112.google.com [209.85.162.181])
	by lists.maptools.org (Postfix) with ESMTP id 625ED1D202989
	for <tiff@lists.maptools.org>; Wed,  4 Mar 2009 12:15:29 -0500 (EST)
Received: by el-out-1112.google.com with SMTP id r23so2571413elf.9
	for <tiff@lists.maptools.org>; Wed, 04 Mar 2009 09:15:29 -0800 (PST)
MIME-Version: 1.0
Received: by 10.90.105.6 with SMTP id d6mr51629agc.49.1236186925669; Wed, 04 
	Mar 2009 09:15:25 -0800 (PST)
In-Reply-To: <49ADA1FC.6070509@sidefx.com>
References: <30309f9e0903031251u3d10aae8hfe2cc606ce48a15e@mail.gmail.com>
	<Pine.SOC.4.64.0903031503290.1127@freddy.simplesystems.org>
	<30309f9e0903031310w3b2a2251gdaccf66d77d66e5a@mail.gmail.com>
	<49ADA1FC.6070509@sidefx.com>
Date: Wed, 4 Mar 2009 12:15:25 -0500
Message-ID: <30309f9e0903040915t29d8bfd5u7826dde8110e8183@mail.gmail.com>
From: Steven Lehar <slehar@gmail.com>
To: Edward Lam <edward@sidefx.com>
Cc: tiff@lists.maptools.org
Subject: Re: [Tiff] Building Libtiff in Visual Studio under Windows?
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: multipart/mixed; boundary="===============1999956066=="
Mime-version: 1.0
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org

--===============1999956066==
Content-Type: multipart/alternative; boundary=0016361643a9949fa004644e32d0

--0016361643a9949fa004644e32d0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

Thanks a lot for your help guys, I'm *ALMOST* there now!

I downloaded LibTiff from ftp.remotesensing.org tiff-3.8.2.zip,
installed it in C:\Program Files\tiff-3.8.2,

edited libtiff\tiffconf.h and commented out...
  /* #define JPEG_SUPPORT 1 */
  /* #define PIXARLOG_SUPPORT 1 */
  /* #define ZIP_SUPPORT 1 */
as suggested in the documentation (after discovering it was indeed
necessary)

There is no tiff-3.8.2\include folder, but I found a bunch of *.h files in
tiff-3.8.2\libtiff. Now in Visual Studio, in my TestLibTiff project I did

Project > Properties > C/C++ > Additional Include Directories, added
  "C:\Program Files\tiff-3.8.2\libtiff"

Project > Properties > Linker > Additional library directories, added
   "C:\Program Files\tiff-3.8.2\libtiff"

In stdafx.h added
  #include "tiffio.h"

then [F5] (build solution) and I get this error:

Error 1 error LNK2019: unresolved external symbol _TIFFOpen referenced in
function _wmain TestTiffLib.obj
Error 2 fatal error LNK1120: 1 unresolved externals C:\Documents and
Settings\Flight Landata\My Documents\Visual Studio
2005\Projects\TestTiffLib\Debug\TestTiffLib.exe 1
Any idea what I might be missing?



On Tue, Mar 3, 2009 at 4:32 PM, Edward Lam <edward@sidefx.com> wrote:

> For Windows, I suggest just building libtiff yourself from source using
> nmake. See:
>
> http://www.remotesensing.org/libtiff/build.html#PC
>
> It seems rather backwards to me to use gcc on Windows unless you absolutely
> have to when you have access to such a great debugger like Visual Studio.
>
> Regards,
> -Edward
>
>

--0016361643a9949fa004644e32d0
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div><br>Thanks a lot for your help guys, I&#39;m *ALMOST* there now!</div>
<div>=A0</div>
<div>I downloaded LibTiff from <a href=3D"ftp://ftp.remotesensing.org/">ftp=
.remotesensing.org</a> tiff-3.8.2.zip,</div>
<div>installed it in C:\Program Files\tiff-3.8.2,</div>
<div>=A0</div>
<div>edited libtiff\tiffconf.h and commented out...</div>
<div>=A0 /* #define JPEG_SUPPORT 1 */</div>
<div>=A0 /* #define PIXARLOG_SUPPORT 1 */</div>
<div>=A0 /* #define ZIP_SUPPORT 1 */</div>
<div>as suggested in the documentation (after discovering it was indeed nec=
essary)</div>
<div>=A0</div>
<div>There is no tiff-3.8.2\include folder, but I found a bunch of *.h file=
s in tiff-3.8.2\libtiff. Now in Visual Studio, in my TestLibTiff project I =
did</div>
<div>=A0</div>
<div>Project &gt; Properties &gt; C/C++ &gt; Additional Include Directories=
, added</div>
<div>=A0 &quot;C:\Program Files\tiff-3.8.2\libtiff&quot;</div>
<div>=A0</div>
<div>Project &gt; Properties &gt; Linker &gt; Additional library directorie=
s, added</div>
<div>
<div>=A0 &quot;C:\Program Files\tiff-3.8.2\libtiff&quot;</div>
<div>=A0</div>
<div>In stdafx.h added</div>
<div>=A0 #include &quot;tiffio.h&quot;</div>
<div>=A0</div>
<div>then [F5] (build solution) and I get this error:</div>
<div>=A0</div>
<div>Error=A01=A0error LNK2019: unresolved external symbol _TIFFOpen refere=
nced in function _wmain=A0TestTiffLib.obj=A0<br>Error=A02=A0fatal error LNK=
1120: 1 unresolved externals=A0C:\Documents and Settings\Flight Landata\My =
Documents\Visual Studio 2005\Projects\TestTiffLib\Debug\TestTiffLib.exe=A01=
=A0<br>
</div></div>
<div>Any idea what I might be missing?</div>
<div>=A0</div>
<div><br>=A0</div>
<div class=3D"gmail_quote">On Tue, Mar 3, 2009 at 4:32 PM, Edward Lam <span=
 dir=3D"ltr">&lt;<a href=3D"mailto:edward@sidefx.com">edward@sidefx.com</a>=
&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"PADDING-LEFT: 1ex; MARGIN: 0px 0=
px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">For Windows, I suggest just buil=
ding libtiff yourself from source using nmake. See:<br><br><a href=3D"http:=
//www.remotesensing.org/libtiff/build.html#PC" target=3D"_blank">http://www=
.remotesensing.org/libtiff/build.html#PC</a><br>
<br>It seems rather backwards to me to use gcc on Windows unless you absolu=
tely have to when you have access to such a great debugger like Visual Stud=
io.<br><br>Regards,<br>-Edward<br><br></blockquote></div>

--0016361643a9949fa004644e32d0--

--===============1999956066==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

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