I'm trying to write a multi platform scanning utility using SANE but,
while everything with linux is fine, opening the device and all, I find
issues with windows, both xp 32 and 7 64 bit. I downloaded the source
and compiled it using cygwin and the libusb-win32 library and everything
went fine; some of the backends didn't build:<br>
<br>*** canon_pp backend requires libieee1284 library - disabling<br>*** gphoto2 backend requires gphoto2 and JPEG libraries - disabling<br>*** hpsj5s backend requires libieee1284 library - disabling<br>*** mustek_pp backend requires libieee1284 and paraport-directio libraries - disabling<br>
*** mustek_usb2 backend requires pthread library - disabling<br>*** pint backend requires sys/scanio.h - disabling<br>*** qcam backend requires ioperm and portaccess functions - disabling<br>*** v4l backend requires v4l libraries - disabling<br>
*** pnm backend not manually selected - disabling<br><br>which is ok for
me, since the scanner I'm trying to reach is a HP Scanjet 5300C, which
should use the avisio backend. I thought it could be a USB driver issue
so I used libwdi's zadig program to switch the normal xp driver with the
libusb-win32 one. After that sane-find-scanner could correctly
recognize the scanner but no luck using scanimage.<br>
<br>Did I do something wrong? Did I miss something?<br><br>On top of
that I'm using Java and JNA to interface with SANE; again everything
using linux is fine, while with windows it correctly loads the library
and then hangs at the first call of sane_init(null, null) . Someone got
an idea about that?