2006.09.05 18:12 "[Tiff] Building libtiff using Visual C++ 2005 Express Edition", by Stuart White

2006.09.06 05:01 "Re: [Tiff] Building libtiff using Visual C++ 2005 Express Edition", by Anurag Singh

i got the same problem... you can remove tif_unix.c if you are making on windows.

if your machine have another VC IDE then you can specify the same path for windows.h.

one thing more which version of libtiff your using...in latest version tif_unix.c have not include windows.h.

in latesr version there's just two file tif_win3.c and tif_win32.c includes windows.h.

act there are the platform dependent files so you can remove it. ther's already tif_msdos.c. this will also work for you.

Anurag

On 9/5/06, Stuart White <stuart.white1@gmail.com> wrote:

I'm attempting to build libtiff using the freely available Visual C++ 2005 Express Edition.

Following the build instructions, I've done the following:

  1. Modified libtiff\tiffconf.h to comment-out the entries for JPEG_SUPPORT, PIXARLOG_SUPPORT, and ZIP_SUPPORT (because, at this point, I don't have libjpeg or zlib built either).
  2. Executed the Visual C++ command-line environment setup script.

@"C:\Program Files\Visual Studio 2005 Express Editions\VC\vcvarsall.bat" x86

3. Changed into the libtiff directory and typed the following:

nmake /f makefile.vc clean
nmake /f makefile.vc

I receive the following error:

tif_unix.c(185): fatal error C1083: Cannot open include file: 'windows.h': No such file or directory

Looking at tif_unix.c, it contains the following code:

#ifdef __WIN32__
#include <windows.h>

...etc...

I searched the entire installation Visual C++ 2005 Express Edition directory for windows.h, and nothing came back.

So.... my question is - has anyone successfully built libtiff using this compiler? If so, can you describe what steps you followed?