update README.windows to include mingw info.

merge-requests/1/head
Chris Bagwell 2011-11-08 21:47:16 -06:00
rodzic e7f01c3b36
commit 11531d97d5
2 zmienionych plików z 33 dodań i 25 usunięć

Wyświetl plik

@ -12,6 +12,8 @@
Add back the useful --disable-dynamic and Add back the useful --disable-dynamic and
--disable-preload that appear to have been removed --disable-preload that appear to have been removed
at some point but are documented in README. at some point but are documented in README.
* README.windows: Update info to include mingw
references.
2011-11-07 Chris Bagwell <chris at cnpbagwell dot com> 2011-11-07 Chris Bagwell <chris at cnpbagwell dot com>
* ltmain.sh: Disable sane's soname libtool hack for * ltmain.sh: Disable sane's soname libtool hack for

Wyświetl plik

@ -1,13 +1,16 @@
SANE on Cygwin/Win32 SANE on Windows
Prerequisites Prerequisites
============= =============
To be able to compile sane-backends, you need to have Cygwin installed, To be able to compile sane-backends, you need to have either Cygwin
with at least the following package(s): or Mingw compilers and a suitable POSIX compatible environment.
- gcc
You can get Cygwin at http://sources.redhat.com/cygwin/ 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
The scanner must be detected by Windows and not be disabled. Check The scanner must be detected by Windows and not be disabled. Check
with the hardware manager. with the hardware manager.
@ -16,44 +19,47 @@ with the hardware manager.
Building Building
======== ========
See general README for build basics. The autoconf script (configure) checks See general README for build basics. If a given backend fails to
for C++ compilers and misdetects CC (=cc = gcc) a a c++ compiler because of compile, you can use the BACKENDS variable to limit compilation
the case-insensitive filesystem. If that happens, one work-around will be to to backends your interested in:
install a real C++ compiler.
./configure BACKENDS=epson2
Scanning Configuring
======== ===========
If you have more than one scanner, you should do the following: 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 - run sane-find-scanner to get the device name of the scanner. The
name is something like h0b0t6l0, meaning hba 0, bus 0, scsi id 6 and name for scsi devices is something like h0b0t6l0, meaning hba 0, bus 0,
lun 0. scsi id 6 and lun 0.
- edit the config file for the backend - edit the config file for the backend
(/usr/local/etc/sane.d/xxxx.conf) and add the scanner device name on (/path/to/sane/etc/sane.d/xxxx.conf) and add the scanner device name on
an empty line. an empty line.
- Set environment variable SANE_CONFIG_DIR to point to the directory
where the config files are located.
Run "scanimage > out.pnm" to get a scan. Run "scanimage > out.pnm" to get a scan.
xscanimage and XSane also work. xscanimage compiles and runs out of xscanimage ans XSane have been reported to compile and run in the past
the box. XSane 0.92 needs a couple build fixes. under Cygwin.
Notes Notes
===== =====
- Only SCSI and USB (with libusb-win32) scanners may work. No - Only SCSI, USB (with libusb-win32), and network scanners may work. No
FireWire/Parallel. The Cygwin libusb port is at FireWire/Parallel. The Cygwin libusb port can be installed
http://sourceforge.net/projects/libusb-win32. 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
- Tested on Windows 2000 only. Should work on Windows NT/XP too; - Tested on Windows XP, 7, and using Wine on Linux.
may or may not work on Windows 95/98/ME.
- Some scanners' backend may not work because of requirement not - Some scanners' backend may not work because of requirement not
supported by Cygwin. supported by Cygwin or MinGW.
2004/02/07 2011/10/08
Frank Zago.