How to develop a thermal printer driver

vtevtdj vtevtdj at 126.com
Tue Aug 9 19:15:28 PDT 2011


> I am trying to develop a driver for BSV4 (Toshiba Tec) thermal printer.
> First I have down is a file .drv following the example in /usr/share/cups/drv/sample.drv which have several printers including some thermal ones.
> The file I made was compile with ppdc. See "Developing Raster Printer Drivers".
> After this I could install the printer unless I have not the filter to convert raster format into my printer language.
> The filter should be on /usr/lib/cups/filter/ and to make it I followed rastertolabel.c filter as example. You need to download cups dev files to see this code.
> Finally compile your own code with the order
> gcc -lm -o outputfile `cups-config --cflags` yourfilter.c `cups-config --image --libs`
> and place the output in the filter directory.
>
> If your code is OK the printer works. I am still trying it.
>
>
>
> > I saw a few days CUPS example, but still not very clear how to develop a thermal printer CUPS driver, so please help me master.
>
Thanks Sebastian for your help.Now I am trying to compile the filter rastertorunfa.c,but
[sunner at vtevtdj filter]$ gcc -lm -o rastertorunfa 'cups-config --cflags' rastertorunfa.c 'cups-config --image --libs'
gcc: cups-config --cflags: No such file or directory
gcc: cups-config --image --libs: No such file or directory
I have install the cupsddk-1.2.3.





More information about the cups mailing list