Re: HP 4P problems

Mathias Weigt (p5iba@medchem7.pharmazie.uni-halle.de)
Thu, 18 Sep 1997 21:14:18 +0059 (MDT)

Servus !

> Hello SANE developers and other expoerts,
I`m not an expert :-)

> 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.]

But I had the HP 4P running on SANE (0.62) - So there is no reason for it
not to work.
> 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.

You should do a "make distclean" before typing configure again..

>
> 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

Does the Kernel recognizes the Scanner ?
Is your link /dev/scanner to /dev/sg? correct set ?

--
Source code, list archive, and docs: http://www.azstarnet.com/~axplinux/sane/
To unsubscribe: mail -s unsubscribe sane-devel-request@listserv.azstarnet.com