[sane-devel] sane under windows XP / 7

Matteo Gasparin email.diversa at gmail.com
Tue Sep 4 15:33:50 UTC 2012


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:

*** canon_pp backend requires libieee1284 library - disabling
*** gphoto2 backend requires gphoto2 and JPEG libraries - disabling
*** hpsj5s backend requires libieee1284 library - disabling
*** mustek_pp backend requires libieee1284 and paraport-directio libraries
- disabling
*** mustek_usb2 backend requires pthread library - disabling
*** pint backend requires sys/scanio.h - disabling
*** qcam backend requires ioperm and portaccess functions - disabling
*** v4l backend requires v4l libraries - disabling
*** pnm backend not manually selected - disabling

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.

Did I do something wrong? Did I miss something?

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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20120904/eab0a3fc/attachment.html>


More information about the sane-devel mailing list