| AWARE [SYSTEMS] | Imaging expertise for the Delphi developer | |||||||
![]() |
TIFF and LibTiff Mailing List Archive | |||||||
LibTiff Mailing List
TIFF and LibTiff Mailing List Archive Contact
The TIFF Mailing List Homepage |
Thread2009.03.04 17:17 "Re: Building Libtiff in Visual Studio under Windows?", by Steven LeharOh, 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 >> >> |
|||||||