compiling rastertoexcp.c

Michael Sweet mike at easysw.com
Mon Jun 9 06:59:21 PDT 2008


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

You MUST use the configure script to generate the proper makefile
compiler options, and the config.h header file.

> [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


-- 
______________________________________________________________________
Michael Sweet, Easy Software Products           mike at easysw dot com




More information about the cups mailing list