AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2006.09.05 18:12 "[Tiff] Building libtiff using Visual C++ 2005 Express Edition", by Stuart White
2006.09.05 18:55 "Re: [Tiff] Building libtiff using Visual C++ 2005 Express Edition", by Edward Lam
2006.09.05 20:11 "Re: [Tiff] Building libtiff using Visual C++ 2005 Express Edition", by Stuart White
2006.09.05 20:38 "Re: [Tiff] Building libtiff using Visual C++ 2005 Express Edition", by Mateusz Loskot
2006.09.06 05:01 "Re: [Tiff] Building libtiff using Visual C++ 2005 Express Edition", by Anurag Singh
2006.09.06 09:28 "Re: [Tiff] Building libtiff using Visual C++ 2005 Express Edition", by Stuart White

2006.09.05 18:55 "Re: [Tiff] Building libtiff using Visual C++ 2005 Express Edition", by Edward Lam

AFAIK, MSVC++ 2005 Express doesn't come with the Platform SDK. You need to download it separately. For your sanity's sake, you will also want to copy the PlatformSDK include files into the path where MSVC++ 2005 expects them. See the directory paths within Visual Studio. I think it's something like the PlatformSDK subdirectory under the VC subdirectory of where you installed it. I've also had good luck with installing it there directly since I never plan on uninstalling either of them.

-Edward

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?