I'm having a bit of a problems getting SANE to work with my HP 4P scanner. First
of all I'm not really sure if it should work with it, but I hope and saw some
tips on getting it work on the mailing list archives.
[I just noticed after writing this that on the sane-hp man page it first says
that ScanJet 5P is know to work and then couple of lines below it, it says that
currently 5P is not supported. I wonder if it really should read that 4P is
supported. If this is the case please ignore the rest, then I'll just have to
wait until 4P is supported since I don't know much more about C than that it is
the third letter in the alphabets.]
This boggles me...
checking for scsi.h... (cached) no
checking for sys/scsi.h... (cached) no
checking for sys/scsicmd.h... (cached) no
checking for sys/scsiio.h... (cached) no
checking for bsd/dev/scsireg.h... (cached) no
checking for scsi/sg.h... (cached) yes
checking for /usr/src/linux/include/scsi/sg.h... (cached) yes
I have a link from /usr/include/scsi to /usr/src/linux/include/scsi so I
wonder why scsi.h isn't found and I have copied the scsi.h file to to both /usr/
include and /usr/include/sys directories and it still doesn't find it.
I overcame this problem by changing scsi.h in the configure script to
/usr/src/linux/include/scsi/scsi.h and then the configure script found
I don't know if it is enough.
Then I do make and make install.
Here is the debug information I get with scanimage -d hp
[sanei_init_debug]: Setting debug level of dll to 128.
[dll] adding backend pnm
[dll] adding backend mustek
[dll] adding backend hp
[dll] adding backend qcam
[dll] loading backend hp
[dll] load: found `/usr/local/lib/libsane-hp.la'
[dll] dlopen()ing `/usr/local/lib/libsane-hp.so.0'
[dll] init: initializing backend `hp'
[sanei_init_debug]: Setting debug level of hp to 128.
[hp] attach: opening /dev/scanner
[sanei_init_debug]: Setting debug level of sanei_scsi to 128.
[sanei_scsi] sanei_scsi_open: open() failed: No such device or address
[hp] attach: open failed (Invalid argument)
scanimage: open of device hp failed: Invalid argument
[dll] exiting
[dll] calling backend `hp's exit function
I'm using redhat 4.0 with various things upgraded. The scanner is connected to
Adaptec 1542B. Kernel is 2.0.18 and I just downloaded the sane distribution 0.63
from a sunsite mirror in funet.
Any help is appreciated.
Petri
-- Source code, list archive, and docs: http://www.azstarnet.com/~axplinux/sane/ To unsubscribe: mail -s unsubscribe sane-devel-request@listserv.azstarnet.com