2005.09.27 16:15 "[Tiff] libtiff 3.7.4 win32 fails compilation", by Nicklas Norling

2005.12.01 23:42 "[Tiff] libtiff.lib library nmake error on Windows", by Jacques, David - Fort Worth, TX

I'm encountering some problems compiling the libtiff 3.7.4 software on my Windows system.

I'm getting this error:

"tif_jpeg.c(75): fatal error C1083: Cannot open include file:

'jpeglib.h': No such file or directory

NMAKE: fatal error U1077: 'cl': return code '0x2'"

Does anyone have a settings for a working Win32 console project for this w/out having jpeg set up?

I don't know much about nmake syntax, so I don't know why commenting out the JPEG stuff in the nmake.opt file doesn't solve this problem. I tried making a minimal program that just opens a .tif file and reads a tag,

 but I get linker errors.

tiffopen.obj: error LNK2019: unresolved external symbol _TIFFClose referenced in function _main tiffopen.obj: error LNK2019: unresolved external symbol _TIFFOpen referenced in function _main

So does one need the .lib files to be successfully built to use these functions?

If so and I can't get the nmake to work... Well it's a real show-stopper.

I wish to do the following...

  1. determine if a .tif file is a regular tif or geotiff
  2. if it is not geotiff, read the Image Width & Image Length tags, store these in variables
  3. compute geographic extent of the tiff by using the .tfw values & the image dimensions.

Thanks in advance..


-----Original Message-----

From: tiff-bounces@lists.maptools.org [mailto:tiff-bounces@lists.maptools.org] On Behalf Of Andrey Kiselev

Subject: Re: [Tiff] Error by creating libtiff.lib library:


On Tue, Nov 22, 2005 at 09:19:20AM +0100, Igor Roth wrote:

I have downloaded your tiff-3.7.4.zip packege and wanted to create

the TIFF-Libraries with:

C:\LIBTIFF\LIBTIFF> nmake /f makefile.vc

The following error has appeared at the compile time.

The file jpeglib.h is really not present in this packege.

What can I do to create this libraries?

Thank you




-DFILLODER_LSB2MSB /c tif_jpeg.c


tif_jpeg.c(75): fatal error C1083: Include-Datei kann nicht geoeffnet werden: 'jpeglib.h': No such file or directory


I can suppose that you have built the library on Unix system using configure script and afterwards rebuilt it on Windows from the same source tree, but without 'make distclean' command. You should remove the old tif_config.h file and start nmake. Hope that helps.