Mathias> The GTK+ from gimp-0.99.6 works no longer. Only
Mathias> with the provided gtk+ sane-0.51 can be compiled.
This is correct (well, SANE will compile with an older gtk, but you
won't get xscan & xcam that way).
Mathias> I had to
Mathias> include sys/param.h in frontend/preview.h to avoid the an
Mathias> error that sounds like that: "PATH_MAX wasn`t
Mathias> defined...". But with the new gtk+ this has become
Mathias> obsolete.
OK, I fixed this.
Mathias> Sane-0.51 works (tooltips are a nice feature). Your mustek
Mathias> patch works also but not for color scanning. It fixes the
Mathias> range mismatch. But every resolution
Mathias> > 311 dpi is divided by 10; so at 599dpi 60dpi are scanned.
Oops, there was a typo. Try this patch:
--- sane-0.51/backend/mustek.c~ Wed Apr 2 07:25:29 1997
+++ sane-0.51/backend/mustek.c Wed Apr 2 07:25:54 1997
@@ -673,7 +673,7 @@
/* or in single/multi bit: */
start[4] |= (s->mode & MUSTEK_MODE_MULTIBIT) ? (1 << 6) : 0;
- if (!s->hw->flags & MUSTEK_FLAG_SINGLE_PASS)
+ if (!(s->hw->flags & MUSTEK_FLAG_SINGLE_PASS))
/* or in expanded resolution bit: */
start[4] |= (s->resolution_code & 0x100) >> 1;
Mathias> When scanning in color mode the following error message
Mathias> occurs after the first pass: "Failed to start scanner:
Mathias> Device busy"
I'm not sure yet what's going wrong. Could you send me the output you
get when invoking "scan" with environment variables SANE_DEBUG_MUSTEK
and SANE_DEBUG_DLL set to 128?
--david
-- Source code, list archive, and docs: http://www.azstarnet.com/~axplinux/sane/ To unsubscribe: mail -s unsubscribe sane-devel-request@listserv.azstarnet.com