Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Howto] EPKowa Epson Printerdriver and CUPS
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
groonie
n00b
n00b


Joined: 03 Jul 2004
Posts: 24

PostPosted: Thu Oct 07, 2004 11:30 am    Post subject: [Howto] EPKowa Epson Printerdriver and CUPS Reply with quote

I just wanted my Epson Stylus C66 USB printer to work. :-)
The gimp-print drivers worked fine (http://www.linuxprinting.org), but slow.

So I tried this How-to Epson Stylus Color (USB) Printer Installation with CUPS,
but there was no "EPSON Inkjet Printer #1 (Photo Image Print System)" in CUPS.
then I tried to install the drivers per lpadmin, and I got the error "lpadmin: add-printer (set device) failed: client-error-not-possible"

So here is the solution: The EPKowa driver must have the "libssl.so.0.9.6" and "libcrypto.so.0.9.6", or it won't work.
So just create links:
Code:
149790:/usr/lib # ln -sf libcrypto.so.0.9.7 libcrypto.so.0.9.6
149790:/usr/lib # ln -sf libssl.so.0.9.7 libssl.so.0.9.6


And it just worked fine for me! 8)
Back to top
View user's profile Send private message
iTT
n00b
n00b


Joined: 23 Apr 2004
Posts: 70
Location: Lisboa

PostPosted: Tue Jan 04, 2005 12:34 pm    Post subject: Re: [Howto] EPKowa Epson Printerdriver and CUPS Reply with quote

groonie wrote:

So I tried this How-to Epson Stylus Color (USB) Printer Installation with CUPS


I see this how to but de drivers dont compile, in the make comand exits whit an error:
Code:
....
make[2]: Entering directory `/home/cabrita/epson/pips-sc65_66s-2.6.2/dtrfilter'
/bin/sh ../libtool --mode=link gcc  -g -O2 -Wall  -o dtrfilter  img.o pfpng.o main.o -ldl -lm ../lib/libdtr.a -lpthread -ldl
mkdir .libs
gcc -g -O2 -Wall -o dtrfilter img.o pfpng.o main.o  -lm ../lib/libdtr.a -lpthread -ldl
../lib/libdtr.a(imgdetect_pips.o)(.text+0xac): In function `OutputMemAtBmp':
/home/ysd/branch/pips-devel/pips-closed/src/imgdetect_pips.cc:54: undefined reference to `__builtin_new'
../lib/libdtr.a(imgdetect_pips.o)(.text+0x3a8):/home/ysd/branch/pips-devel/pips-closed/src/imgdetect_pips.cc:106: undefined reference to `__builtin_delete'
../lib/libdtr.a(imgdetect_pips.o)(.text+0x3b8):/home/ysd/branch/pips-devel/pips-closed/src/imgdetect_pips.cc:106: undefined reference to `__rethrow'
../lib/libdtr.a(imgdetect.o)(.text+0x37a): In function `FUNC006::~FUNC006(void)':
/home/ysd/branch/pips-devel/pips-closed/src/imgdetect.cc:128: undefined reference to `__builtin_delete'
collect2: ld returned 1 exit status
make[2]: *** [dtrfilter] Error 1
make[2]: Leaving directory `/home/cabrita/epson/pips-sc65_66s-2.6.2/dtrfilter'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/cabrita/epson/pips-sc65_66s-2.6.2'
make: *** [all-recursive-am] Error 2


I think the problem is in the binary file lib/libdtr.a
In this file have a address /home/ysd/branch/pips-devel/pips-closed/src/imgdetect.cc not mine....

if possible you send a libdtr.a file or your pips drivers file tar.gz
Back to top
View user's profile Send private message
iTT
n00b
n00b


Joined: 23 Apr 2004
Posts: 70
Location: Lisboa

PostPosted: Wed Jan 05, 2005 12:45 am    Post subject: Reply with quote

The problem resolved, a add a option in the a makefile.
But my print work only gimp c64 drivers, with c66 drivers dont work!!!!!
Back to top
View user's profile Send private message
rojanu
Guru
Guru


Joined: 02 Feb 2004
Posts: 361
Location: London

PostPosted: Mon Jan 17, 2005 7:25 pm    Post subject: Reply with quote

Quote:
Making all in dtrfilter
make[2]: Entering directory `/root/pips-sprx420_425_430s-2.6.2/dtrfilter'
gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -Wall -c img.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -Wall -c pfpng.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -Wall -c main.c
/bin/sh ../libtool --mode=link gcc -g -O2 -Wall -o dtrfilter img.o pfpng.o main.o -ldl -lm ../lib/libdtr.a -lpthread -ldl
mkdir .libs
gcc -g -O2 -Wall -o dtrfilter img.o pfpng.o main.o -lm ../lib/libdtr.a -lpthread -ldl
../lib/libdtr.a(imgdetect_pips.o)(.text+0xc8): In function `OutputMemAtBmp':
: undefined reference to `__builtin_new'
../lib/libdtr.a(imgdetect_pips.o)(.text+0x3e4): In function `OutputMemAtBmp':
: undefined reference to `__builtin_delete'
../lib/libdtr.a(imgdetect_pips.o)(.text+0x3f4): In function `OutputMemAtBmp':
: undefined reference to `__rethrow'
../lib/libdtr.a(imgdetect.o)(.text+0x39e): In function `FUNC006::~FUNC006(void)':
: undefined reference to `__builtin_delete'
collect2: ld returned 1 exit status
make[2]: *** [dtrfilter] Error 1
make[2]: Leaving directory `/root/pips-sprx420_425_430s-2.6.2/dtrfilter'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/pips-sprx420_425_430s-2.6.2'
make: *** [all-recursive-am] Error 2


That what happened when I tried to compile my drivers, has any one got an idea how can it be solved.

iTT wrote:
The problem resolved, a add a option in the a makefile.
But my print work only gimp c64 drivers, with c66 drivers dont work!!!!!


I was wondering what is the option that you add to makefile
Back to top
View user's profile Send private message
rbaer999
n00b
n00b


Joined: 30 Dec 2004
Posts: 4
Location: El Paso, Texas

PostPosted: Mon Jan 24, 2005 9:05 pm    Post subject: Reply with quote

This procedure works for me :

1.)run make clean in your base directory
2.) run make distclean in your base directory
3.) cd to dtrfilter directory
4.) open Makefile.am with an editor

5.) find the line that reads something like :
dtrfilter_LDADD = -ldl -lm $(top_srcdir)/lib/libdtr.a

6.) add " -lpthread -ldl $(top_srcdir)/lib/libsprx420_425_430s.so" to the end of the line so that it reads like :
dtrfilter_LDADD = -ldl -lm $(top_srcdir)/lib/libdtr.a -lpthread -ldl $(top_srcdir)/lib/libsprx420_425_430s.so

7.) save your modified Makefile.am

8.)cd to base directory

9.) run automake

10.) run ./configure

11.) run make (should compile all of the way through without errors)

12.) run make install

This has worked for several different models of epson stylus printers
just substitute the lib/sprxxxxxxxxx.so file found in your distribution for step 6.

HTH
Back to top
View user's profile Send private message
shobu
n00b
n00b


Joined: 28 Dec 2004
Posts: 10

PostPosted: Thu Sep 08, 2005 1:56 am    Post subject: Reply with quote

Works great. Thanks!!
It was only a lib/sxxxxxxxxxxxxx.so ;)
Back to top
View user's profile Send private message
Chickpea
l33t
l33t


Joined: 03 Jun 2002
Posts: 846
Location: Vancouver WA

PostPosted: Tue Oct 11, 2005 7:58 pm    Post subject: Reply with quote

Well, I got the driver installed and it shows up in the cups web interface but I am unclear about the ekpd....Anyone use this?
Back to top
View user's profile Send private message
lmcogs
Guru
Guru


Joined: 03 Apr 2005
Posts: 340

PostPosted: Sat Nov 05, 2005 6:06 pm    Post subject: Reply with quote

Well rbaer999

Finally (I hope) after 2 or 3 days of searching, asking on the gentoo forum, and fiddling, this seems to have finally worked. I have just printed out this thread perfectly. I have a epson rx620 and the compiling worked on pips-sprx620_630s-2.6.2. I wasn't sure how to get the driver going on gentoo kernell 2.6.13. I used kde control center printer program and the driver seemed to be there.

I am reluctant, however, to say that it is fixed since this all started when I installed a wireless keyboard and mouse through usb, same as printer. The printer worked fine before now then it accepted jobs but would stick a quater way, I was also using the rx600 which probably was'nt the right driver but there were no other options.

Anyway, I will keep my fingers crossed. Thanks

lmcogs
Back to top
View user's profile Send private message
lmcogs
Guru
Guru


Joined: 03 Apr 2005
Posts: 340

PostPosted: Sat Nov 05, 2005 7:20 pm    Post subject: Reply with quote

Hi

I'm afraid it did not solve my problem. The printer accepts the job but stick quarter way through and dmesg gives error drivers/usb/class/usblp.c: usblp0: error -71 reading printer status. There is some kind of conflict between the usb wireless keyboard/optical mouse and the usb epson printer. I am compiling the latest kernel with ochi excluded and couple other options. This is frustrating and would put one off linux really.

lmcogs
Back to top
View user's profile Send private message
Gusher2k
n00b
n00b


Joined: 23 Jan 2005
Posts: 19

PostPosted: Tue Nov 08, 2005 3:21 pm    Post subject: Compile error! Reply with quote

Hi!
After change Makefile.am with this option:

Code:


trfilter_LDADD = -ldl -lm $(top_srcdir)/lib/libdtr.a -lpthread -ldl $(top_srcdir)/lib/libnspr4.so




when run "make" command, i have this error!


Code:

sed "s,%model_name%,Stylus C65_66 Series,; \
     s,%bin_name%,pips-sc65_66s," filter.tmp > filter-sc65_66s
make[2]: Leaving directory `/home/gusher/pips-sc65_66s-2.6.2/src'
Making all in dtrfilter
make[2]: Entering directory `/home/gusher/pips-sc65_66s-2.6.2/dtrfilter'
gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -Wall -c img.c
gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -Wall -c pfpng.c
gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -Wall -c main.c
/bin/sh ../libtool --mode=link gcc  -g -O2 -Wall  -o dtrfilter  img.o pfpng.o main.o -ldl -lm ../lib/libdtr.a -lpthread -ldl ../lib/libnspr4.so -lpthread -ldl
mkdir .libs
gcc -g -O2 -Wall -o dtrfilter img.o pfpng.o main.o ../lib/libnspr4.so  -lm ../lib/libdtr.a -lpthread -ldl
../lib/libdtr.a(imgdetect_pips.o): In function `OutputMemAtBmp':
/home/ysd/branch/pips-devel/pips-closed/src/imgdetect_pips.cc:54: undefined reference to `__builtin_new'
/home/ysd/branch/pips-devel/pips-closed/src/imgdetect_pips.cc:106: undefined reference to `__builtin_delete'
/home/ysd/branch/pips-devel/pips-closed/src/imgdetect_pips.cc:106: undefined reference to `__rethrow'
../lib/libdtr.a(imgdetect.o): In function `FUNC006::~FUNC006(void)':
/home/ysd/branch/pips-devel/pips-closed/src/imgdetect.cc:128: undefined reference to `__builtin_delete'
collect2: ld returned 1 exit status
make[2]: *** [dtrfilter] Error 1




can i change the path "/home/ysd/branch/pips-devel/pips-closed/src/imgdetect_pips.cc" ??


thanks !
Back to top
View user's profile Send private message
lmcogs
Guru
Guru


Joined: 03 Apr 2005
Posts: 340

PostPosted: Tue Nov 08, 2005 6:33 pm    Post subject: Reply with quote

Hi

I got as far a Chickpea above and set up a printer in http://127.0.0.1:631/ which sets up a printer on Device URI: ekplp:/var/ekpd/ekplp0. However the docs said

'ekpd is the communication daemon for bidirectional communication with
a printer. It is necessary to start ekpd to use printer. Usually ekpd
automatically starts when starting Linux. If it is not running,
execute the following command with the root authority.

(Ex. Redhat system of Linux)
/etc/rc.d/init.d/ekpd start '

There is no ekpd in my init.d and I read somewhere to copy epkd from /usr/local/EPKowa/SPRX620_630S/. But there is ekpd.lsb, ekpd.redhat, ekpd.slackware and ekpd.debian. I copied the debian version and I get

rc-update add ekpd.debian default
* ekpd.debian added to runlevel default
* rc-update complete.

Then I did

/etc/init.d/ekpd.debian start
Starting ekpd: ekpd.


However, when I send a test page in cups web page nothing happens.

Here's whats in /etc/ekpdrc

PrinterName = sprx620_630s
PrinterDevicePath = /dev/usb/lp0
DummyDevicePath = /var/ekpd/ekplp0
CommandServerPort = 35586


Has anyone got these drivers going in gentoo?

Any ideas please.

lmcogs
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10315
Location: Córdoba (Spain)

PostPosted: Tue Dec 20, 2005 4:11 am    Post subject: Reply with quote

rbaer999 wrote:
This procedure works for me :
.........
6.) add " -lpthread -ldl $(top_srcdir)/lib/libsprx420_425_430s.so" to the end of the line so that it reads like :
dtrfilter_LDADD = -ldl -lm $(top_srcdir)/lib/libdtr.a -lpthread -ldl $(top_srcdir)/lib/libsprx420_425_430s.so
........
[/b]
This has worked for several different models of epson stylus printers
just substitute the lib/sprxxxxxxxxx.so file found in your distribution for step 6.

HTH

Great, it worked but I had to add a little mod: edit $(top_srcdir)/ekpstm/inkbox.h and comment out the line 52. Otherwise you get a compilation error about duplicated prototype and such... Just in case anyone else is experiencing that weird problem :)
Back to top
View user's profile Send private message
kneczaj
Apprentice
Apprentice


Joined: 13 Oct 2006
Posts: 169
Location: Zamosc

PostPosted: Fri Nov 10, 2006 8:38 pm    Post subject: Reply with quote

I followed rbaer999's hints but I've got a compilation error:
Code:
gcc -g -O2 -Wall -o ekpnavi main.o support.o interface.o callbacks.o navi.o ekpcom.o msg.o getstat.o -rdynamic  -L/usr/lib /usr/lib/libgtk.so /usr/lib/libgdk.so /usr/lib/libgmodule.so /usr/lib/libglib.so /usr/lib/libXi.so /usr/lib/libXext.so /usr/lib/libX11.so /usr/lib/libXau.so /usr/lib/libXdmcp.so -lm -lpthread -ldl
make[2]: Leaving directory `/home/kamil/Desktop/pips-sc65_66s-2.6.2/ekpnavi'
Making all in ekpstm
make[2]: Entering directory `/home/kamil/Desktop/pips-sc65_66s-2.6.2/ekpstm'
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../pixmaps   -I../intl       -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include    -g -O2 -Wall -c main.cIn file included from main.c:29:
support.h:36:1: warning: "N_" redefined
In file included from support.h:23,
                 from main.c:29:
../config.h:335:1: warning: this is the location of the previous definition
main.c: In function ‘main’:
main.c:73: error: label at end of compound statement
make[2]: *** [main.o] Error 1
make[2]: Leaving directory `/home/kamil/Desktop/pips-sc65_66s-2.6.2/ekpstm'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/kamil/Desktop/pips-sc65_66s-2.6.2'
make: *** [all-recursive-am] Error 2


I'm also try to comment out the line 52 in $(top_srcdir)/ekpstm/inkbox.h as 6thpink say:
Code:
# enum Inkset_Id inkbox_get_inkid( unsigned long id );

but it doesn't change anything.

EDIT
I solved this problem by type ";" at the end of 73 line in ekpsm/main.c but I get new problem.
I follow by /usr/local/EPKowa/SC65_66S/readme-sc65_66s-cups but my printer doesn't print anything.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum