Hello, I have saned working fine on my linux box, with sanetwain (http://sanetwain.ozuzo.net/) 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. *
