plinth666 / epsonsimplecups

A simple CUPS driver for the Epson TM-T20 POS printer
Other
98 stars 48 forks source link

Can't make #16

Open foxxx opened 5 years ago

foxxx commented 5 years ago

$ make mkdir bin

compiling rastertoepsonsimple filter

gcc -Wl,-rpath,/usr/lib -Wall -fPIC -O2 -o bin/rastertoepsonsimple bufferedscanlines.o src/rastertoepsonsimple.c -lcupsimage -lcups /tmp/cc64RnPF.o: In function main': rastertoepsonsimple.c:(.text.startup+0x74): undefined reference toinitializeSettings' collect2: error: ld returned 1 exit status makefile:64: recipe for target 'rastertoepsonsimple' failed make: *** [rastertoepsonsimple] Error 1

ivaras2007 commented 5 years ago

Did you solve this problem i got the same error? please let me know if you solve it.... S.O.

plinth666 commented 5 years ago

No - I honestly haven't looked at it. I have had the code up and running for 4 years now with no need to change anything.

foxxx commented 5 years ago

Yeah I've still not solved it... For me the issue is on Ubuntu 18.

I've also tried an older gcc

make CC=/usr/bin/gcc-4.8

Same issue still.

bilaliz commented 5 years ago

The problem still exists on Buster unfortunately. A lot of stuff is deprecated now as well.

gcc -Wl,-rpath,/usr/lib -Wall -fPIC -O2 -o bin/rastertoepsonsimple bufferedscanlines.o src/rastertoepsonsimple.c -lcupsimage -lcups src/rastertoepsonsimple.c: In function ‘getOptionChoiceIndex’: src/rastertoepsonsimple.c:175:5: warning: ‘ppdFindMarkedChoice’ is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations] choice = PPDFINDMARKEDCHOICE(ppd, choiceName); ^~ In file included from src/rastertoepsonsimple.c:33: /usr/include/cups/ppd.h:385:22: note: declared here extern ppd_choice_t ppdFindMarkedChoice(ppd_file_t ppd, ^~~~~~~ src/rastertoepsonsimple.c:178:9: warning: ‘ppdFindOption’ is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations] if ((option = PPDFINDOPTION(ppd, choiceName)) == NULL) return -1; ^~ In file included from src/rastertoepsonsimple.c:33: /usr/include/cups/ppd.h:388:22: note: declared here extern ppd_option_t ppdFindOption(ppd_file_t ppd, const char keyword) ^~~~~ src/rastertoepsonsimple.c:179:9: warning: ‘ppdFindChoice’ is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations] if ((choice = PPDFINDCHOICE(option,option->defchoice)) == NULL) return -1; ^~ In file included from src/rastertoepsonsimple.c:33: /usr/include/cups/ppd.h:383:22: note: declared here extern ppd_choice_t ppdFindChoice(ppd_option_t o, const char option) ^~~~~ src/rastertoepsonsimple.c: In function ‘getPageWidthPageHeight’: src/rastertoepsonsimple.c:201:5: warning: ‘ppdFindMarkedChoice’ is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations] choice = PPDFINDMARKEDCHOICE(ppd, "PageSize"); ^~ In file included from src/rastertoepsonsimple.c:33: /usr/include/cups/ppd.h:385:22: note: declared here extern ppd_choice_t ppdFindMarkedChoice(ppd_file_t ppd, ^~~~~~~ src/rastertoepsonsimple.c:204:9: warning: ‘ppdFindOption’ is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations] option = PPDFINDOPTION(ppd, "PageSize"); ^~ In file included from src/rastertoepsonsimple.c:33: /usr/include/cups/ppd.h:388:22: note: declared here extern ppd_option_t ppdFindOption(ppd_file_t ppd, const char keyword) ^~~~~ src/rastertoepsonsimple.c:205:9: warning: ‘ppdFindChoice’ is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations] choice = PPDFINDCHOICE(option,option->defchoice); ^~ In file included from src/rastertoepsonsimple.c:33: /usr/include/cups/ppd.h:383:22: note: declared here extern ppd_choice_t ppdFindChoice(ppd_option_t o, const char option) ^~~~~ src/rastertoepsonsimple.c: In function ‘initializeSettings’: src/rastertoepsonsimple.c:305:5: warning: ‘ppdOpenFile’ is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations] ppd = PPDOPENFILE(getenv("PPD")); ^~~ In file included from src/rastertoepsonsimple.c:33: /usr/include/cups/ppd.h:397:20: note: declared here extern ppd_file_t ppdOpenFile(const char filename) _PPD_DEPRECATED; ^~~ src/rastertoepsonsimple.c:307:5: warning: ‘ppdMarkDefaults’ is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations] PPDMARKDEFAULTS(ppd); ^~~~~~~ In file included from src/rastertoepsonsimple.c:33: /usr/include/cups/ppd.h:392:14: note: declared here extern void ppdMarkDefaults(ppd_file_t ppd) _PPD_DEPRECATED; ^~~~~~~ src/rastertoepsonsimple.c:312:9: warning: ‘cupsMarkOptions’ is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations] CUPSMARKOPTIONS(ppd, numOptions, options); ^~~~~~~ In file included from src/rastertoepsonsimple.c:33: /usr/include/cups/ppd.h:370:13: note: declared here extern int cupsMarkOptions(ppd_file_t ppd, int num_options, cups_option_t options) _PPD_DEPRECATED; ^~~~~~~ src/rastertoepsonsimple.c:328:5: warning: ‘ppdClose’ is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations] PPDCLOSE(ppd); ^~~~ In file included from src/rastertoepsonsimple.c:33: /usr/include/cups/ppd.h:372:14: note: declared here extern void ppdClose(ppd_file_t ppd) _PPD_DEPRECATED; ^~~~ /usr/bin/ld: /tmp/cc05ce89.o: in function main': rastertoepsonsimple.c:(.text.startup+0x4c): undefined reference toinitializeSettings' collect2: error: ld returned 1 exit status make: [makefile:67: rastertoepsonsimple] Error 1 Please run make package first. make: [makefile:36: install] Error 1

Christian1998 commented 5 years ago

Having the same issue and cant get is solved :/

gbro115 commented 5 years ago

@Christian1998 editing the file at src/rastertoepsonsimple.c to include the changes from a recent fix worked for me

Fix: https://github.com/plinth666/epsonsimplecups/pull/17/files/36e22adfc85742b5f3a92cf2e5bd7c9f0f0bf0d9

I removed 'inline' from the start of line 299 and was able to run make without issue

Change inline void initializeSettings to void initializeSettings

Christian1998 commented 5 years ago

Nice, ill try it as soon i get back from work :) Thanks for telling me/us 💯

Christian1998 commented 5 years ago

Yea it works, quality isnt the best but i dont know if its the driver or the device^^ Thanks @gbro115 George

davasquezg commented 4 years ago

Current Install Script

#!/bin/sh
#install Epson printer TM-88 / TM-20
sudo apt install libcups2-dev libcupsimage2-dev
sudo mkdir /tmp/install/
cd /tmp/install/
sudo wget https://codeload.github.com/Olernov/epsonsimplecups/zip/master
sudo unzip master
cd epsonsimplecups-master
sudo make
sudo make install

Tested today

freebs65 commented 4 years ago

Does anyone have this working and cutting the document properly? Mine no loger cuts at the end of the job.. I'm using Buster on a pi 4 and an updated version forked here: https://github.com/paperclamp/epsonsimplecups

Thanks for any info...

NelsonFrancisco commented 4 years ago

I was struggling with this as well.

I was using a TM-T20III printer. With all the fuzz in the internet I though that Epson did not provide binaries for ARM. It really doesn't.

BUT IT PROVIDES THE SOURCE CODE! And two scripts: one to build and another to install.

Maybe I was lucky, because maybe the printer that I used was the only one that Epson provided the source code. But still, I can find some related issues in the internet with this same printer.

Strange.

Anyway, I just hope I can help someone with this. Here's the link to the mentioned printer's drivers

bilaliz commented 4 years ago

just use these drivers, they work WAY better https://github.com/klirichek/zj-58/

On Thu, Jul 9, 2020 at 1:05 PM Nelson Cunha notifications@github.com wrote:

I was struggling with this as well.

I was using a TM-T20III printer. With all the fuzz in the internet I though that Epson did not provide binaries for ARM. It really doesn't.

BUT IT PROVIDES THE SOURCE CODE! And two scripts: one to build and another to install.

Maybe I was lucky, because maybe the printer that I used was the only one that Epson provided the source code. But still, I can find some related issues in the internet with this same printer.

Strange.

Anyway, I just hope I can help someone with this. Here's https://download.epson-biz.com/modules/pos/index.php?page=single_soft&cid=6408&pcat=3&pid=6146 the link to the mentioned printer's drivers

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/plinth666/epsonsimplecups/issues/16#issuecomment-656244173, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGGKNFBZWNNZNFLQBNVW7ALR2X2FBANCNFSM4GPWZ3RA .

foxxx commented 4 years ago

Kind of, the output we get when we use that driver isn't correct, there are white lines (spaces) throughout the printout, 2mm of empty space across the whole paper every 5mm

bilaliz commented 4 years ago

That hasn't happened with me, you can adjust some of those settings can be changed in the localhost.

On Fri., Jul. 10, 2020, 12:55 a.m. foxxx, notifications@github.com wrote:

Kind of, the output we get when we use that driver isn't correct, there are white lines (spaces) throughout the printout, 2mm of empty space across the whole paper every 5mm

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/plinth666/epsonsimplecups/issues/16#issuecomment-656481830, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGGKNFHPG2L4S442BJHLPGTR22NLDANCNFSM4GPWZ3RA .

1nstinct commented 2 years ago

Hey guys. It's said that the error is fixed but not for me. Still having the issue. Anyone tried to install it recently?


pi@raspberrypi:/tmp/install/epsonsimplecups-master $ sudo make
cc    -c -o bufferedscanlines.o src/bufferedscanlines.c
mkdir bin
# compiling rastertoepsonsimple filter
gcc -Wl,-rpath,/usr/lib -Wall -fPIC -O2  -o bin/rastertoepsonsimple bufferedscanlines.o src/rastertoepsonsimple.c -lcupsimage -lcups
src/rastertoepsonsimple.c: In function ‘getOptionChoiceIndex’:
src/rastertoepsonsimple.c:175:5: warning: ‘ppdFindMarkedChoice’ is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
  175 |     choice = PPDFINDMARKEDCHOICE(ppd, choiceName);
      |     ^~~~~~
In file included from src/rastertoepsonsimple.c:33:
/usr/include/cups/ppd.h:377:22: note: declared here
  377 | extern ppd_choice_t *ppdFindMarkedChoice(ppd_file_t *ppd,
      |                      ^~~~~~~~~~~~~~~~~~~
src/rastertoepsonsimple.c:178:9: warning: ‘ppdFindOption’ is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
  178 |         if ((option = PPDFINDOPTION(ppd, choiceName))          == NULL) return -1;
      |         ^~
In file included from src/rastertoepsonsimple.c:33:
/usr/include/cups/ppd.h:380:22: note: declared here
  380 | extern ppd_option_t *ppdFindOption(ppd_file_t *ppd, const char *keyword)
      |                      ^~~~~~~~~~~~~
src/rastertoepsonsimple.c:179:9: warning: ‘ppdFindChoice’ is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
  179 |         if ((choice = PPDFINDCHOICE(option,option->defchoice)) == NULL) return -1;
      |         ^~
In file included from src/rastertoepsonsimple.c:33:
/usr/include/cups/ppd.h:375:22: note: declared here
  375 | extern ppd_choice_t *ppdFindChoice(ppd_option_t *o, const char *option)
      |                      ^~~~~~~~~~~~~
src/rastertoepsonsimple.c: In function ‘getPageWidthPageHeight’:
src/rastertoepsonsimple.c:201:5: warning: ‘ppdFindMarkedChoice’ is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
  201 |     choice = PPDFINDMARKEDCHOICE(ppd, "PageSize");
      |     ^~~~~~
In file included from src/rastertoepsonsimple.c:33:
/usr/include/cups/ppd.h:377:22: note: declared here
  377 | extern ppd_choice_t *ppdFindMarkedChoice(ppd_file_t *ppd,
      |                      ^~~~~~~~~~~~~~~~~~~
src/rastertoepsonsimple.c:204:9: warning: ‘ppdFindOption’ is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
  204 |         option = PPDFINDOPTION(ppd, "PageSize");
      |         ^~~~~~
In file included from src/rastertoepsonsimple.c:33:
/usr/include/cups/ppd.h:380:22: note: declared here
  380 | extern ppd_option_t *ppdFindOption(ppd_file_t *ppd, const char *keyword)
      |                      ^~~~~~~~~~~~~
src/rastertoepsonsimple.c:205:9: warning: ‘ppdFindChoice’ is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
  205 |         choice = PPDFINDCHOICE(option,option->defchoice);
      |         ^~~~~~
In file included from src/rastertoepsonsimple.c:33:
/usr/include/cups/ppd.h:375:22: note: declared here
  375 | extern ppd_choice_t *ppdFindChoice(ppd_option_t *o, const char *option)
      |                      ^~~~~~~~~~~~~
src/rastertoepsonsimple.c: In function ‘initializeSettings’:
src/rastertoepsonsimple.c:305:5: warning: ‘ppdOpenFile’ is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
  305 |     ppd = PPDOPENFILE(getenv("PPD"));
      |     ^~~
In file included from src/rastertoepsonsimple.c:33:
/usr/include/cups/ppd.h:389:20: note: declared here
  389 | extern ppd_file_t *ppdOpenFile(const char *filename) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead.");
      |                    ^~~~~~~~~~~
src/rastertoepsonsimple.c:307:5: warning: ‘ppdMarkDefaults’ is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
  307 |     PPDMARKDEFAULTS(ppd);
      |     ^~~~~~~~~~~~~~~
In file included from src/rastertoepsonsimple.c:33:
/usr/include/cups/ppd.h:384:14: note: declared here
  384 | extern void  ppdMarkDefaults(ppd_file_t *ppd) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead.");
      |              ^~~~~~~~~~~~~~~
src/rastertoepsonsimple.c:312:9: warning: ‘cupsMarkOptions’ is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
  312 |         CUPSMARKOPTIONS(ppd, numOptions, options);
      |         ^~~~~~~~~~~~~~~
In file included from src/rastertoepsonsimple.c:33:
/usr/include/cups/ppd.h:362:13: note: declared here
  362 | extern int  cupsMarkOptions(ppd_file_t *ppd, int num_options, cups_option_t *options) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead.");
      |             ^~~~~~~~~~~~~~~
src/rastertoepsonsimple.c:328:5: warning: ‘ppdClose’ is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
  328 |     PPDCLOSE(ppd);
      |     ^~~~~~~~
In file included from src/rastertoepsonsimple.c:33:
/usr/include/cups/ppd.h:364:14: note: declared here
  364 | extern void  ppdClose(ppd_file_t *ppd) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead.");
      |              ^~~~~~~~
/usr/bin/ld: /tmp/cc5W3WJq.o: in function `initializeSettings':
rastertoepsonsimple.c:(.text+0x164): undefined reference to `getPageWidthPageHeight'
collect2: error: ld returned 1 exit status
make: *** [makefile:67: rastertoepsonsimple] Error 1```
DaWi13 commented 2 years ago

Hey together, I've got the same error as @1nstinct. Are there anything new in this case?

RasPi 4, 2 GB, Raspberry Pi OS Lite (PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)")

Is there anyone who is able to build the project in a similar environment?

scruss commented 2 years ago

Hey guys. It's said that the error is fixed but not for me. Still having the issue. Anyone tried to install it recently?

/usr/bin/ld: /tmp/cc5W3WJq.o: in function `initializeSettings':
rastertoepsonsimple.c:(.text+0x164): undefined reference to `getPageWidthPageHeight'
collect2: error: ld returned 1 exit status
make: *** [makefile:67: rastertoepsonsimple] Error 1```

This is a slightly different issue, but it's related. Line 185 of rastertoepsonsimple.c:

inline void getPageWidthPageHeight(ppd_file_t * ppd, struct settings_ * settings)

Change it to

void getPageWidthPageHeight(ppd_file_t * ppd, struct settings_ * settings)

and it will build.

huntercaron commented 2 years ago

worked perfectly, thank you @scruss !

semaf commented 10 months ago

New issues with bullseye

pi@raspberry:~/epsonsimplecups $ sudo make
# compiling rastertoepsonsimple filter
gcc -Wl,-rpath,/usr/lib -Wall -fPIC -O2  -o bin/rastertoepsonsimple bufferedscanlines.o src/rastertoepsonsimple.c -lcupsimage -lcups
src/rastertoepsonsimple.c: In function ‘getOptionChoiceIndex’:
src/rastertoepsonsimple.c:175:5: warning: ‘ppdFindMarkedChoice’ is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
  175 |     choice = PPDFINDMARKEDCHOICE(ppd, choiceName);
      |     ^~~~~~
In file included from src/rastertoepsonsimple.c:33:
/usr/include/cups/ppd.h:377:22: note: declared here
  377 | extern ppd_choice_t *ppdFindMarkedChoice(ppd_file_t *ppd,
      |                      ^~~~~~~~~~~~~~~~~~~
src/rastertoepsonsimple.c:178:9: warning: ‘ppdFindOption’ is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
  178 |         if ((option = PPDFINDOPTION(ppd, choiceName))          == NULL) return -1;
      |         ^~
In file included from src/rastertoepsonsimple.c:33:
/usr/include/cups/ppd.h:380:22: note: declared here
  380 | extern ppd_option_t *ppdFindOption(ppd_file_t *ppd, const char *keyword)
      |                      ^~~~~~~~~~~~~
src/rastertoepsonsimple.c:179:9: warning: ‘ppdFindChoice’ is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
  179 |         if ((choice = PPDFINDCHOICE(option,option->defchoice)) == NULL) return -1;
      |         ^~
In file included from src/rastertoepsonsimple.c:33:
/usr/include/cups/ppd.h:375:22: note: declared here
  375 | extern ppd_choice_t *ppdFindChoice(ppd_option_t *o, const char *option)
      |                      ^~~~~~~~~~~~~
src/rastertoepsonsimple.c: In function ‘getPageWidthPageHeight’:
src/rastertoepsonsimple.c:201:5: warning: ‘ppdFindMarkedChoice’ is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
  201 |     choice = PPDFINDMARKEDCHOICE(ppd, "PageSize");
      |     ^~~~~~
In file included from src/rastertoepsonsimple.c:33:
/usr/include/cups/ppd.h:377:22: note: declared here
  377 | extern ppd_choice_t *ppdFindMarkedChoice(ppd_file_t *ppd,
      |                      ^~~~~~~~~~~~~~~~~~~
src/rastertoepsonsimple.c:204:9: warning: ‘ppdFindOption’ is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
  204 |         option = PPDFINDOPTION(ppd, "PageSize");
      |         ^~~~~~
In file included from src/rastertoepsonsimple.c:33:
/usr/include/cups/ppd.h:380:22: note: declared here
  380 | extern ppd_option_t *ppdFindOption(ppd_file_t *ppd, const char *keyword)
      |                      ^~~~~~~~~~~~~
src/rastertoepsonsimple.c:205:9: warning: ‘ppdFindChoice’ is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
  205 |         choice = PPDFINDCHOICE(option,option->defchoice);
      |         ^~~~~~
In file included from src/rastertoepsonsimple.c:33:
/usr/include/cups/ppd.h:375:22: note: declared here
  375 | extern ppd_choice_t *ppdFindChoice(ppd_option_t *o, const char *option)
      |                      ^~~~~~~~~~~~~
src/rastertoepsonsimple.c: In function ‘initializeSettings’:
src/rastertoepsonsimple.c:305:5: warning: ‘ppdOpenFile’ is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
  305 |     ppd = PPDOPENFILE(getenv("PPD"));
      |     ^~~
In file included from src/rastertoepsonsimple.c:33:
/usr/include/cups/ppd.h:389:20: note: declared here
  389 | extern ppd_file_t *ppdOpenFile(const char *filename) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead.");
      |                    ^~~~~~~~~~~
src/rastertoepsonsimple.c:307:5: warning: ‘ppdMarkDefaults’ is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
  307 |     PPDMARKDEFAULTS(ppd);
      |     ^~~~~~~~~~~~~~~
In file included from src/rastertoepsonsimple.c:33:
/usr/include/cups/ppd.h:384:14: note: declared here
  384 | extern void  ppdMarkDefaults(ppd_file_t *ppd) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead.");
      |              ^~~~~~~~~~~~~~~
src/rastertoepsonsimple.c:312:9: warning: ‘cupsMarkOptions’ is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
  312 |         CUPSMARKOPTIONS(ppd, numOptions, options);
      |         ^~~~~~~~~~~~~~~
In file included from src/rastertoepsonsimple.c:33:
/usr/include/cups/ppd.h:362:13: note: declared here
  362 | extern int  cupsMarkOptions(ppd_file_t *ppd, int num_options, cups_option_t *options) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead.");
      |             ^~~~~~~~~~~~~~~
src/rastertoepsonsimple.c:328:5: warning: ‘ppdClose’ is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
  328 |     PPDCLOSE(ppd);
      |     ^~~~~~~~
In file included from src/rastertoepsonsimple.c:33:
/usr/include/cups/ppd.h:364:14: note: declared here
  364 | extern void  ppdClose(ppd_file_t *ppd) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead.");
      |              ^~~~~~~~
# gzip ppd file
gzip -c ppd/EpsonTMT20Simple.ppd >> bin/EpsonTMT20Simple.ppd.gz
# create setup shell script
cp src/setup.sh bin/setup
chmod +x bin/setup
# packaging
mkdir install
cp bin/rastertoepsonsimple install
cp bin/*.ppd.gz install
cp bin/setup install

Trying to install it anyway is that the result

pi@raspberry:~/epsonsimplecups/install $ sudo ./setup
EpsonTMT20Simple
cups driver installer
---------------------------------------
./setup: 9: [: Illegal number:
Searching for ServerRoot, ServerBin, and DataDir tags in /etc/cups/cupsd.conf

ServerBin tag not present in cupsd.conf - using default

DataDir tag not present in cupsd.conf - using default

ServerRoot =
ServerBin  =
DataDir    =

Copying rastertoepsonsimple filter to /usr/lib/cups/filter

Copying model ppd files to //usr/share/cups/model/epson

Restarting CUPS
Stopping cups (via systemctl): cups.service.
Starting cups (via systemctl): cups.service.

Install Complete
Add printer queue using OS tool, http://localhost:631, or http://127.0.0.1:631
pktmterenceg commented 6 months ago

just use these drivers, they work WAY better https://github.com/klirichek/zj-58/

Thanks - I second this.