Comments (20)
@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
from epsonsimplecups.
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
from epsonsimplecups.
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.
from epsonsimplecups.
Did you solve this problem i got the same error? please let me know if you solve it.... S.O.
from epsonsimplecups.
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.
from epsonsimplecups.
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.
from epsonsimplecups.
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 to
initializeSettings'
collect2: error: ld returned 1 exit status
make: *** [makefile:67: rastertoepsonsimple] Error 1
Please run make package first.
make: *** [makefile:36: install] Error 1
from epsonsimplecups.
Having the same issue and cant get is solved :/
from epsonsimplecups.
Nice, ill try it as soon i get back from work :)
Thanks for telling me/us
from epsonsimplecups.
Yea it works, quality isnt the best but i dont know if its the driver or the device^^
Thanks @gbro115 George
from epsonsimplecups.
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...
from epsonsimplecups.
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
from epsonsimplecups.
from epsonsimplecups.
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
from epsonsimplecups.
from epsonsimplecups.
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```
from epsonsimplecups.
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?
from epsonsimplecups.
worked perfectly, thank you @scruss !
from epsonsimplecups.
Related Issues (20)
- Work with this? HOT 4
- rpi3 text printing slow. Spooling issue? HOT 8
- rpi3 pdf printing issue HOT 5
- Garbled Characters Error on Print Out HOT 14
- Top and bottom reduction and more HOT 11
- Dynamic length HOT 3
- Which plugin do i use for TM-T20II and Woocommerce? HOT 3
- height block HOT 2
- Several problems with the size of the ticket
- Corrupt output on Epson TM-T20II HOT 3
- Thank you!
- Doesn't Work on Bullseye
- Thankyou! Would you mind a step-by-step HOT 7
- Thanks! TM-T88V working HOT 10
- Can it open the drawer? HOT 3
- Resize problem HOT 3
- Printing delay HOT 3
- Thanks! Work with EPSON TM T70 HOT 3
- did not work on raspbian and Epson TM-U220
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from epsonsimplecups.