Return-Path: <tiff-bounces@lists.maptools.org>
X-Original-To: info@awaresystems.be
Delivered-To: info@awaresystems.be
Received: from mx-h.b-one.net (mx-h.one.com [91.198.169.55])
	by mail9.b-one.net (Postfix) with ESMTP id 8557B400107
	for <info@awaresystems.be>; Wed,  4 Mar 2009 18:42:08 +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-h.b-one.net (Postfix) with ESMTP id 9F46A199B838
	for <info@awaresystems.be>; Wed,  4 Mar 2009 18:42:07 +0100 (CET)
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by lists.maptools.org (Postfix) with ESMTP id 953741D202786;
	Wed,  4 Mar 2009 12:41:30 -0500 (EST)
Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.29])
	by lists.maptools.org (Postfix) with ESMTP id DC7131D203E6B
	for <tiff@lists.maptools.org>; Wed,  4 Mar 2009 12:17:29 -0500 (EST)
Received: by yw-out-2324.google.com with SMTP id 2so7752838ywt.9
	for <tiff@lists.maptools.org>; Wed, 04 Mar 2009 09:17:24 -0800 (PST)
MIME-Version: 1.0
Received: by 10.90.29.17 with SMTP id c17mr41132agc.95.1236187044506; Wed, 04 
	Mar 2009 09:17:24 -0800 (PST)
In-Reply-To: <30309f9e0903040915t29d8bfd5u7826dde8110e8183@mail.gmail.com>
References: <30309f9e0903031251u3d10aae8hfe2cc606ce48a15e@mail.gmail.com>
	<Pine.SOC.4.64.0903031503290.1127@freddy.simplesystems.org>
	<30309f9e0903031310w3b2a2251gdaccf66d77d66e5a@mail.gmail.com>
	<49ADA1FC.6070509@sidefx.com>
	<30309f9e0903040915t29d8bfd5u7826dde8110e8183@mail.gmail.com>
Date: Wed, 4 Mar 2009 12:17:24 -0500
Message-ID: <30309f9e0903040917m525db212g8d47afbfdc863573@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="===============0835581062=="
Mime-version: 1.0
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org

--===============0835581062==
Content-Type: multipart/alternative; boundary=001636163cc7a9ef7204644e39f6

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

Oh, and I forgot to mention (but didn't forget to do)

nmake /f Makefile.vc

which eventually (after some initial problems) completed without errors, so
I have compiled the library from source.

On Wed, Mar 4, 2009 at 12:15 PM, Steven Lehar <slehar@gmail.com> wrote:

>
> 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
>>
>>

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

<div>Oh, and I forgot to mention (but didn&#39;t forget to do)</div>
<div>=A0</div>
<div>nmake /f Makefile.vc</div>
<div>=A0</div>
<div>which eventually (after some initial problems) completed without error=
s, so I have compiled the library from source.<br><br></div>
<div class=3D"gmail_quote">On Wed, Mar 4, 2009 at 12:15 PM, Steven Lehar <s=
pan dir=3D"ltr">&lt;<a href=3D"mailto:slehar@gmail.com">slehar@gmail.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">
<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/" tar=
get=3D"_blank">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>
<div></div>
<div class=3D"h5">
<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" target=3D"_blank">edw=
ard@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></div></div></bloc=
kquote>
</div><br>

--001636163cc7a9ef7204644e39f6--

--===============0835581062==
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/
--===============0835581062==--
