List Info

Thread: scanimage and the net backend with cygwin?




scanimage and the net backend with cygwin?
user name
2006-01-23 14:49:16
Hello,
 
I have saned working fine on my linux box, with sanetwain
(http://sanetwain.ozuzo.ne
t/) bridging into TWAIN on my windows
machine.

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'm now trying to use scanimage with command lines similar
to

  % scanimage -d net:/hostname:hpaio:/usb/hp_LaserJet_3020

but I'm always getting

  scanimage: open of device
net:/hostname:hpaio:/usb/hp_LaserJet_3020
failed: Invalid argument

If I run saned with debug, I don't see any activity at all.
Its as if
the Cygwin client doesn't even try to contact the server.
However,
sanetwain continues to work fine.

Is the net backend supposed to work under Cygwin?

Thanks,

- Phil




--- 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
+
+
 /* Global variables */
 
 static snapscan_mutex_t snapscan_mutex;


--- 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);
 
 /** Initiate release interface.
  *
 -396,7
+396,7 
  */
 
 extern SANE_Status
-sanei_usb_release_interface (SANE_Int dn, SANE_Int
interface);
+sanei_usb_release_interface (SANE_Int dn, SANE_Int
interfac);
 
 /** Initiate a set altinterface.
  *


-- 
sane-devel mailing list: sane-devellists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/sane-d
evel
Unsubscribe: Send mail with subject "unsubscribe
your_password"
             to sane-devel-requestlists.alioth.debian.org
scanimage and the net backend with cygwin?
user name
2006-01-26 17:34:50
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

-- 
sane-devel mailing list: sane-devellists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/sane-d
evel
Unsubscribe: Send mail with subject "unsubscribe
your_password"
             to sane-devel-requestlists.alioth.debian.org
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )