Code Monkey home page Code Monkey logo

Comments (20)

gbro115 avatar gbro115 commented on July 21, 2024 8

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

davasquezg avatar davasquezg commented on July 21, 2024 1

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.

scruss avatar scruss commented on July 21, 2024 1

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.

ivaras2007 avatar ivaras2007 commented on July 21, 2024

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

from epsonsimplecups.

plinth666 avatar plinth666 commented on July 21, 2024

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.

foxxx avatar foxxx commented on July 21, 2024

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.

bilaliz avatar bilaliz commented on July 21, 2024

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.

Christian1998 avatar Christian1998 commented on July 21, 2024

Having the same issue and cant get is solved :/

from epsonsimplecups.

Christian1998 avatar Christian1998 commented on July 21, 2024

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

from epsonsimplecups.

Christian1998 avatar Christian1998 commented on July 21, 2024

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

from epsonsimplecups.

freebs65 avatar freebs65 commented on July 21, 2024

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.

NelsonFrancisco avatar NelsonFrancisco commented on July 21, 2024

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.

bilaliz avatar bilaliz commented on July 21, 2024

from epsonsimplecups.

foxxx avatar foxxx commented on July 21, 2024

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.

bilaliz avatar bilaliz commented on July 21, 2024

from epsonsimplecups.

1nstinct avatar 1nstinct commented on July 21, 2024

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.

DaWi13 avatar DaWi13 commented on July 21, 2024

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.

huntercaron avatar huntercaron commented on July 21, 2024

worked perfectly, thank you @scruss !

from epsonsimplecups.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.