#### Beyond Linux® From Scratch (systemd Edition) - Version 10.1

### Chapter 47. Scanning

- Prev

  SANE-1.0.29

- Next

  Standard Generalized Markup Language (SGML)

- Up
- Home

# XSane-0.999

## Introduction to XSane

XSane is another front end for SANE-1.0.29. 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-10.1 platform.

### Package Information

- Download (HTTP): http://anduin.linuxfromscratch.org/BLFS/xsane/xsane-0.999.tar.gz

- Download (FTP): ftp://anduin.linuxfromscratch.org/BLFS/xsane/xsane-0.999.tar.gz

- Download MD5 sum: 9927f21e1ab6ba96315e7f0e30746deb

- Download size: 2.9 MB

- Estimated disk space required: 23 MB

- Estimated build time: 0.2 SBU

### XSane Dependencies

#### Required

GTK+-2.24.33 and SANE-1.0.29 (back ends)

#### Optional

Little CMS-1.19 and Gimp-2.10.22

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/xsane

## Installation of XSane

Install XSane by running the following commands:

    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 `root` user:

    make xsanedocdir=/usr/share/doc/xsane-0.999 install &&
    ln -v -s ../../doc/xsane-0.999 /usr/share/sane/xsane/doc

A browser of your choice can be used to get inline help, using the following command, as the `root` user:

    ln -v -s <browser> /usr/bin/netscape

### Note

Be sure to replace <browser> with the browser of your choice on your system.

Alternatively, if the environment variable BROWSER is set to the browser you want to use, eg, BROWSER="/usr/bin/firefox", the first time you run xsane, it will be recorded in `~/.sane/xsane/xsane.rc`. If you wish to change it, edit this file, or remove it, and use the instructions above, so that a new one is created.

If GIMP is installed, issue the following command as the `root` user:

    ln -v -s /usr/bin/xsane /usr/lib/gimp/2.0/plug-ins/

## Command Explanations

ln -v -s ../../doc/xsane-0.999 /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 `~/.gimp-2.0/plug-ins/` to provide individual user access. man xsane for additional information.

## Contents

Installed Program: xsane
Installed Libraries: None
Installed Directory: /usr/share/doc/xsane-0.999 and /usr/share/sane/xsane

### Short Descriptions

xsane | is a graphical user-interface to control an image acquisition device such as a flatbed scanner

Last updated on 2021-02-21 20:38:24 -0800

- Prev

  SANE-1.0.29

- Next

  Standard Generalized Markup Language (SGML)

- Up
- Home