Page 1 of 1

Compiling Epson ESC/P-R Driver (generic print driver)

Posted: Thu Apr 21, 2016 6:06 pm
by humphreybas
I downloaded the epson-inkjet-printer-escpr-1.6.5-1lsb3.2.tar.gz source from the epson website since only *.deb files exist for i386 and amd64 but no ARM debian package.
I proceeded as in the instructions:
6.2 For Debian based distributions
6.2.1 Uncompress the src.rpm file
$ rpm2cpio epson-inkjet-printer-escpr-1.6.5-1lsb3.2.src.rpm | cpio -id
$ tar zxvf epson-inkjet-printer-escpr-1.6.5-1lsb3.2.tar.gz

6.2.2 Configure
$ cd epson-inkjet-printer-escpr-1.6.5
$ ./bootstrap && ./configure --prefix=/usr

6.2.3 Create DEB package
$ make
$ debuild -us -uc -b
However at the step 'make' I am getting an error:
wrapper.c:25:23: fatal error: cups/cups.h: No such file or directory
(complete output: http://pastebin.com/5shLHdf3)
(wheezy on kernel 4.1.13)

Someone has a suggestion how to fix this?

Re: Compiling Epson ESC/P-R Driver (generic print driver)

Posted: Fri Apr 22, 2016 3:33 pm
by topguy
Almost always when there is a missing header file it means that a development package has not been installed.

I cant be 100% sure but I think that the most likely missing package for this headerfile is : libcups2-dev

Re: Compiling Epson ESC/P-R Driver (generic print driver)

Posted: Fri Apr 22, 2016 6:14 pm
by humphreybas
Thanks!

Next error I got was:
wrapper.c:27:25: fatal error: cups/raster.h: No such file or directory
Which I solved by installing libcupsimage2-dev.

Then I got alot of undefined references like this one:
/home/pi/printer_epson/epson-inkjet-printer-escpr-1.6.5/src/wrapper.c:547: undefined reference to `cupsGetOption'
Which I solved by
./configure --prefix=/usr --with-cupsfilterdir=/usr/lib/cups/filter --with-cupsppddir=usr/share/ppd
as suggested in this thread: viewtopic.php?f=91&t=134764.
Now the 'make' command finished without errors, yeah.

Next command: 'debuild' resulted in
-bash: debuild: command not found'[/build]
Google said I needed to install the package devscripts so I did.
And I ended up with a armhf deb package file, great!
In case someone can use it: https://mega.nz/#!jZVXhQbI!Q6Nyso7FrUSU ... lpGKNLykpw

Re: Compiling Epson ESC/P-R Driver (generic print driver)

Posted: Sat Oct 08, 2016 6:22 pm
by humphreybas
Somehow the printer did not work. Print jobs went straight into 'Completed' but the printer did nothing.
I retried the whole process on Jessie and got a new *.deb file which actually worked!

Again, if anyone can use it, here is the .deb file: https://mega.nz/#!ecUCDLzS!YGVi4JIIlPdL ... R6GuOc6Ks8

Re: Compiling Epson ESC/P-R Driver (generic print driver)

Posted: Mon Oct 10, 2016 3:23 am
by treeHouse
There is a working esc/p-r already in the repositories. If you use synaptic, just search for 'epson'.

Re: Compiling Epson ESC/P-R Driver (generic print driver)

Posted: Mon Oct 10, 2016 11:49 am
by humphreybas
I assume that the driver that you are referring to is the same esc/p-r driver that gets installed when you install CUPS?
That driver does not support the XP55 printer. By downloading the newest files from the epson site and compiling it myself I got the XP55 to work.

Re: Compiling Epson ESC/P-R Driver (generic print driver)

Posted: Mon Oct 10, 2016 12:48 pm
by fruitoftheloom
treeHouse wrote:There is a working esc/p-r already in the repositories. If you use synaptic, just search for 'epson'.
The OP compiled driver version 1.6.5 :D

Raspbian Jessie has printer-driver-escpr version 1.4.1-2

Raspbian Stretch Testing printer-driver-escpr version 1.6.8-1

Therefore just change the sources to Stretch to obtain printer-driver-escpr, then change source back to Jessie, this usually works AOK :shock:

Re: Compiling Epson ESC/P-R Driver (generic print driver)

Posted: Mon Apr 10, 2017 7:16 am
by rconn1
To humphreybas... THANK YOU!!!!

I have been trying to get my Epson to work for about a week and kept running into various issues that never worked.. I was going to tackle the compiling myself, but since I have only been using Linux (on the RPi) for a week and a day, it was a daunting task.. I have not tried your armhf deb package yet, but it is the most hope I have had in a while.. When I get home I will try it.. Thank you again for the work.. keeping my fingers crossed..

Re: Compiling Epson ESC/P-R Driver (generic print driver)

Posted: Mon Apr 10, 2017 1:40 pm
by rconn1
Damn.. did not work.. I was quite hopeful.. but back to the drawing board I guess..
I got the package you created to install (after first removing an older one), but I think what I am having trouble with is, what driver do you actually select in the CUPS administration Add Printer setup?
I hope you are still monitoring this thread..

Re: Compiling Epson ESC/P-R Driver (generic print driver)

Posted: Mon Apr 10, 2017 1:57 pm
by humphreybas
I think I used the ppd file that came with the package that I downloaded from the epson site, have you tried that?

Re: Compiling Epson ESC/P-R Driver (generic print driver)

Posted: Mon Apr 10, 2017 4:22 pm
by rconn1
Thank you for the response! Yes, I tried the PPD that came with I think it was driver version 1.6.1.3?? I guess I will see if there is a later version that has the PPD in it.. Will give that a show.. THis is getting old though.. It finds the printer, says" job rendered and clears the job as complete... but not even a bump from the Epson.. frustrating.. lol Will try to find more updated ppd..

Re: Compiling Epson ESC/P-R Driver (generic print driver)

Posted: Tue Apr 11, 2017 2:27 am
by rconn1
Just an FYI.. I finally found a solution, although not technically a fix, more a workaround.. Although I cannot print directly to my printer, if I load a PDF into Chromium or want to print a web page, it will print through a Google cloud printer I have set up on another computer on my network.. Not perfect, but still less of a pain than saving to a pdf then emailing to another computer and printing from there..