thorrak / rpi-tspl-cups-driver

CUPS Driver for TSPL-based label printers on the Raspberry Pi
13 stars 3 forks source link

Filter failed #2

Open zhidkovnick opened 1 year ago

zhidkovnick commented 1 year ago

I have a TSC TDP-225 printer. I tried using your filter. It throws an error. I think this is due to the fact that I have aarch64 and CUPS 2.3.3op2

Recompile please under this system. Thank you. I will be very grateful

f-o-n commented 1 year ago

I was facing the same issue with my Polono PL60 and a Raspberry Pi 4B. Here the steps how to get it working:

git clone https://github.com/OpenPrinting/cups/ and Replace cups/filter/rastertolabel.c with the modified one by Proski/thorrak

or just

git clone -b 2.2.10_beeprt https://github.com/thorrak/cups/

My Polono PL60's color was inverted so I had to change line #1024 from

if (Buffer[i ++] >= 200) /* arbitrary threshold */ to if (Buffer[i ++] <= 200) /* arbitrary threshold */

Follow the make instructions to compile everything

Or download raster-tspl-aarch64.zip containing one I compiled

Copy the newly compiled rastertolabel as raster-tspl sudo cp cup/filter/rastertolabel /usr/lib/cups/filter/raster-tspl

Make sure the ownership/permissions are right

sudo chmod +x /usr/lib/cups/filter/raster-tspl
sudo chmod 755 /usr/lib/cups/filter/raster-tspl
sudo chown root:root /usr/lib/cups/filter/raster-tspl

Get the the old ppd for your printer or the generic one I attached above, which I got from the Rollo driver (which worked nicely with my Polono)

Restart cups sudo systemctl restart cups

When adding the printer via http://localhost:631/ and attach the new ppd file

zhidkovnick commented 1 year ago

Thank you. Your instructions were very helpful and I was able to set up the printer on Ruspbery Pi.

hank commented 10 months ago

I wish I would have found this sooner. I just recreated all the steps above! I'll be submitting a pull request with the new aarch64 raster-tspl so less people have to go through all this.

michael100k commented 1 month ago

literally signed up to thank you. spent 2 days with no luck. awesome post. thanks

makors commented 10 hours ago

@f-o-n I have spent 3 hours trying to get this working (the hackaday instructions were horrible). THANK YOU!!!!