compiling rastertoexcp.c

shermin sherminismail at gmail.com
Mon Jun 9 04:51:38 PDT 2008


Hi,
I tried compiling this rastertoescp.c file in the CUPS DDK folder only.But it still shows some errors given below

[root at localhost cups]# gcc rastertoescpx.c
In file included from rastertoescpx.c:33:
string.h:25:22: error: config.h: No such file or directory
rastertoescpx.c:34:23: error: data/escp.h: No such file or directory
rastertoescpx.c: In function ‘Setup’:
rastertoescpx.c:118: error: ‘ESCP_USB’ undeclared (first use in this function)
rastertoescpx.c:118: error: (Each undeclared identifier is reported only once
rastertoescpx.c:118: error: for each function it appears in.)
rastertoescpx.c: In function ‘StartPage’:
rastertoescpx.c:354: error: ‘ESCP_REMOTE’ undeclared (first use in this function)
rastertoescpx.c:670: error: ‘ESCP_EXT_UNITS’ undeclared (first use in this function)
rastertoescpx.c:691: error: ‘ESCP_PAGE_SIZE’ undeclared (first use in this function)
rastertoescpx.c:725: error: ‘ESCP_EXT_MARGINS’ undeclared (first use in this function)
rastertoescpx.c:783: error: ‘ESCP_ESCK’ undeclared (first use in this function)
rastertoescpx.c:876: error: ‘ESCP_STAGGER’ undeclared (first use in this function)
rastertoescpx.c: In function ‘Shutdown’:
rastertoescpx.c:1183: error: ‘ESCP_REMOTE’ undeclared (first use in this function)
rastertoescpx.c: In function ‘CompressData’:
rastertoescpx.c:1414: error: ‘ESCP_RASTER_ESCI’ undeclared (first use in this function)
[root at localhost cups]# echo $PATH
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/lib/ccache:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/ismail/bin


Please tell me the reason of these errors.I am stuck here.I have to write a filter.So I should compile my filter file like this .c file in CUPSDDK as far as i know.

Shermin




More information about the cups mailing list