XSane is another front end for SANE-1.0.24. It has additional features to improve the image quality and ease of use compared to xscanimage.
This package is known to build and work properly using an LFS-7.4 platform.
Download (FTP): ftp://ftp2.sane-project.org/pub/sane/xsane/xsane-0.998.tar.gz
Download MD5 sum: 936f1cc76b37caa8f285e1e15ac7e0aa
Download size: 2.8 MB
Estimated disk space required: 23 MB
Estimated build time: 0.2 SBU
xdg-utils-1.1.0-rc1 (for the help docummentation at runtime)
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/xsane
Install XSane by running the following commands:
sed -i -e 's/netscape/xdg-open/' src/xsane.h && sed -i -e 's/png_ptr->jmpbuf/png_jmpbuf(png_ptr)/' src/xsane-save.c && ./configure --prefix=/usr && make
This package does not come with a test suite.
Now, as the
make xsanedocdir=/usr/share/doc/xsane-0.998 install && ln -v -s ../../doc/xsane-0.998 /usr/share/sane/xsane/doc
If you have not installed xdg-utils-1.1.0-rc1 and have not issued the first sed:
ln -v -s <browser> /usr/bin/netscape
Be sure to replace <browser> with the browser of your choice on your system.
If GIMP is installed, issue the
following command as the
ln -v -s /usr/bin/xsane /usr/lib/gimp/2.0/plug-ins/
sed -i -e 's/netscape/xdg-open/' src/xsane.h : This is to use xdg-open for the help documentation, instead of the hardcoded browser.
ln -v -s ../../doc/xsane-0.998 /usr/share/sane/xsane/doc: This symlink is created to ensure that any program that looks for the XSane documentation in the default location will find it, as the documentation is installed in an alternate location specified in the make install command.
ln -v -s /usr/bin/xsane
/usr/lib/gimp/2.0/plug-ins/: This creates a link in
the system-wide GIMP
plug-ins directory so that users can access
XSane directly from GIMP. GIMP
must be available before building XSane for this to work. Alternatively, create
the link in
provide individual user access. man
xsane for additional information.
Last updated on 2013-09-05 22:51:57 +0000