MANDRAKE STAFF, PLEASE NOTE:

A bit more on the SANE installation problems. I'm also copying this to
David Mosberger, who wrote the tutorial, for his benefit.

1) I found the progran find-scanner, by rooting through the source RPM. It
would have helped if any of the user docs I saw, like the tutorial on the
web site, had point this out.

2) The source RPM does not produce the same results as the executable
RPM. For one thing, in the executable, scanimage is an elf executable; in
the source, it is a shell script. One thing the shell script does is check
for libraries; perhaps the lack of libraries is the reason the executable
RPM version dumped core?

root@charlesc # ll /usr/bin/scanimage*
-rwxr-xr-x    1 root     root         3024 Dec  3 16:53 /usr/bin/scanimage
-rwxr-xr-x    1 root     root        19472 Aug 21 13:26 /usr/bin/scanimage.sav
root@charlesc # file /usr/bin/scanimage*
/usr/bin/scanimage:     Bourne shell script text
/usr/bin/scanimage.sav: ELF 32-bit LSB executable, Intel 80386, version 1, dynamically 
linked (uses shared libs), not stripped

The executable RPM is sane-1.0.1-7mdk.i586.rpm. The source is:
sane-1.0.1-7mdk.src.rpm.

3) There may be something wrong either with the source RPM or gcc. While
compiling with X, two instances of Emacs, Netscape and other goodies
running, compilation locked up the system on canon.c. I rebooted, and ran
a console system to recompile. I renamed canon.c to prevent it from
compiling, and compiled everything else. When I did compile canon.c,
memory usage shot up tremendously, into the tens of MB. It also took a
long time.

root@charlesc # gcc --version
pgcc-2.91.66


4) In any case, I finally got the dang thing compiled and linked. Even
though find-scanner correctly located my scanner, scanimage --list-devices
returned no results. (Well, it didn't core, which is an improvement, but
no cigar.)

5) Just for the halibut, entirely on a guess, I ran --test and specified
the device:

root@charlesc # frontend/scanimage --test -d hp
scanimage: scanning image of size 2550x3508 pixels at 1 bits/pixel
scanimage: acquiring gray frame, 1 bits/sample
scanimage: reading one scanline, 319 bytes...   PASS
scanimage: reading one byte...          PASS
scanimage: stepped read, 2 bytes...     PASS
scanimage: stepped read, 4 bytes...     PASS
scanimage: stepped read, 8 bytes...     PASS
scanimage: stepped read, 16 bytes...    PASS
scanimage: stepped read, 32 bytes...    PASS
scanimage: stepped read, 64 bytes...    PASS
scanimage: stepped read, 128 bytes...   PASS
scanimage: stepped read, 256 bytes...   PASS
scanimage: stepped read, 512 bytes...   PASS
scanimage: stepped read, 511 bytes...   PASS
scanimage: stepped read, 255 bytes...   PASS
scanimage: stepped read, 127 bytes...   PASS
scanimage: stepped read, 63 bytes...    PASS
scanimage: stepped read, 31 bytes...    PASS
scanimage: stepped read, 15 bytes...    PASS
scanimage: stepped read, 7 bytes...     PASS
scanimage: stepped read, 3 bytes...     PASS

Again, it would have helped if the tutorial had suggested this as a debug
tool.

I sucessfully scanned in an image.

I guess the next step for me is to install the GTK libraries so I can
compile the GUI-based front ends, and then install the whole mess.

I think Mandrake has a problem with these RPM they might want to look at.


-- 

                -- C^2

No windows were crashed in the making of this email.

Looking for fine software and/or web pages?
http://w3.trib.com/~ccurley

Reply via email to