2016.05.30 09:03 "[Tiff] BigTiff Development Version generating blank tiff files from mulitipage tiff file using tiffsplit utility", by Amit Gupta
Hi Team,
We downloaded BigTiff Development Kit:
http://bigtiff.org/ (http://bigtiff.org/libtiff-4.1.zip)
Please find our observations while compiling Libtiff-4.1 as below:
Problem faced during compiling of BigTiff-4.1
- Copy the Folder libtiff-4.1 to Ubuntu 14.04 Machine , gcc version : gcc = 4.8.4, make version : GNU Make 3.81
- Go to the libtiff-4.1 directory
- run command make
result is: libjpeg.a and libz.a built and facing error in making libtiff.=
a
Modification: modify the tiff-4.1 path in make file: TIFFDIR=tiff-4.=
0/libtiff ---> TIFFDIR=tiff-4.1/libtiff
Then same Error in make file of tiff-4.1 directory
Modification: modify the tiff-4.1 path in make file: TIFFDIR=tiff-3.=
8.2B/libtiff ---> TIFFDIR=tiff-4.1/libtiff
Then error in make file of libtiff folder:
1. INCLDIR = ../../includes
Modified as:
INCLDIR_DIR_JPEG = ../../libjpeg/jpeg-6b
INCLDIR_DIR_LIBGZ = ../../libz/zlib123
Then IPATH is modified as:
IPATH = -I. -I${SRCDIR} -I$(INCLDIR) --->IPATH = -I. -I${SRCDIR=
} -I$(INCLDIR_DIR_JPEG) -I$(INCLDIR_DIR_LIBGZ)
Rule for object file tif_jpeg.o modified as:
tif_jpeg.o: ${SRCDIR}/tif_jpeg.c $(INCLDIR)/jpeglib.h $(INCLDIR)/jer=
ror.h ---> tif_jpeg.o: ${SRCDIR}/tif_jpeg.c $(INCLDIR_DIR_JPEG)/jpeglib.h $=
(INCLDIR_DIR_JPEG)/jerror.h
Rule for object file tif_zip.o modified as:
tif_zip.o: ${SRCDIR}/tif_zip.c ${SRCDIR}/tif_predict.h $(INCLDIR)/zl=
ib.h ----> tif_zip.o: ${SRCDIR}/tif_zip.c ${SRCDIR}/tif_predict.h $(INCLDIR=
_DIR_LIBGZ)/zlib.h
After Above Modification, libtiff.a built;
Now when we try to build TiffSplite tool with File: tiffsplit.c with comm=
and
gcc -o tiffsplit_Utility tiffsplit.c libtiff.a libjpeg.a libz.a
then we faced some linking errors of math API;
Now we compiled with math lib: lm
gcc -o tiffsplit_Utility tiffsplit.c libtiff.a libjpeg.a libz.a -lm
Now tiffsplit_Utility is successfully built.
Then we run the tiffsplit_Utility like:
./tiffsplit_Utility filename.tif filename
Now tiffsplit_Utility successfully splited the tiff file but splited fil= es are blank.
Please help us, why the splitted files were blank. Is there anything we mis=
sed in the above process?
Thanks and Regards,
Amit Gupta