Projects / tif22pnm / Comments

Comments for tif22pnm

09 Jan 2014 21:38 pts

@cat_millenium: You need libtiff installed to compile. Figure out which package contains tiffio.h, install it, and try compiling again.

21 Dec 2009 10:10 cat_millenium

Hi there,

I cannot compile. Getting the following error:

root@box:~/tif22pnm-0.12 # ./do.sh compile
Executing: asserted
+ gcc -O2 -ansi -pedantic -Wall -W -Wnested-externs -Wbad-function-cast -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wcast-align -Winline -Wcast-qual -Wmissing-prototypes -c ptspnm.c
+ gcc -O2 -ansi -pedantic -Wall -W -Wnested-externs -Wbad-function-cast -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wcast-align -Winline -Wcast-qual -Wmissing-prototypes -c minigimp.c
+ gcc -O2 -ansi -pedantic -Wall -W -Wnested-externs -Wbad-function-cast -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wcast-align -Winline -Wcast-qual -Wmissing-prototypes -c miniglib.c
+ gcc -O2 -ansi -pedantic -Wall -W -Wnested-externs -Wbad-function-cast -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wcast-align -Winline -Wcast-qual -Wmissing-prototypes -c ptstiff3.c
In file included from ptstiff3.h:12,
from ptstiff3.c:61:
miniglib.h:134:22: tiffio.h: No such file or directory
ptstiff3.c:120: error: parse error before '*' token
ptstiff3.c:121: warning: function declaration isn't a prototype
ptstiff3.c:122: error: parse error before '*' token
ptstiff3.c:127: warning: function declaration isn't a prototype
ptstiff3.c:128: error: parse error before '*' token
ptstiff3.c:133: warning: function declaration isn't a prototype
ptstiff3.c: In function `ptstiff3_load_image':
ptstiff3.c:468: error: `TIFF' undeclared (first use in this function)
ptstiff3.c:468: error: (Each undeclared identifier is reported only once
ptstiff3.c:468: error: for each function it appears in.)
ptstiff3.c:468: error: `tif' undeclared (first use in this function)
ptstiff3.c:469: warning: ISO C89 forbids mixed declarations and code
ptstiff3.c:500: warning: implicit declaration of function `TIFFSetWarningHandler'
ptstiff3.c:501: warning: implicit declaration of function `TIFFSetErrorHandler'
ptstiff3.c:509: warning: implicit declaration of function `TIFFFdOpen'
ptstiff3.c:510: warning: implicit declaration of function `TIFFOpen'
ptstiff3.c:516: warning: implicit declaration of function `TIFFPrintDirectory'
ptstiff3.c:516: error: `stderr' undeclared (first use in this function)
ptstiff3.c:516: error: `TIFFPRINT_NONE' undeclared (first use in this function)
ptstiff3.c:524: warning: implicit declaration of function `TIFFGetFieldDefaulted'
ptstiff3.c:524: error: `TIFFTAG_BITSPERSAMPLE' undeclared (first use in this function)
ptstiff3.c:530: error: `TIFFTAG_SAMPLESPERPIXEL' undeclared (first use in this function)
ptstiff3.c:532: warning: implicit declaration of function `TIFFGetField'
ptstiff3.c:532: error: `TIFFTAG_EXTRASAMPLES' undeclared (first use in this function)
ptstiff3.c:535: error: `TIFFTAG_IMAGEWIDTH' undeclared (first use in this function)
ptstiff3.c:540: error: `TIFFTAG_IMAGELENGTH' undeclared (first use in this function)
ptstiff3.c:545: error: `TIFFTAG_PHOTOMETRIC' undeclared (first use in this function)
ptstiff3.c:551: error: `PHOTOMETRIC_MINISBLACK' undeclared (first use in this function)
ptstiff3.c:565: error: `PHOTOMETRIC_RGB' undeclared (first use in this function)
ptstiff3.c:580: error: `PHOTOMETRIC_MINISWHITE' undeclared (first use in this function)
ptstiff3.c:590: error: `PHOTOMETRIC_PALETTE' undeclared (first use in this function)
ptstiff3.c:625: error: `TIFFTAG_COMPRESSION' undeclared (first use in this function)
ptstiff3.c:626: error: `COMPRESSION_NONE' undeclared (first use in this function)
ptstiff3.c:641: error: `TIFFTAG_IMAGEDESCRIPTION' undeclared (first use in this function)
ptstiff3.c:663: error: `TIFFTAG_XRESOLUTION' undeclared (first use in this function)
ptstiff3.c:664: error: `TIFFTAG_YRESOLUTION' undeclared (first use in this function)
ptstiff3.c:666: error: `TIFFTAG_RESOLUTIONUNIT' undeclared (first use in this function)
ptstiff3.c:670: error: `RESUNIT_NONE' undeclared (first use in this function)
ptstiff3.c:675: error: `RESUNIT_INCH' undeclared (first use in this function)
ptstiff3.c:679: error: `RESUNIT_CENTIMETER' undeclared (first use in this function)
ptstiff3.c:729: error: `TIFFTAG_COLORMAP' undeclared (first use in this function)
ptstiff3.c:769: warning: implicit declaration of function `TIFFIsTiled'
ptstiff3.c: At top level:
ptstiff3.c:784: error: parse error before '*' token
ptstiff3.c:785: warning: function declaration isn't a prototype
ptstiff3.c: In function `load_rgba':
ptstiff3.c:786: error: `uint32' undeclared (first use in this function)
ptstiff3.c:786: error: parse error before "imageWidth"
ptstiff3.c:790: error: `tif' undeclared (first use in this function)
ptstiff3.c:790: error: `TIFFTAG_IMAGEWIDTH' undeclared (first use in this function)
ptstiff3.c:790: error: `imageWidth' undeclared (first use in this function)
ptstiff3.c:791: error: `TIFFTAG_IMAGELENGTH' undeclared (first use in this function)
ptstiff3.c:791: error: `imageLength' undeclared (first use in this function)
ptstiff3.c:793: error: `channel' undeclared (first use in this function)
ptstiff3.c:800: warning: implicit declaration of function `TIFFReadRGBAImage'
ptstiff3.c:803: error: `row' undeclared (first use in this function)
ptstiff3.c: At top level:
ptstiff3.c:812: error: parse error before '*' token
ptstiff3.c:815: warning: function declaration isn't a prototype
ptstiff3.c: In function `load_tiles':
ptstiff3.c:816: error: `uint16' undeclared (first use in this function)
ptstiff3.c:816: error: parse error before "planar"
ptstiff3.c:817: error: `uint32' undeclared (first use in this function)
ptstiff3.c:824: error: `tif' undeclared (first use in this function)
ptstiff3.c:824: error: `TIFFTAG_PLANARCONFIG' undeclared (first use in this function)
ptstiff3.c:824: error: `planar' undeclared (first use in this function)
ptstiff3.c:825: error: `TIFFTAG_IMAGEWIDTH' undeclared (first use in this function)
ptstiff3.c:825: error: `imageWidth' undeclared (first use in this function)
ptstiff3.c:826: error: `TIFFTAG_IMAGELENGTH' undeclared (first use in this function)
ptstiff3.c:826: error: `imageLength' undeclared (first use in this function)
ptstiff3.c:827: error: `TIFFTAG_TILEWIDTH' undeclared (first use in this function)
ptstiff3.c:827: error: `tileWidth' undeclared (first use in this function)
ptstiff3.c:828: error: `TIFFTAG_TILELENGTH' undeclared (first use in this function)
ptstiff3.c:828: error: `tileLength' undeclared (first use in this function)
ptstiff3.c:830: warning: implicit declaration of function `TIFFTileSize'
ptstiff3.c:832: error: `extra' undeclared (first use in this function)
ptstiff3.c:833: error: `channel' undeclared (first use in this function)
ptstiff3.c:837: error: `y' undeclared (first use in this function)
ptstiff3.c:838: error: `x' undeclared (first use in this function)
ptstiff3.c:841: warning: implicit declaration of function `TIFFReadTile'
ptstiff3.c:842: error: `cols' undeclared (first use in this function)
ptstiff3.c:843: error: `rows' undeclared (first use in this function)
ptstiff3.c:844: error: `bps' undeclared (first use in this function)
ptstiff3.c:845: error: `photomet' undeclared (first use in this function)
ptstiff3.c:845: error: `alpha' undeclared (first use in this function)
ptstiff3.c: At top level:
ptstiff3.c:864: error: parse error before '*' token
ptstiff3.c:867: warning: function declaration isn't a prototype
ptstiff3.c: In function `load_lines':
ptstiff3.c:868: error: `uint16' undeclared (first use in this function)
ptstiff3.c:868: error: parse error before "planar"
ptstiff3.c:869: error: `uint32' undeclared (first use in this function)
ptstiff3.c:877: error: `tif' undeclared (first use in this function)
ptstiff3.c:877: error: `TIFFTAG_PLANARCONFIG' undeclared (first use in this function)
ptstiff3.c:877: error: `planar' undeclared (first use in this function)
ptstiff3.c:878: error: `TIFFTAG_IMAGELENGTH' undeclared (first use in this function)
ptstiff3.c:878: error: `imageLength' undeclared (first use in this function)
ptstiff3.c:879: error: `TIFFTAG_IMAGEWIDTH' undeclared (first use in this function)
ptstiff3.c:879: error: `cols' undeclared (first use in this function)
ptstiff3.c:880: error: `lineSize' undeclared (first use in this function)
ptstiff3.c:880: warning: implicit declaration of function `TIFFScanlineSize'
ptstiff3.c:882: error: `extra' undeclared (first use in this function)
ptstiff3.c:883: error: `channel' undeclared (first use in this function)
ptstiff3.c:888: error: `PLANARCONFIG_CONTIG' undeclared (first use in this function)
ptstiff3.c:891: error: `rows' undeclared (first use in this function)
ptstiff3.c:893: warning: implicit declaration of function `TIFFReadScanline'
ptstiff3.c:895: error: `bps' undeclared (first use in this function)
ptstiff3.c:896: error: `photomet' undeclared (first use in this function)
ptstiff3.c:897: error: `alpha' undeclared (first use in this function)
ptstiff3.c:907: error: parse error before "s"
ptstiff3.c:908: error: `TIFFTAG_SAMPLESPERPIXEL' undeclared (first use in this function)
ptstiff3.c:908: error: `samples' undeclared (first use in this function)
ptstiff3.c:909: error: `s' undeclared (first use in this function)
ptstiff3.c: In function `read_16bit':
ptstiff3.c:983: error: `PHOTOMETRIC_MINISBLACK' undeclared (first use in this function)
ptstiff3.c:1000: error: `PHOTOMETRIC_MINISWHITE' undeclared (first use in this function)
ptstiff3.c:1017: error: `PHOTOMETRIC_PALETTE' undeclared (first use in this function)
ptstiff3.c:1024: error: `PHOTOMETRIC_RGB' undeclared (first use in this function)
ptstiff3.c: In function `read_8bit':
ptstiff3.c:1109: error: `PHOTOMETRIC_MINISBLACK' undeclared (first use in this function)
ptstiff3.c:1126: error: `PHOTOMETRIC_MINISWHITE' undeclared (first use in this function)
ptstiff3.c:1143: error: `PHOTOMETRIC_PALETTE' undeclared (first use in this function)
ptstiff3.c:1149: error: `PHOTOMETRIC_RGB' undeclared (first use in this function)
ptstiff3.c: In function `read_default':
ptstiff3.c:1248: error: `PHOTOMETRIC_MINISBLACK' undeclared (first use in this function)
ptstiff3.c:1266: error: `PHOTOMETRIC_MINISWHITE' undeclared (first use in this function)
ptstiff3.c:1284: error: `PHOTOMETRIC_PALETTE' undeclared (first use in this function)
ptstiff3.c:1293: error: `PHOTOMETRIC_RGB' undeclared (first use in this function)
ptstiff3.c: In function `read_separate':
ptstiff3.c:1380: error: `PHOTOMETRIC_MINISBLACK' undeclared (first use in this function)
ptstiff3.c: In function `ptstiff3_save_image':
ptstiff3.c:1432: error: `TIFF' undeclared (first use in this function)
ptstiff3.c:1432: error: `tif' undeclared (first use in this function)
ptstiff3.c:1433: warning: ISO C89 forbids mixed declarations and code
ptstiff3.c:1510: error: `PHOTOMETRIC_RGB' undeclared (first use in this function)
ptstiff3.c:1517: error: `PHOTOMETRIC_MINISBLACK' undeclared (first use in this function)
ptstiff3.c:1539: error: `PHOTOMETRIC_PALETTE' undeclared (first use in this function)
ptstiff3.c:1559: warning: implicit declaration of function `TIFFSetField'
ptstiff3.c:1559: error: `TIFFTAG_SUBFILETYPE' undeclared (first use in this function)
ptstiff3.c:1560: error: `TIFFTAG_IMAGEWIDTH' undeclared (first use in this function)
ptstiff3.c:1561: error: `TIFFTAG_IMAGELENGTH' undeclared (first use in this function)
ptstiff3.c:1562: error: `TIFFTAG_BITSPERSAMPLE' undeclared (first use in this function)
ptstiff3.c:1563: error: `TIFFTAG_ORIENTATION' undeclared (first use in this function)
ptstiff3.c:1563: error: `ORIENTATION_TOPLEFT' undeclared (first use in this function)
ptstiff3.c:1564: error: `COMPRESSION_NONE' undeclared (first use in this function)
ptstiff3.c:1565: error: `TIFFTAG_COMPRESSION' undeclared (first use in this function)
ptstiff3.c:1566: error: `COMPRESSION_LZW' undeclared (first use in this function)
ptstiff3.c:1566: error: `COMPRESSION_DEFLATE' undeclared (first use in this function)
ptstiff3.c:1568: error: `TIFFTAG_PREDICTOR' undeclared (first use in this function)
ptstiff3.c:1572: error: `TIFFTAG_EXTRASAMPLES' undeclared (first use in this function)
ptstiff3.c:1574: error: `TIFFTAG_PHOTOMETRIC' undeclared (first use in this function)
ptstiff3.c:1575: error: `TIFFTAG_DOCUMENTNAME' undeclared (first use in this function)
ptstiff3.c:1576: error: `TIFFTAG_SAMPLESPERPIXEL' undeclared (first use in this function)
ptstiff3.c:1577: error: `TIFFTAG_ROWSPERSTRIP' undeclared (first use in this function)
ptstiff3.c:1579: error: `TIFFTAG_PLANARCONFIG' undeclared (first use in this function)
ptstiff3.c:1579: error: `PLANARCONFIG_CONTIG' undeclared (first use in this function)
ptstiff3.c:1585: error: `RESUNIT_INCH' undeclared (first use in this function)
ptstiff3.c:1601: error: `RESUNIT_CENTIMETER' undeclared (first use in this function)
ptstiff3.c:1608: error: `TIFFTAG_XRESOLUTION' undeclared (first use in this function)
ptstiff3.c:1609: error: `TIFFTAG_YRESOLUTION' undeclared (first use in this function)
ptstiff3.c:1610: error: `TIFFTAG_RESOLUTIONUNIT' undeclared (first use in this function)
ptstiff3.c:1621: error: `TIFFTAG_IMAGEDESCRIPTION' undeclared (first use in this function)
ptstiff3.c:1649: error: `TIFFTAG_COLORMAP' undeclared (first use in this function)
ptstiff3.c:1670: warning: implicit declaration of function `TIFFWriteScanline'
ptstiff3.c:1712: warning: implicit declaration of function `TIFFFlushData'
ptstiff3.c:1713: warning: implicit declaration of function `TIFFClose'

Asked google for a solution - but none found. Could you please assist?

Screenshot

Project Spotlight

ReciJournal

An open, cross-platform journaling program.

Screenshot

Project Spotlight

Veusz

A scientific plotting package.