README.windows 1.8 KB
Newer Older
1
SANE on Windows
Frank Zago's avatar
Frank Zago committed
2 3 4 5

Prerequisites
=============

6 7
To be able to compile sane-backends, you need to have either Cygwin
or Mingw compilers and a suitable POSIX compatible environment.
Frank Zago's avatar
Frank Zago committed
8

9 10 11 12 13
You can get the Cygwin POSIX compatible environment for Windows
Windows and the Cygwin gcc compiler at http://www.cygwin.com

You can get the MSYS POSIX compatible environment for Windows and the
MinGW gcc compiler at http://www.mingw.org/wiki/MSYS
Frank Zago's avatar
Frank Zago committed
14 15 16 17 18

The scanner must be detected by Windows and not be disabled. Check
with the hardware manager.


19 20 21
Building
========

22 23 24
See general README for build basics. If a given backend fails to
compile, you can use the BACKENDS variable to limit compilation
to backends your interested in:
25

26
  ./configure BACKENDS=epson2
27

28 29 30

Configuring
===========
Frank Zago's avatar
Frank Zago committed
31 32 33 34

If you have more than one scanner, you should do the following:

  - run sane-find-scanner to get the device name of the scanner. The
35 36
    name for scsi devices is something like h0b0t6l0, meaning hba 0, bus 0,
    scsi id 6 and lun 0.
Frank Zago's avatar
Frank Zago committed
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
Frank Zago's avatar
Frank Zago committed
40 41
    an empty line.

42 43
  - Set environment variable SANE_CONFIG_DIR to point to the directory
    where the config files are located.
Frank Zago's avatar
Frank Zago committed
44

45
Run "scanimage > out.pnm" to get a scan.
46

47 48
xscanimage ans XSane have been reported to compile and run in the past
under Cygwin.
Frank Zago's avatar
Frank Zago committed
49

50 51
Notes
=====
Frank Zago's avatar
Frank Zago committed
52

53 54 55 56 57
- Only SCSI, USB (with libusb-win32), and network scanners may work. No
  FireWire/Parallel. The Cygwin libusb port can be installed
  with Cygwin setup.exe or can be compiled manually under cygwin
  or mingw using the libusb-win32 port:
  http://sourceforge.net/apps/trac/libusb-win32/wiki
Frank Zago's avatar
Frank Zago committed
58

59
- Tested on Windows XP, 7, and using Wine on Linux.
Frank Zago's avatar
Frank Zago committed
60

61
- Some scanners' backend may not work because of requirement not
62
  supported by Cygwin or MinGW.
63 64


65
2011/10/08