[sane-devel] scanimage and the net backend with cygwin?

Henning Meier-Geinitz henning at meier-geinitz.de
Thu Jan 26 17:34:50 UTC 2006


Hi,

On 2006-01-23 14:49, Philip Aston wrote:
> I'd like to use scanimage on my windows machine (for scripting jobs),
> so I've built and installed sane-backends-1.0.17 using Cygwin. (This
> required a couple of tweaks, patches below).

I have no experience with sane on windows and also not with hpaio...

> I'm now trying to use scanimage with command lines similar to
> 
>   % scanimage -d net:/hostname:hpaio:/usb/hp_LaserJet_3020

net:localhost:hapaio:something

No "/" before the hostname!

> but I'm always getting
> 
>   scanimage: open of device net:/hostname:hpaio:/usb/hp_LaserJet_3020
> failed: Invalid argument

The net backend can't find "/hostname", I guess. Enable debugging
(export SANE_DEBUG_NET=255) on the client.

 
> --- snapscan-usb.c.original	2006-01-23 12:14:59.012552000 +0000
> +++ snapscan-usb.c	2006-01-23 12:15:11.150004800 +0000
> @@ -74,6 +74,15 @@
>  #include "snapscan-usb.h"
>  #include "snapscan-mutex.c"
>  
> +#ifndef SHM_R
> +#define SHM_R 0
> +#endif
> +
> +#ifndef SHM_W
> +#define SHM_W 0
> +#endif
> +

This one looks ok.

> --- sanei_usb.original	2005-10-03 18:40:44.000000000 +0100
> +++ sanei_usb.h	2006-01-23 12:06:27.797460800 +0000
> @@ -378,7 +378,7 @@
>   */
>  
>  extern SANE_Status
> -sanei_usb_claim_interface (SANE_Int dn, SANE_Int interface);
> +sanei_usb_claim_interface (SANE_Int dn, SANE_Int interfac);

Well, this one doesn't look very nice :-) Is "interface" used by a
windows header file? What's the error message?

Bye,
  Henning



More information about the sane-devel mailing list