1141cc406Sopenharmony_ciSANE on Windows
2141cc406Sopenharmony_ci
3141cc406Sopenharmony_ciPrerequisites
4141cc406Sopenharmony_ci=============
5141cc406Sopenharmony_ci
6141cc406Sopenharmony_ciTo be able to compile sane-backends, you need to have either Cygwin
7141cc406Sopenharmony_cior Mingw compilers and a suitable POSIX compatible environment.
8141cc406Sopenharmony_ci
9141cc406Sopenharmony_ciYou can get the Cygwin POSIX compatible environment for Windows
10141cc406Sopenharmony_ciWindows and the Cygwin gcc compiler at http://www.cygwin.com
11141cc406Sopenharmony_ci
12141cc406Sopenharmony_ciYou can get the MSYS POSIX compatible environment for Windows and the
13141cc406Sopenharmony_ciMinGW gcc compiler at http://www.mingw.org/wiki/MSYS
14141cc406Sopenharmony_ci
15141cc406Sopenharmony_ciThe scanner must be detected by Windows and not be disabled. Check
16141cc406Sopenharmony_ciwith the hardware manager.
17141cc406Sopenharmony_ci
18141cc406Sopenharmony_ci
19141cc406Sopenharmony_ciBuilding
20141cc406Sopenharmony_ci========
21141cc406Sopenharmony_ci
22141cc406Sopenharmony_ciSee general README for build basics. If a given backend fails to
23141cc406Sopenharmony_cicompile, you can use the BACKENDS variable to limit compilation
24141cc406Sopenharmony_cito backends your interested in:
25141cc406Sopenharmony_ci
26141cc406Sopenharmony_ci  ./configure BACKENDS=epson2
27141cc406Sopenharmony_ci
28141cc406Sopenharmony_ci
29141cc406Sopenharmony_ciConfiguring
30141cc406Sopenharmony_ci===========
31141cc406Sopenharmony_ci
32141cc406Sopenharmony_ciIf you have more than one scanner, you should do the following:
33141cc406Sopenharmony_ci
34141cc406Sopenharmony_ci  - run sane-find-scanner to get the device name of the scanner. The
35141cc406Sopenharmony_ci    name for scsi devices is something like h0b0t6l0, meaning hba 0, bus 0,
36141cc406Sopenharmony_ci    scsi id 6 and lun 0.
37141cc406Sopenharmony_ci
38141cc406Sopenharmony_ci  - edit the config file for the backend
39141cc406Sopenharmony_ci    (/path/to/sane/etc/sane.d/xxxx.conf) and add the scanner device name on
40141cc406Sopenharmony_ci    an empty line.
41141cc406Sopenharmony_ci
42141cc406Sopenharmony_ci  - Set environment variable SANE_CONFIG_DIR to point to the directory
43141cc406Sopenharmony_ci    where the config files are located.
44141cc406Sopenharmony_ci
45141cc406Sopenharmony_ciRun "scanimage > out.pnm" to get a scan.
46141cc406Sopenharmony_ci
47141cc406Sopenharmony_cixscanimage and XSane have been reported to compile and run in the past
48141cc406Sopenharmony_ciunder Cygwin.
49141cc406Sopenharmony_ci
50141cc406Sopenharmony_ciNotes
51141cc406Sopenharmony_ci=====
52141cc406Sopenharmony_ci
53141cc406Sopenharmony_ci- Only SCSI, USB (with libusb-win32), and network scanners may work. No
54141cc406Sopenharmony_ci  FireWire/Parallel. The Cygwin libusb port can be installed
55141cc406Sopenharmony_ci  with Cygwin setup.exe or can be compiled manually under cygwin
56141cc406Sopenharmony_ci  or mingw using the libusb-win32 port:
57141cc406Sopenharmony_ci  http://sourceforge.net/apps/trac/libusb-win32/wiki
58141cc406Sopenharmony_ci
59141cc406Sopenharmony_ci- Tested on Windows XP, 7, and using Wine on Linux.
60141cc406Sopenharmony_ci
61141cc406Sopenharmony_ci- Some scanners' backend may not work because of requirement not
62141cc406Sopenharmony_ci  supported by Cygwin or MinGW.
63141cc406Sopenharmony_ci
64141cc406Sopenharmony_ci
65141cc406Sopenharmony_ci2011/10/08
66