[cups.development] How to develop a thermal printer driver

Hin-Tak Leung htl10 at users.sourceforge.net
Tue Aug 9 19:32:27 PDT 2011


--- On Wed, 10/8/11, vtevtdj <vtevtdj at 126.com> wrote:

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

Those are backticks, not quotes. Note the differences:

backticks - `cups-config --cflags`
quotes    - 'cups-config --cflags'

The "backtick" key is just under the escape key on my keyboard on the top left, the "single quote" key is two keys from the "return" key on the right. 







More information about the cups-devel mailing list