Return-Path: <tiff-bounces@remotesensing.org>
Received: from inmx011.isp.belgacom.be (inmx011.isp.belgacom.be [195.238.3.50])
        by mailst035.isp.belgacom.be (8.12.11/8.12.11/Skynet-MAILSTORE-2.14) with ESMTP id j2EFsS2Z007859
        for <joris.at.lebbeke@skynet.be>; Mon, 14 Mar 2005 16:54:28 +0100
        (envelope-from <tiff-bounces@remotesensing.org>)
Received: from xserve.flids.com (adsl-065-083-169-202.sip.mco.bellsouth.net [65.83.169.202])
        by inmx011.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-2.32) with ESMTP id j2EFsFHv000749
        for <joris.at.lebbeke@skynet.be>; Mon, 14 Mar 2005 16:54:15 +0100
        (envelope-from <tiff-bounces@remotesensing.org>)
Received: from adsl-065-083-169-202.sip.mco.bellsouth.net (localhost [127.0.0.1])
	by xserve.flids.com (Postfix) with ESMTP
	id 014DF126E498; Mon, 14 Mar 2005 10:54:00 -0500 (EST)
X-Original-To: tiff@remotesensing.org
Delivered-To: tiff@remotesensing.org
Received: from sccimhc91.asp.att.net (sccimhc91.asp.att.net [63.240.76.165])
	by xserve.flids.com (Postfix) with ESMTP id 2980F126E488
	for <tiff@remotesensing.org>; Mon, 14 Mar 2005 10:53:58 -0500 (EST)
Received: from quillnet (12-203-111-247.client.insightbb.com[12.203.111.247])
	by sccimhc91.asp.att.net (sccimhc91) with SMTP
	id <20050314155357i9100jvn7fe>; Mon, 14 Mar 2005 15:53:57 +0000
Message-ID: <001001c528ae$145718c0$6502a8c0@insightbb.com>
From: "Roger Watkins" <RogerQuillDisc@insightbb.com>
To: <tiff@remotesensing.org>
Date: Mon, 14 Mar 2005 09:54:09 -0600
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
Subject: [Tiff] libTIFF 3.7.1 vs. Borland C++ Builder 5
X-BeenThere: tiff@remotesensing.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: TIFF and libtiff discussion  <tiff.remotesensing.org>
List-Unsubscribe: <http://xserve.flids.com/mailman/listinfo/tiff>,
	<mailto:tiff-request@remotesensing.org?subject=unsubscribe>
List-Archive: <http://xserve.flids.com/pipermail/tiff>
List-Post: <mailto:tiff@remotesensing.org>
List-Help: <mailto:tiff-request@remotesensing.org?subject=help>
List-Subscribe: <http://xserve.flids.com/mailman/listinfo/tiff>,
	<mailto:tiff-request@remotesensing.org?subject=subscribe>
Sender: tiff-bounces@remotesensing.org
Errors-To: tiff-bounces@remotesensing.org
X-UIDL: 4ab95e550259e16d6565a740715d8fe7

Hello all,
I am indeed a newbie here.  I have been programming in C  for 20+ years, and
have written various types of programs for personal and internal use at the
various companies that have employed me, and a couple of embedded control
applications in end products.  Total coding experience probably around 6MB
source.  A couple of years ago I started at the present company, which
currently requires code written under Borland C++ Builder 5 (yes, I know,
it's antique and not MicroSoft VC++).

I have had no success compiling 3.7.1 on BCB5.  The current problem is that
the CODECs are not initialized when a strip is read.  The program
successfully calls TIFFOpen().  The tags are read and can be retrieved using
TIFFGetField() and TIFFGetScanlineSize(), but when TIFFReadEncodedStrip() is
called, an error message that the CODEC is not initialized results.  Tracing
the code, it seems that a call to (*tif->tif_setupdecode)(tif) in line 557
of tif_read.c() is the cause of the problem.  This currently points to
_notConfigured() at line 102 in tif_codec.c and the result is the program
will not decode the Group 4 TIFF strip.  This point is the result of the
header files set to default to the not configured state.

After looking through the archive history, I noted that 3.7 is a step
towards not using only .h files only for setup, and that compiler specific
make files are now being used.  Upon reading the documentation internally
and in the posted html pages, it seems that the backup is still .h file
configuration.  The documentation further says the CODEC configuration
should be automatically set so that no overt call to
TIFFSetCompressionScheme() should be needed.  I have checked to ensure what
seems to be an appropriate tiff_fax3sm.c file exists in the distributed
material, and that a reasonable tiffvers.h is also there.  I have included
what seems to be the proper list of files in a BCB5 project to build a
library...  Still the problem persists.

Has anyone out there got any suggestions that might help (other than driving
my bosses to change to VC++)?

Thanks,
Roger Watkins
RogerQuillDisc@insightbb.com

_______________________________________________
Tiff mailing list
Tiff@remotesensing.org
http://xserve.flids.com/mailman/listinfo/tiff
