From: gok@aeromap.com (Gennady Khokhorin)
Date: Tue, 2 Sep 2003 09:35:30 -0800
Subject: [Tiff] libtiff+libjpeg compilation error
Message-ID: <226D2307B478954E9FAE88927B70AD4E5F8C69@admin1.aeromap.com>
Content-Type: multipart/alternative;
    boundary="----_=_NextPart_001_01C37178.9B279BD2"

This is a multi-part message in MIME format.

------_=_NextPart_001_01C37178.9B279BD2
Content-Type: text/plain;
	charset="Windows-1251"
Content-Transfer-Encoding: quoted-printable

I'm trying to build libtiff.lib supporting jpeg compression (ex. =
quad-jpeg.tif from v3.4pics.tiff samples).
All attempts to use libtiff with libjpeg failed with following error =
message (tiffinfo.exe from tifflib tools):

"JPEGLib: JPEG parameter struct mismatch: library thinks size is 432, =
caller expects 464".

Debugging show failure on jpeg_decompress_struct at =
TIFFjpeg_create_decompress() stage.

Single/multithred options have no effect. Aligning structures to 1 byte =
(8 by default) change sizes to 415, 460 respectively.
I saw some time ago response from Andrey suggesting to check .lib, .h =
files involved in process. I have only one copy for each file.

Any advice will be greatly appreciated. My environment:
- libtiff v3.6.0-beta2;
- jpeg-6b;
- msvc++6.0 sp, w2k(sp4)

ps: tiffinfo.exe from tiffTools_bin_354.zip collection works fine.


Gennady Khokhorin
Software Developer,
AeroMap US, Intl
www.aeromap.com




------_=_NextPart_001_01C37178.9B279BD2
Content-Type: text/html;
	charset="Windows-1251"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dwindows-1251">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
6.0.6396.0">
<TITLE>libtiff+libjpeg compilation error</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=3D2 FACE=3D"Arial">I'm trying to build libtiff.lib =
supporting jpeg compression (ex. quad-jpeg.tif from v3.4pics.tiff =
samples).</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">All attempts to use libtiff with =
libjpeg failed with following error message (tiffinfo.exe from tifflib =
tools):</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">&quot;JPEGLib: JPEG parameter struct =
mismatch: library thinks size is 432, caller expects 464&quot;.</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Debugging show failure on =
jpeg_decompress_struct at TIFFjpeg_create_decompress() stage.</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Single/multithred options have no =
effect. Aligning structures to 1 byte (8 by default) change sizes to =
415, 460 respectively.</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">I saw some time ago response from =
Andrey suggesting to check .lib, .h files involved in process. I have =
only one copy for each file.</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Any advice will be greatly appreciated. =
My environment:</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">- libtiff v3.6.0-beta2;</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">- jpeg-6b;</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">- msvc++6.0 sp, w2k(sp4)</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">ps: tiffinfo.exe from =
tiffTools_bin_354.zip collection works fine.</FONT>
</P>
<BR>

<P><B><FONT COLOR=3D"#448593" SIZE=3D1 FACE=3D"Geneva">Gennady =
Khokhorin</FONT></B>

<BR><B><FONT COLOR=3D"#448593" SIZE=3D1 FACE=3D"Geneva">Software =
Developer,</FONT></B>

<BR><B><FONT COLOR=3D"#448593" SIZE=3D1 FACE=3D"Geneva">AeroMap US, =
Intl</FONT></B>

<BR><B><FONT COLOR=3D"#448593" SIZE=3D1 =
FACE=3D"Geneva">www.aeromap.com</FONT></B>
</P>
<BR>
<BR>

</BODY>
</HTML>
------_=_NextPart_001_01C37178.9B279BD2--

