1SANE on Windows
2
3Prerequisites
4=============
5
6To be able to compile sane-backends, you need to have either Cygwin
7or Mingw compilers and a suitable POSIX compatible environment.
8
9You can get the Cygwin POSIX compatible environment for Windows
10Windows and the Cygwin gcc compiler at http://www.cygwin.com
11
12You can get the MSYS POSIX compatible environment for Windows and the
13MinGW gcc compiler at http://www.mingw.org/wiki/MSYS
14
15The scanner must be detected by Windows and not be disabled. Check
16with the hardware manager.
17
18
19Building
20========
21
22See general README for build basics. If a given backend fails to
23compile, you can use the BACKENDS variable to limit compilation
24to backends your interested in:
25
26  ./configure BACKENDS=epson2
27
28
29Configuring
30===========
31
32If you have more than one scanner, you should do the following:
33
34  - run sane-find-scanner to get the device name of the scanner. The
35    name for scsi devices is something like h0b0t6l0, meaning hba 0, bus 0,
36    scsi id 6 and lun 0.
37
38  - edit the config file for the backend
39    (/path/to/sane/etc/sane.d/xxxx.conf) and add the scanner device name on
40    an empty line.
41
42  - Set environment variable SANE_CONFIG_DIR to point to the directory
43    where the config files are located.
44
45Run "scanimage > out.pnm" to get a scan.
46
47xscanimage and XSane have been reported to compile and run in the past
48under Cygwin.
49
50Notes
51=====
52
53- Only SCSI, USB (with libusb-win32), and network scanners may work. No
54  FireWire/Parallel. The Cygwin libusb port can be installed
55  with Cygwin setup.exe or can be compiled manually under cygwin
56  or mingw using the libusb-win32 port:
57  http://sourceforge.net/apps/trac/libusb-win32/wiki
58
59- Tested on Windows XP, 7, and using Wine on Linux.
60
61- Some scanners' backend may not work because of requirement not
62  supported by Cygwin or MinGW.
63
64
652011/10/08
66