LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-04-2018, 08:27 AM   #1
vonbiber
Member
 
Registered: Apr 2009
Distribution: slackware 14.1 64-bit, slackware 14.2 64-bit, SystemRescueCD
Posts: 468

Rep: Reputation: 102Reputation: 102
EPSON scanner Perfection V370


Anybody tried to use the EPSON scanner Perfection V370 in slackware 14.2?
I first downloaded the source for the driver along with iscan---a graphical interface, but I got a compilation error
Code:
pngstream.cc: In member function 'virtual iscan::basic_imgstream& iscan::pngstream::flush()':
pngstream.cc:86:36: error: invalid use of incomplete type 'png_struct {aka struct png_struct_def}'
     if (_header && !_footer && _png->num_rows == _png->flush_rows)
                                    ^
In file included from pngstream.hh:48:0,
                 from pngstream.cc:34:
/usr/include/png.h:475:16: note: forward declaration of 'png_struct {aka struct png_struct_def}'
 typedef struct png_struct_def png_struct;
                ^
pngstream.cc:86:54: error: invalid use of incomplete type 'png_struct {aka struct png_struct_def}'
     if (_header && !_footer && _png->num_rows == _png->flush_rows)
                                                      ^
In file included from pngstream.hh:48:0,
                 from pngstream.cc:34:
/usr/include/png.h:475:16: note: forward declaration of 'png_struct {aka struct png_struct_def}'
 typedef struct png_struct_def png_struct;
                ^
make[1]: *** [libimage_stream_la-pngstream.lo] Error 1
make: *** [all-recursive] Error 1
I wonder if this uses an older version of libpng.

Anyway, after that I downloaded an RPM bundle that I repackaged.
I ldd'd the binaries and it looked ok (no missing libraries).
I can't test it because I don't have this scanner.
Before buying one, I'd like to know if
anybody out there has used it in slackware.
Thanks
 
Old 03-04-2018, 03:34 PM   #2
fido_dogstoyevsky
Member
 
Registered: Feb 2015
Location: Victoria, Australia
Distribution: Slackware 14.2
Posts: 234
Blog Entries: 2

Rep: Reputation: 210Reputation: 210Reputation: 210
Quote:
Originally Posted by vonbiber View Post
Anybody tried to use the EPSON scanner Perfection V370 in slackware 14.2?
I first downloaded the source for the driver along with iscan---a graphical interface, but I got a compilation error...
Before buying one, I'd like to know if
anybody out there has used it in slackware.
Thanks
I'm using a V350, I assume the V370 is as poorly supported (apparently some other Epson scanners have good Linux support). Installation is particular about order, here are my notes from when I installed it in 14.1, also works with 14.2:

Quote:
Newer versions of this software are now only (maybe) available from the epson website.

This is copied from an earlier version so version numbers will have changed.

Slackware486 14.1:

In order to install the drivers properly:

(1) Iscanfree must be removed if it has been installed.

(2) The order of installation must be

(i) FIRST install iscan-data-1.22.0-noarch-1.txz

(ii) THEN install iscan-2.29.1-i386-5.usb0.1.ltdl7.txz

(iii) THEN install iscan-plugin-gt-f700-2.1.2-i386-1.txz

then the epson v350 should work from the GIMP.

NOTE the txz files were converted from rpm files using rpm2txz -c -S -n -d
I downloaded the (32bit and 64bit) drivers from the avasys site - unfortunately no longer available. The aggravation with drivers for this model turned me off giving epson any of my money in the future.

[EDIT should work with 32bit and 64bit Slackware 14.1 and 14.2, but I've only used it on a 16bit laptop]

Last edited by fido_dogstoyevsky; 03-04-2018 at 03:44 PM.
 
Old 03-06-2018, 09:06 PM   #3
ljb643
Member
 
Registered: Nov 2003
Posts: 399

Rep: Reputation: Disabled
Epson's iscan needs a patch to build against 'recent' versions of libpng.
One version of that patch can be found here: http://www.slackware.com/~alien/slackbuilds/iscan/
 
Old 03-07-2018, 02:20 AM   #4
vonbiber
Member
 
Registered: Apr 2009
Distribution: slackware 14.1 64-bit, slackware 14.2 64-bit, SystemRescueCD
Posts: 468

Original Poster
Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by ljb643 View Post
Epson's iscan needs a patch to build against 'recent' versions of libpng.
One version of that patch can be found here: http://www.slackware.com/~alien/slackbuilds/iscan/
I suspected something like this. After some search I did find the patch
from archlinux. It did solve that part of compiling errors.
But now I got another issue:
Code:
make[2]: Entering directory '.../non-free'
....
ln -s ./libesmode-${arch}.so libesmod.so
...
libesmod.so is already there ...
...
[make]: Leaving directory '.../non-free'
...
make[2]: Entering directory '.../frontend'
make[2]: Leaving directory '.../frontend'
Makefile:388: recipe for target 'all-recursive' failed
make[2]: *** No rule to make target '../non-free/libesmod.so', needed by 'iscan'.  Stop.
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
 
Old 03-07-2018, 02:28 AM   #5
vonbiber
Member
 
Registered: Apr 2009
Distribution: slackware 14.1 64-bit, slackware 14.2 64-bit, SystemRescueCD
Posts: 468

Original Poster
Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by fido_dogstoyevsky View Post
I'm using a V350, I assume the V370 is as poorly supported (apparently some other Epson scanners have good Linux support).
I did find the V370 drivers (sources and binaries) on the epson web site.
From an RPM bundle of binaries, I extracted 3 archives:
Code:
iscan-2.30.2-2.x86_64.rpm
iscan-data-1.36.0-1.noarch.rpm
iscan-plugin-perfection-v370-1.0.0-2.x86_64.rpm
I unpacked them, moved a few files around and repackaged them.
Now I'll go get that scanner, install those packages and see how it goes.
Later on I might try to build the packages from source.
 
Old 03-07-2018, 07:49 AM   #6
vonbiber
Member
 
Registered: Apr 2009
Distribution: slackware 14.1 64-bit, slackware 14.2 64-bit, SystemRescueCD
Posts: 468

Original Poster
Rep: Reputation: 102Reputation: 102
1. I installed
Code:
/var/log/packages/iscan-2.30.2-x86_64-1_vbi
/var/log/packages/iscan-data-1.36.0-noarch-1_vbi
/var/log/packages/iscan-plugin-pv370-1.0.0-x86_64-1_vbi
2. plugged-in and turned on the scanner
3. started iscan from the menu: nothing happened
did it from a console, then I got this message (dialog box):
---| Could not send command to scanner. |
---| Check the scanner status |

I also did
Code:
lsusb | grep -i epson
which returned
Code:
Bus 003 Device 003: ID 04b8:014a Seiko Epson Corp.
Then I entered this in /etc/sane.d/epkwo
Code:
usb 04b8 014a
I also commented out the scsi entry
I don't know what else I can do right now.
I started reading the iscan (pdf) manual and I just saw this line:
The SANE package version 1.0.3 or later must be installed before installing
Image Scan! for Linux
Code:
/var/log/packages/sane-1.0.25-x86_64-2
is what I got. So I guess that must be it.
Scratch that (25>3)

Last edited by vonbiber; 03-07-2018 at 08:14 AM. Reason: just checked this
 
1 members found this post helpful.
Old 03-07-2018, 09:20 AM   #7
lecho
LQ Newbie
 
Registered: Jan 2013
Location: Warsaw, Poland
Distribution: Slackware
Posts: 18

Rep: Reputation: Disabled
Have you run the POSTIN script:
Quote:
iscan-registry --add interpreter usb 0x04b8 0x014a \
/usr/lib64/iscan/libiscan-plugin-perfection-v370 \
/usr/share/iscan/esfwdd.bin
Some years ago I had problems with my Epson V330 because a similar script was not transferred from rpm to tgz package.
 
Old 03-07-2018, 09:36 AM   #8
vonbiber
Member
 
Registered: Apr 2009
Distribution: slackware 14.1 64-bit, slackware 14.2 64-bit, SystemRescueCD
Posts: 468

Original Poster
Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by lecho View Post
Have you run the POSTIN script:
iscan-registry --add interpreter usb 0x04b8 0x014a \
/usr/lib64/iscan/libiscan-plugin-perfection-v370 \
/usr/share/iscan/esfwdd.bin
No, I haven't. Shouldn't I use the extension for lib file?
Code:
/usr/lib64/iscan/libiscan-plugin-perfection-v370.so
 
Old 03-07-2018, 09:40 AM   #9
lecho
LQ Newbie
 
Registered: Jan 2013
Location: Warsaw, Poland
Distribution: Slackware
Posts: 18

Rep: Reputation: Disabled
I don't think so. I run the original script from the rpm package (for v330) with no extension for lib file.
 
Old 03-07-2018, 09:45 AM   #10
vonbiber
Member
 
Registered: Apr 2009
Distribution: slackware 14.1 64-bit, slackware 14.2 64-bit, SystemRescueCD
Posts: 468

Original Poster
Rep: Reputation: 102Reputation: 102
Yes, no extension. I just checked the man page for iscan-registry
I ran that command.
Now I noticed the presence of /var/lib/iscan/interpreter
with that information.
I'll test this later (my scanner is not plugged-in)
 
Old 03-07-2018, 11:56 AM   #11
vonbiber
Member
 
Registered: Apr 2009
Distribution: slackware 14.1 64-bit, slackware 14.2 64-bit, SystemRescueCD
Posts: 468

Original Poster
Rep: Reputation: 102Reputation: 102
Nope, didn't work
I ran the command sane-find-scanner
As an ordinary user I got these messages:
Code:
...
could not open USB device ...
.....
Then as root I got:
Code:
found USB scanner (vendor=0x04b8 [EPSON], product=0x014a [EPSON Perfection V37/V370]) at libusb:003:003
I checked the permissions in /dev/bus/usb
There are 4 directories named 001, 002, 003, 004.
They all have drwxr-xr-x permissions and the ownership is root:root
As the command above refers to 003, I checked the permissions of that folder and I got:
Code:
ls -l /dev/bus/usb/003/*
crw-rw-r-- 1 root root ... /dev/bus/usb/003/001
crw-rw-r-- 1 root root ... /dev/bus/usb/003/002
crw-rw-r-- 1 root lp   ... /dev/bus/usb/003/003
 
Old 03-07-2018, 02:47 PM   #12
lecho
LQ Newbie
 
Registered: Jan 2013
Location: Warsaw, Poland
Distribution: Slackware
Posts: 18

Rep: Reputation: Disabled
It doesn't look bad. To use a scanner as ordinary user you should be a member of lp group. What is an output from
Quote:
scanimage -L
 
Old 03-08-2018, 07:52 AM   #13
vonbiber
Member
 
Registered: Apr 2009
Distribution: slackware 14.1 64-bit, slackware 14.2 64-bit, SystemRescueCD
Posts: 468

Original Poster
Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by lecho View Post
It doesn't look bad. To use a scanner as ordinary user you should be a member of lp group. What is an output from
Code:
$ scanimage -L

No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).
The scanner was plugged in and turned on.

I am already a member of these groups: lp, plugdev, scanner

I also ran scanimage as root:
Code:
# /usr/bin/scanimage -L

No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).

Last edited by vonbiber; 03-08-2018 at 08:00 AM. Reason: additional info
 
Old 03-08-2018, 08:24 AM   #14
lecho
LQ Newbie
 
Registered: Jan 2013
Location: Warsaw, Poland
Distribution: Slackware
Posts: 18

Rep: Reputation: Disabled
Now it looks worse. Another thing which comes to mind - in /etc/sane.d/epkowa.conf
I have only usb (without specific vendor/product IDs), you can try this, especially that you wrote previously that you entered
Code:
usb 04b8 014a
I'm not sure if they should be written 0x4b8 0x14a.
Another thing - in /etc/sane.d folder I have dll.d folder with a file conf containing a line "epkowa", but again I'm not sure if this is really necessary.
 
Old 03-08-2018, 09:17 AM   #15
vonbiber
Member
 
Registered: Apr 2009
Distribution: slackware 14.1 64-bit, slackware 14.2 64-bit, SystemRescueCD
Posts: 468

Original Poster
Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by lecho View Post
Now it looks worse. Another thing which comes to mind - in /etc/sane.d/epkowa.conf
I have only usb (without specific vendor/product IDs), you can try this, especially that you wrote previously that you entered
Code:
usb 04b8 014a
I'm not sure if they should be written 0x4b8 0x14a.
Yeah, I realized that but the entry now is
Code:
usb 0x04b8 0x014a
Quote:
Another thing - in /etc/sane.d folder I have dll.d folder with a file conf containing a line "epkowa", but again I'm not sure if this is really necessary.
My folder /etc/sane.d/dll.d is empty
What's the name of the conf file (in dll.d)
There's also (in /etc/sane.d) a file named dll.conf
Code:
# grep ep dll.conf
artec_eplus48u
epjitsu
#epson
epson2
epsonds
sceptre
# HPLIP backend homepage: http://hplip.sf.net/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with scanner Epson perfection v370 Toutatis Slackware 6 11-20-2015 09:53 PM
[SOLVED] Epson Perfection 350 Scanner driver will not recognize the scanner Mikech Linux - Hardware 4 10-25-2012 12:09 PM
[SOLVED] Epson Perfection 1270 Scanner Lexus45 Linux - Hardware 2 09-04-2011 11:35 PM
epson perfection 3490 scanner mtb Linux - Hardware 2 11-16-2005 02:13 PM
epson perfection 636 scanner... vance Linux - Hardware 1 12-15-2002 11:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration