| 
									
										
										
										
											1999-08-09 18:06:01 +00:00
										 |  |  | How to configure, build, and install SANE. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2003-04-20 13:12:42 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2000-11-23 21:57:02 +00:00
										 |  |  | Introduction: | 
					
						
							|  |  |  | ============= | 
					
						
							|  |  |  | SANE stands for Scanner Access Now Easy. | 
					
						
							|  |  |  | This package contains the SANE libraries (this means backends and | 
					
						
							|  |  |  | network scanning parts) and the command line frontend scanimage. | 
					
						
							| 
									
										
										
										
											2000-11-23 23:01:36 +00:00
										 |  |  | You always find the most recent version of SANE on: | 
					
						
							| 
									
										
										
										
											2001-04-29 10:15:51 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2003-09-24 13:23:25 +00:00
										 |  |  |   http://www.sane-project.org/ | 
					
						
							| 
									
										
										
										
											2001-04-29 10:15:51 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-06-27 13:05:50 +00:00
										 |  |  | At the same location there are also links to snapshots of the Git server and | 
					
						
							| 
									
										
										
										
											2003-04-20 13:12:42 +00:00
										 |  |  | sometimes beta releases of sane-backends. These are unstable development | 
					
						
							|  |  |  | versions, so be careful when using them. Please report any problems to us. See | 
					
						
							|  |  |  | contact section for details. | 
					
						
							| 
									
										
										
										
											2000-11-23 21:57:02 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2003-04-20 13:12:42 +00:00
										 |  |  | There are several graphical frontends available for SANE, see the list at | 
					
						
							| 
									
										
										
										
											2003-09-24 13:23:25 +00:00
										 |  |  | http://www.sane-project.org/sane-frontends.html. | 
					
						
							| 
									
										
										
										
											2000-11-23 21:57:02 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2000-08-12 15:11:46 +00:00
										 |  |  | Quick install: | 
					
						
							|  |  |  | ============== | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-06-07 11:48:40 +00:00
										 |  |  | ./autogen.sh    # only if you just cloned the git repository | 
					
						
							| 
									
										
										
										
											2000-08-12 15:11:46 +00:00
										 |  |  | ./configure | 
					
						
							|  |  |  | make | 
					
						
							|  |  |  | make install | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-05-21 20:31:09 +00:00
										 |  |  | man sane | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2003-04-20 13:12:42 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2000-08-12 15:11:46 +00:00
										 |  |  | Prerequisites | 
					
						
							|  |  |  | ============= | 
					
						
							| 
									
										
										
										
											1999-08-09 18:06:01 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | In order to build SANE, the following tools and libraries are required: | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	- GNU make: version 3.70 or newer | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-06-15 11:47:28 +00:00
										 |  |  | 	- ISO C99 compiler: GNU C (gcc) is recommended for best results, | 
					
						
							|  |  |  | 	  but any ISO C99 compliant compiler should do | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											1999-08-09 18:06:01 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2002-07-03 19:42:57 +00:00
										 |  |  | Some more libraries are not strictly necessary to compile SANE, but some | 
					
						
							| 
									
										
										
										
											2005-09-23 10:51:41 +00:00
										 |  |  | functionality may be lost if they are not available. Make sure that these | 
					
						
							|  |  |  | libraries and their respective header files are available before running | 
					
						
							|  |  |  | configure. On some Linux distributions the header files are part of separate | 
					
						
							|  |  |  | packages (e.g. usb.h in libusb-devel or libusb-dev). These must also be | 
					
						
							|  |  |  | installed. | 
					
						
							| 
									
										
										
										
											2011-11-09 03:28:30 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-07-01 14:37:49 +00:00
										 |  |  |         - libusb: Strongly recommended if you use a USB scanner. | 
					
						
							| 
									
										
										
										
											2003-04-20 13:12:42 +00:00
										 |  |  |           Some backends won't work without libusb at all. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2002-07-03 19:42:57 +00:00
										 |  |  |         - libjpeg (>=6B): For the dc210, dc240, and gphoto2 backends. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2003-12-25 21:00:22 +00:00
										 |  |  |         - libieee1284 (>=0.1.5): For some parallel port backends. | 
					
						
							| 
									
										
										
										
											2003-04-20 13:12:42 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |         - libgphoto2 (>=2.0): For the gphoto2 backend. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-06-07 11:48:40 +00:00
										 |  |  | If you got the source straight from the git repository, as opposed to | 
					
						
							|  |  |  | a source tarball, you will need a few more utilities.  These utilities | 
					
						
							|  |  |  | should normally *not* be needed for source archives downloaded from | 
					
						
							|  |  |  | the project's website at http://www.sane-project.org/. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         - autoconf (>= 2.69) as well as the autoconf-archive (for the | 
					
						
							|  |  |  |           AX_CXX_COMPILE_STDCXX and AX_CXX_COMPILE_STDCXX_11 macros) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         - automake (>=1.15) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         - libtool (>=2.4.6) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         - gettext (>=0.19.8) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2003-09-24 13:23:25 +00:00
										 |  |  | SANE should build on most Unix-like systems. Support for OS/2, MacOS X, BeOS, | 
					
						
							|  |  |  | and Microsoft Windows is also available. For more details look at the | 
					
						
							|  |  |  | operating system specific README.* files. For a detailed support matrix, see: | 
					
						
							| 
									
										
										
										
											1999-08-09 18:06:01 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2003-09-24 13:23:25 +00:00
										 |  |  |     http://www.sane-project.org/sane-support.html | 
					
						
							| 
									
										
										
										
											1999-08-09 18:06:01 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2003-04-20 13:12:42 +00:00
										 |  |  | This table may be out of date. Please tell us about any corrections or | 
					
						
							| 
									
										
										
										
											2003-09-24 13:23:25 +00:00
										 |  |  | additions. Please mention your operating system and platform and all the other | 
					
						
							| 
									
										
										
										
											2003-04-20 13:12:42 +00:00
										 |  |  | details mentioned in the table. See also the contact section. | 
					
						
							| 
									
										
										
										
											1999-08-09 18:06:01 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-05-21 20:31:09 +00:00
										 |  |  | Please check that there aren't any older versions of SANE installed on your | 
					
						
							| 
									
										
										
										
											2003-04-20 13:12:42 +00:00
										 |  |  | system. Especially if SANE libraries are installed in a different prefix | 
					
						
							|  |  |  | directory (e.g. /usr/lib/) this may cause problems with external | 
					
						
							|  |  |  | frontends. Please remove these libraries (libsane.*, sane/libsane-*) by using | 
					
						
							| 
									
										
										
										
											2019-02-23 19:50:49 +00:00
										 |  |  | your package manager or manually before installing this version of SANE. | 
					
						
							| 
									
										
										
										
											2003-04-20 13:12:42 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											1999-08-09 18:06:01 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2000-08-12 15:11:46 +00:00
										 |  |  | Configuration | 
					
						
							|  |  |  | ============= | 
					
						
							| 
									
										
										
										
											1999-08-09 18:06:01 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2000-11-12 15:56:05 +00:00
										 |  |  | Simply invoke configure in the top-level directory.  Besides the usual GNU | 
					
						
							|  |  |  | configure options, there are the following SANE specific options: | 
					
						
							| 
									
										
										
										
											1999-08-09 18:06:01 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |  --disable-shared | 
					
						
							|  |  |  | 	Don't use shared libraries.  Useful for debugging or when there | 
					
						
							|  |  |  | 	is a problem building shared libraries.  This implicitly turns | 
					
						
							| 
									
										
										
										
											2002-03-21 20:26:54 +00:00
										 |  |  | 	on --disable-dynamic --enable-static as well. | 
					
						
							| 
									
										
										
										
											1999-08-09 18:06:01 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |  --disable-dynamic | 
					
						
							|  |  |  | 	Disable dynamic loading of backends (in the dll backend). | 
					
						
							|  |  |  | 	configure normally turns on dynamic loading when it | 
					
						
							|  |  |  | 	can find the appropriate header files and libraries | 
					
						
							| 
									
										
										
										
											2011-11-09 03:28:30 +00:00
										 |  |  | 	(<dlfcn.h> and -ldl). | 
					
						
							| 
									
										
										
										
											1999-08-09 18:06:01 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2002-03-21 20:26:54 +00:00
										 |  |  |  --enable-static | 
					
						
							|  |  |  |         Use static libraries (turned off by default). | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											1999-08-09 18:06:01 +00:00
										 |  |  |  --enable-preload | 
					
						
							| 
									
										
										
										
											2000-08-12 15:11:46 +00:00
										 |  |  |         Preload backends into DLL backend.  This is useful for debugging, | 
					
						
							| 
									
										
										
										
											2011-11-09 03:28:30 +00:00
										 |  |  | 	when dynamic loading is unavailable, to reduce runtime linking | 
					
						
							|  |  |  | 	overheads, or when you only want to distribute a single DLL with | 
					
						
							|  |  |  | 	all backends available.  If dynamic loading or shared libraries are | 
					
						
							|  |  |  | 	unavailable or disabled, this option is turned on automatically. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |  --enable-scsibuffersize=N | 
					
						
							| 
									
										
										
										
											2000-08-12 15:11:46 +00:00
										 |  |  |         Specify the buffer size of the buffer for SCSI commands. The default | 
					
						
							|  |  |  | 	value is 131072 bytes (128 kb). This may be changed at runtime by | 
					
						
							|  |  |  | 	setting	the environment variable SANE_SG_BUFFERSIZE to the desired | 
					
						
							|  |  |  | 	value. The option is Linux-only at this time. | 
					
						
							|  |  |  | 	--enable-scsibuffersize and SANE_SG_BUFFERSIZE have no effect for | 
					
						
							|  |  |  | 	the Mustek, Umax and Sharp backends. For these backends, the buffer | 
					
						
							|  |  |  | 	size is set automatically and/or can be specified in the backend's | 
					
						
							|  |  |  | 	configuration file. Please refer to the backend's man pages for | 
					
						
							|  |  |  | 	details. | 
					
						
							| 
									
										
										
										
											1999-08-09 18:06:01 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-04-01 14:26:06 +00:00
										 |  |  | --enable-locking | 
					
						
							|  |  |  | 	Means, that some backends will use a lockfile for allowing multiple | 
					
						
							|  |  |  | 	access to one scanner. This is useful, i.e. one frontend is scanning | 
					
						
							|  |  |  | 	the button status and another one will scan. The path to the lock | 
					
						
							| 
									
										
										
										
											2011-11-09 03:28:30 +00:00
										 |  |  | 	files is define by --localstatedir at the configure step and is | 
					
						
							| 
									
										
										
										
											2005-04-01 14:26:06 +00:00
										 |  |  | 	$localstatedir/lock/sane. The default group is uucp and can be | 
					
						
							|  |  |  | 	changed by using --with-group=newgroup. If you do not want any | 
					
						
							|  |  |  | 	backend to use a lockfile, simply use --disable-locking. | 
					
						
							| 
									
										
										
										
											2002-01-10 17:01:08 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-11-09 03:28:30 +00:00
										 |  |  | To limit the backends that are compiled, set the variable BACKENDS to | 
					
						
							|  |  |  | the list of backends to compile.  The following will limit compiling | 
					
						
							|  |  |  | to the epson2 and fujitsu backends: | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   ./configure BACKENDS="epson2 fujitsu" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | To limit the backends that are preloaded into the DLL, set the variable | 
					
						
							| 
									
										
										
										
											2019-02-23 19:50:49 +00:00
										 |  |  | PRELOADABLE_BACKENDS.  The following will limit compiling to the epson2 | 
					
						
							| 
									
										
										
										
											2011-11-09 03:28:30 +00:00
										 |  |  | and fujitsu backends but only preloads the epson2 backend: | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-02-23 19:50:49 +00:00
										 |  |  |   ./configure BACKENDS="epson2 fujitsu" PRELOADABLE_BACKENDS="epson2" | 
					
						
							| 
									
										
										
										
											2011-11-09 03:28:30 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-05-21 20:31:09 +00:00
										 |  |  | In addition to these configuration options, there are some more SANE-specific | 
					
						
							|  |  |  | options and many standard-options.  To get a description of available options, | 
					
						
							|  |  |  | invoke configure with option --help. | 
					
						
							| 
									
										
										
										
											1999-08-09 18:06:01 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | If you plan on debugging one of the SANE programs, we recommend to run | 
					
						
							|  |  |  | configure like this: | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |    CFLAGS="-g -O -Wall" ./configure --disable-shared | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2000-08-12 15:11:46 +00:00
										 |  |  | For operating system specific information, look at the README.* files. | 
					
						
							| 
									
										
										
										
											1999-08-09 18:06:01 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2000-08-12 15:11:46 +00:00
										 |  |  | Build | 
					
						
							|  |  |  | ===== | 
					
						
							| 
									
										
										
										
											1999-08-09 18:06:01 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | To build SANE, simply type "make" in the top-level directory. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-05-21 20:31:09 +00:00
										 |  |  | To clean up the executables and libraries in the source directory, type "make | 
					
						
							|  |  |  | clean". To restore everything to the status after unpacking the package, type | 
					
						
							|  |  |  | "make distclean". | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2000-08-12 15:11:46 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | Installation and Configuration | 
					
						
							|  |  |  | ============================== | 
					
						
							| 
									
										
										
										
											1999-08-09 18:06:01 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | Once the build has finished, install SANE with "make install".  By | 
					
						
							|  |  |  | default, this will place the SANE libraries in /usr/local/lib/, the | 
					
						
							|  |  |  | configuration files in /usr/local/etc/sane.d/, and the manual pages in | 
					
						
							|  |  |  | /usr/local/man/.  The location of these directories can be overridden | 
					
						
							|  |  |  | with configure options; see "configure --help" for details. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2000-08-12 15:11:46 +00:00
										 |  |  | Before running any SANE program, read the PROBLEMS file in this directory. | 
					
						
							| 
									
										
										
										
											2001-05-09 18:13:41 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											1999-08-09 18:06:01 +00:00
										 |  |  | For information on configuring and trouble-shooting the various SANE | 
					
						
							| 
									
										
										
										
											2001-05-09 18:13:41 +00:00
										 |  |  | components, please refer to the manual page sane(7). | 
					
						
							| 
									
										
										
										
											2000-08-12 15:11:46 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2003-09-24 13:23:25 +00:00
										 |  |  | The tools/ directory contains some small programs that may be helpful. They | 
					
						
							| 
									
										
										
										
											2000-08-12 15:11:46 +00:00
										 |  |  | are described in tools/README. | 
					
						
							| 
									
										
										
										
											2001-05-21 20:31:09 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2003-04-20 13:12:42 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-05-21 20:31:09 +00:00
										 |  |  | Removing | 
					
						
							|  |  |  | ======== | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Type "make uninstall" to remove SANE from your system. This will also remove | 
					
						
							|  |  |  | older versions of SANE if they have been installed at the same prefix. | 
					
						
							| 
									
										
										
										
											2003-09-24 13:23:25 +00:00
										 |  |  | Warning: Your configuration files will be deleted also so make sure you have a | 
					
						
							|  |  |  | backup. By default the configuration files are located in the directory | 
					
						
							|  |  |  | /usr/local/etc/sane.d/. | 
					
						
							| 
									
										
										
										
											2003-04-20 13:12:42 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Contact | 
					
						
							|  |  |  | ======= | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2003-09-24 13:23:25 +00:00
										 |  |  | For questions and general discussion about SANE contact the sane-devel mailing | 
					
						
							|  |  |  | list. You must be subscribed to the list to send mail. See | 
					
						
							|  |  |  | http://www.sane-project.org/mailing-lists.html for details. | 
					
						
							| 
									
										
										
										
											2003-04-20 13:12:42 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2003-09-24 13:23:25 +00:00
										 |  |  | If you want to submit a bug report or feature request please use our bug | 
					
						
							|  |  |  | tracking system.  See http://www.sane-project.org/bugs.html for details. You | 
					
						
							|  |  |  | may also contact the author of a specific backend directly. See the AUTHORS | 
					
						
							|  |  |  | file for a list of addresses. |