Click to See Complete Forum and Search --> : How to setup my SANE supported Scanner


gmoreno
01-20-2001, 04:27 PM
Ok I finally bought a scanner that is supported my SANE. It is a Plustek Optic 4800P(lp).

There is a NHF here but Its a little old and there has been many changes to Sane itself. Since theres a backend and frontend and all that. It recomends to apply a patch to the kernel source. I'm not sure what to do to setup my scanner.

When I try to compilie sane I get this error message:

In file included from linux_sg3_err.h:4,
from sanei_scsi.c:230:
/usr/include/linux/../scsi/sg.h:102: redefinition of `struct sg_header'
/usr/include/linux/../scsi/sg.h:120: redefinition of `struct sg_scsi_id'
/usr/include/linux/../scsi/sg.h:130: warning: redefinition of `Sg_scsi_id'
/usr/include/scsi/sg.h:211: warning: `Sg_scsi_id' previously declared here
make[1]: *** [sanei_scsi.o] Error 1
make[1]: Leaving directory `/home/gmoreno/sane-backends-1.0.4/sanei'
make: *** [all-recursive] Error 1


What do I need to add to my kernel? And as a module or built in.

Thanks

sssadams
01-20-2001, 07:43 PM
I got the same error.Its not a big deal to me and Im lazy when it comes to things not of importance.I d/l sane 1.02 and the plustek backend and followed the instructions and it works great with kernel 2.2.18 but not 2.4.0.The plustek b/e gets copied to the sane directory and you untar it from there.

gmoreno
01-20-2001, 07:47 PM
Thanks for replying.. BTW what scanner do you have and is it parrallel or scsi or what?

gmoreno
01-20-2001, 11:56 PM
I finally figured out what I needed to do.

- Missing /usr/include/scsi on Linux systems
Older Linux distributions are missing the /usr/include/scsi directory.
In such a case, it is necessary to copy the relevant files from
the kernel distribution. Normally, the command:

cp -a /usr/src/linux/include/scsi /usr/include

gmoreno
01-21-2001, 12:12 AM
sane is compilied now what?

DrDebian
01-21-2001, 01:46 AM
Originally posted by gmoreno:
sane is compilied now what?

If you happen to run Debian, try running "find-scanner" which will tell you on which device the scanner resides, i.e. /dev/sg3.

You can then link /dev/sg3 to /dev/scanner by typing "ln -s /dev/sg3 /dev/scanner", so xsane and xscanimage can find the scanner more easily.

sssadams
01-21-2001, 01:19 PM
try scanimage -L to see if your scanner is recognised.Then to scan I use xsane

gmoreno
01-22-2001, 06:34 PM
Scanner was not found..I think beacause it connects to my paralell port. Now what?

ssadams
01-22-2001, 07:04 PM
mine is a Plustek 600P,it connects to the parallel port.I have scsi generic compiled into the kernel.Did you modprobe pt_drv(its the module sane makes for my scanner).I havent played with 1.04 except the 1 time and I tossed it so I dont know what the procedure is after you compile sane.With my version you issue make load to form the driver.

crazyox2
01-22-2001, 07:09 PM
Is anyone else having problems using their scanner with the new kernel 2.4? My scanner will start to scan, but then it'll get a bunch of I/O errors from xsane.

gmoreno
01-22-2001, 09:10 PM
I had compilied 1.0.4 with the driver for plustek but that didnt seem to work. Now I'm compiling 1.0.2 with the Plustek Driver. Hopefully it will work. Let's see if it works.

Regarding 2.4.0 I have heard that there is some scanner problems...

gmoreno
01-22-2001, 10:17 PM
I get this error when I try to compile sane with the Plustek stuff.:

making all in doc
make[1]: Entering directory `/home/gmoreno/sane-1.0.2/doc'
make[1]: *** No rule to make target `sane-s9036.5', needed by `all'. Stop.
make[1]: Leaving directory `/home/gmoreno/sane-1.0.2/doc'
make: *** [all-recursive] Error 1

ssadams
01-22-2001, 11:03 PM
I used sane 1.02 and the plustek b/e.I untared sane,copied the plustek tar file to the sane folder,untared it and read the INSTALL thats in /sane/backend/plustek...
I also have this whole thing under /usr/local.I also compiled and installed the whole thing as root.I dont like the su -m they talk about.

gmoreno
01-23-2001, 01:43 AM
Ok Finally got it to compile. For some reason when the doc directory from the plustek_driver would be copied over it would give me problems to compile. Ok well I got this message from the driver:

pt_drv : driver version 0.37-24
pt_drv0: 4830P found on port 0x0378
pt_drv0: Lamp-Timer set to 180 seconds.
pt_drv0: WarmUp period set to 30 seconds.
pt_drv0: Lamp untouched on driver unload.


I've made the /dev/pt_drv according to that INSTALL file. But when I do a find-scanner nothing comes up. I did a scanimage -d plustek:/dev/pt_drv or /dev/scanner and no work.

Ok now what? Plase help me I'm very close to getting this to work.

ssadams
01-23-2001, 02:26 AM
after you make the plustek driver did you do add /usr/local/sane/ to your /etc/ld.so.conf file and run ldconfig?
I think the libraies are screwed and you have to link them yourself.After that its a make load like you done and a scanimage -L to see if it works.Xsane is a seperate d/l with sane 1.02 i think.

gmoreno
01-23-2001, 01:36 PM
I linked the libraries. I think everything is right. But still nothing shows up with scanimage -L or find-scanner. WHen done as user and as root.