[sane-devel] CanoScan 9000F code compilation

Al Bogner sane at ml093.pinguin.uni.cc
Sun Jun 5 00:15:19 UTC 2011


Am So, 05 Jun 2011 06:19:24 CEST schrieb Gernot Hassenpflug:

> On Sun, Jun 5, 2011 at 5:54 AM, Al Bogner <sane at ml093.pinguin.uni.cc>
> wrote:
> > Am Sa, 04 Jun 2011 08:12:06 CEST schrieb Gernot Hassenpflug:
> >
> > Hi Gernot,
> >
> > I tried hours ago and now:
> >
> > date
> > Sa 4. Jun 22:52:13 CEST 2011
> >
> > ping -c3 aikishugyo.dnsdojo.org
> > PING aikishugyo.dnsdojo.org (219.160.114.155) 56(84) bytes of data.
> > --- aikishugyo.dnsdojo.org ping statistics ---
> > 3 packets transmitted, 0 received, 100% packet loss, time 2001ms
> >
> > Unfortunately it doesn't work. Could you copy the text of the howto
> > in an email and send it to me?
> 
> Mail sent.

Thanks Gernot,

I use Ubuntu 11.04 Natty and things look more or less fine, when I
compile the code for the CanoScan 9000F, but at the end it doesn't work.

What I did:

apt-get install git autoconf automake libusb-dev

mkdir ~/src
cd ~/src

git clone git://git.debian.org/sane/sane-backends.git

cd ~/canon9000fpatch
unzip canoscan900f_mp150-files.zip
cp -v ~/canon9000fpatch/mp150-files/* ~/src/sane-backends/backend

cd ~/src/sane-backends

~/src/sane-backends$ autoconf 
aclocal.m4:16: warning: this file was generated for autoconf 2.66.

I use autoconf 2.67-2ubuntu1

~/src/sane-backends$ autoreconf 
Can't exec "libtoolize": Datei oder Verzeichnis nicht gefunden
at /usr/bin/autoreconf line 196. Use of uninitialized value in pattern
match (m//) at /usr/bin/autoreconf line 196. configure.in:511: warning:
LTOPTIONS_VERSION is m4_require'd but not m4_defun'd m4/libtool.m4:69:
LT_INIT is expanded from... m4/libtool.m4:107: AC_PROG_LIBTOOL is
expanded from... configure.in:511: the top level
configure.in:511: warning: LTSUGAR_VERSION is m4_require'd but not
m4_defun'd configure.in:511: warning: LTVERSION_VERSION is m4_require'd
but not m4_defun'd configure.in:511: warning: LTOBSOLETE_VERSION is
m4_require'd but not m4_defun'd configure.in:511: warning:
LTOPTIONS_VERSION is m4_require'd but not m4_defun'd m4/libtool.m4:69:
LT_INIT is expanded from... m4/libtool.m4:107: AC_PROG_LIBTOOL is
expanded from... configure.in:511: the top level
configure.in:511: warning: LTSUGAR_VERSION is m4_require'd but not
m4_defun'd configure.in:511: warning: LTVERSION_VERSION is m4_require'd
but not m4_defun'd configure.in:511: warning: LTOBSOLETE_VERSION is
m4_require'd but not m4_defun'd configure.in:511: warning:
LTOPTIONS_VERSION is m4_require'd but not m4_defun'd m4/libtool.m4:69:
LT_INIT is expanded from... m4/libtool.m4:107: AC_PROG_LIBTOOL is
expanded from... configure.in:511: the top level
configure.in:511: warning: LTSUGAR_VERSION is m4_require'd but not
m4_defun'd configure.in:511: warning: LTVERSION_VERSION is m4_require'd
but not m4_defun'd configure.in:511: warning: LTOBSOLETE_VERSION is
m4_require'd but not m4_defun'd configure.in:509: error: possibly
undefined macro: AC_LIBTOOL_WIN32_DLL If this token and others are
legitimate, please use m4_pattern_allow. See the Autoconf documentation.
configure.in:510: error: possibly undefined macro: AC_DISABLE_STATIC
configure:10167: error: possibly undefined macro: m4_ifval
configure:12828: error: possibly undefined macro: _LT_SET_OPTIONS
configure:12828: error: possibly undefined macro: LT_INIT
: /usr/bin/autoconf failed with exit status: 1

So I did:

rm -rf ~/src

and started from the beginning

Now I did _not_ do "autoreconf", only autoconf and ignored the warning.

automake
backend/Makefile.am:52: `%'-style pattern rules are a GNU make extension
po/Makefile.am:17: shell if test -r $(srcdir: non-POSIX variable name
po/Makefile.am:17: (probably a GNU make extension)
po/Makefile.am:18: shell if test -r $(srcdir: non-POSIX variable name
po/Makefile.am:18: (probably a GNU make extension)
po/Makefile.am:20: shell LINGUAS="$(PO_LINGUAS: non-POSIX variable name
po/Makefile.am:20: (probably a GNU make extension)
po/Makefile.am:21: shell LINGUAS="$(PO_LINGUAS: non-POSIX variable name
po/Makefile.am:21: (probably a GNU make extension)
tools/Makefile.am:59: wildcard ${top_srcdir}/doc/descriptions/*.desc:
non-POSIX variable name tools/Makefile.am:59: (probably a GNU make
extension) tools/Makefile.am:59: wildcard
${top_srcdir}/doc/descriptions-external/*.desc: non-POSIX variable name
tools/Makefile.am:59: (probably a GNU make extension)
tools/Makefile.am:63: wildcard ${top_srcdir}/doc/descriptions/*.desc:
non-POSIX variable name tools/Makefile.am:63: (probably a GNU make
extension) tools/Makefile.am:63: wildcard
${top_srcdir}/doc/descriptions-external/*.desc: non-POSIX variable name
tools/Makefile.am:63: (probably a GNU make extension)
tools/Makefile.am:67: wildcard ${top_srcdir}/doc/descriptions/*.desc:
non-POSIX variable name tools/Makefile.am:67: (probably a GNU make
extension) tools/Makefile.am:67: wildcard
${top_srcdir}/doc/descriptions-external/*.desc: non-POSIX variable name
tools/Makefile.am:67: (probably a GNU make extension)
tools/Makefile.am:71: wildcard ${top_srcdir}/doc/descriptions/*.desc:
non-POSIX variable name tools/Makefile.am:71: (probably a GNU make
extension) tools/Makefile.am:71: wildcard
${top_srcdir}/doc/descriptions-external/*.desc: non-POSIX variable name
tools/Makefile.am:71: (probably a GNU make extension)



~/src/sane-backends$ BACKENDS="pixma" ./configure
...
Build saned:   yes
IPv6 support:  yes
Avahi support: no
SNMP support:  no
-> The following backends will be built:
pixma 

-> The following preload backends will be built:

*** Warning: An old version of SANE was detected but the sane-config
program *** couldn't be found. If you encounter any problems with SANE
remove the old *** SANE files and reinstall this version.


~/src/sane-backends$ make

su -
(account root exists with this Ubuntu system)


make install

ls -1 /usr/local/bin 
gamma4scanimage
sane-config
sane-find-scanner
scanimage


Then I have another question, what do I have to do, that the
sane-version, which I have compiled, is used automatically.

lsusb | grep Canon
Bus 001 Device 002: ID 04a9:1908 Canon, Inc.

as root:
~# /usr/local/bin/scanimage -L
No scanners were identified

Al









More information about the sane-devel mailing list