Getting started with SANE & SnapScan

Gordon Scott (gordon@apis.demon.co.uk)
Mon, 7 Dec 1998 22:47:43 +0000 (GMT)

Hi,

I've just collected sane 0.74 and sane 1.00 and an Agfa SnapScan 600.
I'm trying to get things running and have hit a number of problems so
I'm not sure where to start sorting them all out. Any hints or pointers
might help. I've scanned the archive for obvious keywords, but haven't
seen anything obvious. Probably I have some header/library mismatches?

Compiler gcc 2.7.2.1:
gtk 1.0.4
libc.so.5.4.4
libjpeg.so.5.0

On the configure for both Sanes I get a GTK warning -- 1.0.4 but GTK+
0.0.0 found. That's clearly erroneous as I doubt a version 0.0.0 ever
existed ;-)

On 1.00 I get compile errors (parse error before) in djpeg.c whenever
I get a construct of the form:
METHODDEF (void)
GLOBAL (djpeg_dest_ptr)
etc., apparently due to the parentheses

If I remove the parentheses, I get a make fail:
djpeg.c: In function `sanei_jpeg_jinit_write_ppm':
djpeg.c:173: warning: dereferencing `void *' pointer
djpeg.c:173: void value not ignored as it ought to be

dest = (ppm_dest_ptr)
(*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_IMAGE,
SIZEOF (ppm_dest_struct));

I tried various local changes in an attempt to make immediate progress,
but without success.

I moved the snapscan code back to sane 0.74 and compiled there. There was
no attempt to make xscanimage and an explicite make xscanimage fails with
lots of undefs like:
/usr/src/sane-0.74/frontend/xscanimage.c:391:
undefined reference to `gtk_label_get_type'

Attempting to run scanimage, I get:
# scanimage --device /dev/scanner > /tmp/try.pnm
scanimage: open of device /dev/scanner failed: Invalid argument

/dev/scanner is symbolically linked to /dev/sgg, which is where my
scanner appears to be. (The SCSI controller is the supplied 1505, the
first Adaptec of two [the other is a soundblaster/aha1520] and the second
controller [first is a DPT PM2021])

Where's the best place to start, please?

TIA,
Gordon.

--
Gordon Scott   gordon@apis.demon.co.uk      gordon@multitone.co.uk (work)
<A HREF="http://www.apis.demon.co.uk">Gordon's Apis Home Page</A>
Beekeeper; Kendo 3rd Dan, retd :-(; Sometime sailor.  Hampshire, England.
	    Linux -- Because I like to *get* there today.

--
Source code, list archive, and docs: http://www.mostang.com/sane/
To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com