AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
September 2004

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

2004.09.02 00:16 "bug in Make scripts (tiff2pdf)", by <mstrecke@gmx.de>
2004.09.02 16:27 "Re: bug in Make scripts (tiff2pdf)", by Ross A Finlayson
2004.09.02 19:46 "Re: bug in Make scripts (tiff2pdf)", by Andrey Kiselev

2004.09.02 00:16 "bug in Make scripts (tiff2pdf)", by <mstrecke@gmx.de>

Hi,

it took me the better part of this evening to (re-)find a bug in the
Makescript of libtiff-util.  I then remembered that I found the same
one some time ago, and I am quite sure that I have reported it.

And as your bugzilla is down again, I have no way to check :-)

I use Debian Sarge with xsane as scan utility. Xsane produces TIFF
with JPEG encoding.

I wanted to convert these TIFFs to PDF using "tiff2pdf -j ...." but I
always got a warning that "libtiff had to be compilied with the jpeg
option".

tiff2pdf.c uses some defines (in this case JPEG_SUPPORT) that are set
when compiling the libtiff branch, but not during the compilation of
the "tools" branch.

[...]
/usr/bin/gcc -g -O -I. -I../../libtiff -DJPEG_SUPPORT -DZIP_SUPPORT
-DPIXARLOG_SUPPORT   -c -o tif_fax3sm.o tif_fax3sm.c
/usr/bin/gcc -c -g -O -I. -I../../libtiff -DJPEG_SUPPORT -DZIP_SUPPORT
-DPIXARLOG_SUPPORT ../../libtiff/tif_getimage.c
[...]
make[1]: Entering directory `/usr/src/tiff-3.6.1/tools'
/usr/bin/gcc -c -I../libtiff -I../libtiff -g -O -I. -I../tools
-I../libtiff ../tools/fax2tiff.c
/usr/bin/gcc -o fax2tiff -g -O -I. -I../tools -I../libtiff fax2tiff.o
../libtiff/libtiff.so.4 -L../../src/jpeg-6b -ljpeg -L../../zlib -lz
-lm
/usr/bin/gcc -c -g -O -I. -I../tools -I../libtiff ../tools/fax2ps.c
/usr/bin/gcc -o fax2ps -g -O -I. -I../tools -I../libtiff fax2ps.o
../libtiff/libtiff.so.4 -L../../src/jpeg-6b -ljpeg -L../../zlib -lz
-lm
/usr/bin/gcc -c -g -O -I. -I../tools -I../libtiff ../tools/gif2tiff.c
[...]

As a quick fix I put a !#define JPEG_SUPPORT 1" into tiff2pdf.c and
got the functionality I wanted.

Kind regards


Michael