Difference between revisions of "SANE"
(→Multilib) |
|||
(12 intermediate revisions by 5 users not shown) | |||
Line 2: | Line 2: | ||
|- | |- | ||
!Download Backend Source: | !Download Backend Source: | ||
− | | ftp://ftp.sane-project.org/pub/sane/sane-backends- | + | | ftp://ftp.sane-project.org/pub/sane/sane-backends-{{SANE-Backends-Version}}/sane-backends-{{SANE-Backends-Version}}.tar.gz |
|- | |- | ||
!Download Frontend Source: | !Download Frontend Source: | ||
− | | ftp://ftp.sane-project.org/pub/sane/sane-frontends- | + | | ftp://ftp.sane-project.org/pub/sane/sane-frontends-{{SANE-Frontends-Version}}/sane-frontends-{{SANE-Frontends-Version}}.tar.gz |
+ | |- | ||
+ | !Download Frontend Patch: | ||
+ | | http://svn.cross-lfs.org/svn/repos/patches/sane-frontends/sane-frontends-1.0.14-SANCAP-1.patch | ||
|} | |} | ||
---- | ---- | ||
+ | |||
+ | {{Package-Introduction|SANE is short for Scanner Access Now Easy. Scanner access, however, is far from easy, since every vendor has their own protocols. The only known protocol that should bring some unity into this chaos is the TWAIN interface, but this is too imprecise to allow a stable scanning framework. Therefore, SANE comes with its own protocol, and the vendor drivers can't be used. | ||
+ | |||
+ | SANE is split into back ends and front ends. The back ends are drivers for the supported scanners and cameras. The front ends are user interfaces to access the backends.|http://www.sane-project.org/}} | ||
== Dependencies == | == Dependencies == | ||
Line 21: | Line 28: | ||
* [[X Window System]] | * [[X Window System]] | ||
* [[Gtk2]] | * [[Gtk2]] | ||
− | * [[ | + | * [[GIMP]] |
== Non-Multilib == | == Non-Multilib == | ||
Line 29: | Line 36: | ||
Compile the package: | Compile the package: | ||
− | ./configure --prefix=/usr --sysconfdir=/etc && | + | ./configure --prefix=/usr --sysconfdir=/etc \ |
+ | --localstatedir=/var && | ||
make | make | ||
Line 40: | Line 48: | ||
Compile the package: | Compile the package: | ||
+ | patch -Np1 -i ../sane-frontends-1.0.14-SANCAP-1.patch | ||
./configure --prefix=/usr && | ./configure --prefix=/usr && | ||
make | make | ||
Line 49: | Line 58: | ||
/usr/share/sane | /usr/share/sane | ||
− | If [[ | + | If [[GIMP]] is installed and you would like to use '''xscanimage''' as a scanning plugin, run the following command: |
ln -v -s ../../../../bin/xscanimage /usr/lib/gimp/2.0/plug-ins | ln -v -s ../../../../bin/xscanimage /usr/lib/gimp/2.0/plug-ins | ||
Line 62: | Line 71: | ||
CC="gcc ${BUILD32}" PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}" USE_ARCH=32 \ | CC="gcc ${BUILD32}" PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}" USE_ARCH=32 \ | ||
− | ./configure --prefix=/usr --sysconfdir=/etc && | + | ./configure --prefix=/usr --sysconfdir=/etc \ |
+ | --localstatedir=/var && | ||
make | make | ||
Line 68: | Line 78: | ||
make install && | make install && | ||
− | mv -v /usr/bin/sane-config{,-32} | + | mv -v /usr/bin/sane-config{,-32} |
− | |||
==== Frontend ==== | ==== Frontend ==== | ||
Line 75: | Line 84: | ||
Compile the package: | Compile the package: | ||
+ | patch -Np1 -i ../sane-frontends-1.0.14-SANCAP-1.patch | ||
CC="gcc ${BUILD32}" PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}" USE_ARCH=32 \ | CC="gcc ${BUILD32}" PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}" USE_ARCH=32 \ | ||
./configure --prefix=/usr && | ./configure --prefix=/usr && | ||
Line 83: | Line 93: | ||
make install | make install | ||
− | If [[ | + | If [[GIMP]] is installed and you would like to use '''xscanimage''' as a scanning plugin, run the following command: |
ln -v -s ../../../../bin/xscanimage /usr/lib/gimp/2.0/plug-ins | ln -v -s ../../../../bin/xscanimage /usr/lib/gimp/2.0/plug-ins | ||
Line 94: | Line 104: | ||
CC="gcc ${BUILDN32}" PKG_CONFIG_PATH="${PKG_CONFIG_PATHN32}" USE_ARCH=n32 \ | CC="gcc ${BUILDN32}" PKG_CONFIG_PATH="${PKG_CONFIG_PATHN32}" USE_ARCH=n32 \ | ||
− | ./configure --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib32 && | + | ./configure --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib32 \ |
+ | --localstatedir=/var && | ||
make | make | ||
Line 100: | Line 111: | ||
make install && | make install && | ||
− | mv -v /usr/bin/sane-config{,- | + | mv -v /usr/bin/sane-config{,-n32} |
− | |||
==== Frontend ==== | ==== Frontend ==== | ||
Line 107: | Line 117: | ||
Compile the package: | Compile the package: | ||
+ | patch -Np1 -i ../sane-frontends-1.0.14-SANCAP-1.patch | ||
CC="gcc ${BUILDN32}" PKG_CONFIG_PATH="${PKG_CONFIG_PATHN32}" USE_ARCH=n32 \ | CC="gcc ${BUILDN32}" PKG_CONFIG_PATH="${PKG_CONFIG_PATHN32}" USE_ARCH=n32 \ | ||
./configure --prefix=/usr --libdir=/usr/lib32 && | ./configure --prefix=/usr --libdir=/usr/lib32 && | ||
Line 115: | Line 126: | ||
make install | make install | ||
− | If [[ | + | If [[GIMP]] is installed and you would like to use '''xscanimage''' as a scanning plugin, run the following command: |
ln -v -s ../../../../bin/xscanimage /usr/lib32/gimp/2.0/plug-ins | ln -v -s ../../../../bin/xscanimage /usr/lib32/gimp/2.0/plug-ins | ||
Line 126: | Line 137: | ||
CC="gcc ${BUILD64}" PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" USE_ARCH=64 \ | CC="gcc ${BUILD64}" PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" USE_ARCH=64 \ | ||
− | ./configure --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib64 && | + | ./configure --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib64 \ |
+ | --localstatedir=/var && | ||
make | make | ||
Line 132: | Line 144: | ||
make install && | make install && | ||
− | mv -v /usr/bin/sane-config{,- | + | mv -v /usr/bin/sane-config{,-64} && |
ln -sfv multiarch_wrapper /usr/bin/sane-config | ln -sfv multiarch_wrapper /usr/bin/sane-config | ||
Line 139: | Line 151: | ||
Compile the package: | Compile the package: | ||
+ | patch -Np1 -i ../sane-frontends-1.0.14-SANCAP-1.patch | ||
CC="gcc ${BUILD64}" PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" USE_ARCH=64 \ | CC="gcc ${BUILD64}" PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" USE_ARCH=64 \ | ||
./configure --prefix=/usr --libdir=/usr/lib64 && | ./configure --prefix=/usr --libdir=/usr/lib64 && | ||
Line 149: | Line 162: | ||
/usr/share/sane | /usr/share/sane | ||
− | If [[ | + | If [[GIMP]] is installed and you would like to use '''xscanimage''' as a scanning plugin, run the following command: |
ln -v -s ../../../../bin/xscanimage /usr/lib64/gimp/2.0/plug-ins | ln -v -s ../../../../bin/xscanimage /usr/lib64/gimp/2.0/plug-ins | ||
+ | |||
+ | [[Category:Scanning]] |
Latest revision as of 11:06, 13 May 2010
Download Backend Source: | ftp://ftp.sane-project.org/pub/sane/sane-backends-1.0.21/sane-backends-1.0.21.tar.gz |
---|---|
Download Frontend Source: | ftp://ftp.sane-project.org/pub/sane/sane-frontends-1.0.14/sane-frontends-1.0.14.tar.gz |
Download Frontend Patch: | http://svn.cross-lfs.org/svn/repos/patches/sane-frontends/sane-frontends-1.0.14-SANCAP-1.patch |
Contents
Introduction to SANE
SANE is short for Scanner Access Now Easy. Scanner access, however, is far from easy, since every vendor has their own protocols. The only known protocol that should bring some unity into this chaos is the TWAIN interface, but this is too imprecise to allow a stable scanning framework. Therefore, SANE comes with its own protocol, and the vendor drivers can't be used.
SANE is split into back ends and front ends. The back ends are drivers for the supported scanners and cameras. The front ends are user interfaces to access the backends.
Project Homepage: http://www.sane-project.org/
Dependencies
Optional (BackEnd)
Optional (FrontEnd)
Non-Multilib
Backend
Compile the package:
./configure --prefix=/usr --sysconfdir=/etc \ --localstatedir=/var && make
Install the package:
make install
Frontend
Compile the package:
patch -Np1 -i ../sane-frontends-1.0.14-SANCAP-1.patch ./configure --prefix=/usr && make
Install the package:
make install && install -v -m644 doc/sane.png xscanimage-icon-48x48-2.png \ /usr/share/sane
If GIMP is installed and you would like to use xscanimage as a scanning plugin, run the following command:
ln -v -s ../../../../bin/xscanimage /usr/lib/gimp/2.0/plug-ins
Multilib
32Bit
Backend
Compile the package:
CC="gcc ${BUILD32}" PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}" USE_ARCH=32 \ ./configure --prefix=/usr --sysconfdir=/etc \ --localstatedir=/var && make
Install the package:
make install && mv -v /usr/bin/sane-config{,-32}
Frontend
Compile the package:
patch -Np1 -i ../sane-frontends-1.0.14-SANCAP-1.patch CC="gcc ${BUILD32}" PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}" USE_ARCH=32 \ ./configure --prefix=/usr && make
Install the package:
make install
If GIMP is installed and you would like to use xscanimage as a scanning plugin, run the following command:
ln -v -s ../../../../bin/xscanimage /usr/lib/gimp/2.0/plug-ins
N32
Backend
Compile the package:
CC="gcc ${BUILDN32}" PKG_CONFIG_PATH="${PKG_CONFIG_PATHN32}" USE_ARCH=n32 \ ./configure --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib32 \ --localstatedir=/var && make
Install the package:
make install && mv -v /usr/bin/sane-config{,-n32}
Frontend
Compile the package:
patch -Np1 -i ../sane-frontends-1.0.14-SANCAP-1.patch CC="gcc ${BUILDN32}" PKG_CONFIG_PATH="${PKG_CONFIG_PATHN32}" USE_ARCH=n32 \ ./configure --prefix=/usr --libdir=/usr/lib32 && make
Install the package:
make install
If GIMP is installed and you would like to use xscanimage as a scanning plugin, run the following command:
ln -v -s ../../../../bin/xscanimage /usr/lib32/gimp/2.0/plug-ins
64Bit
Backend
Compile the package:
CC="gcc ${BUILD64}" PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" USE_ARCH=64 \ ./configure --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib64 \ --localstatedir=/var && make
Install the package:
make install && mv -v /usr/bin/sane-config{,-64} && ln -sfv multiarch_wrapper /usr/bin/sane-config
Frontend
Compile the package:
patch -Np1 -i ../sane-frontends-1.0.14-SANCAP-1.patch CC="gcc ${BUILD64}" PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" USE_ARCH=64 \ ./configure --prefix=/usr --libdir=/usr/lib64 && make
Install the package:
make install && install -v -m644 doc/sane.png xscanimage-icon-48x48-2.png \ /usr/share/sane
If GIMP is installed and you would like to use xscanimage as a scanning plugin, run the following command:
ln -v -s ../../../../bin/xscanimage /usr/lib64/gimp/2.0/plug-ins