[sane-devel] SANE from darwinports not running under Mac OS X

Martin Ballaschk sorbischegurke at gmx.de
Fri Sep 29 09:50:35 UTC 2006


Hi,

I'm trying to run a Canon LiDE30 (plustek backend) with the help of SANE of
Darwin Ports in Mac OS X 10.4.7.

I installed the following (patched?) packages from Mattias Ellert
(http://www.ellert.se/twain-sane/) into /usr/local/:
* TWAIN-SANE Interface 1.8
* SANE backends 1.0.18-cvs
* libusb 0.1.12

Now I can scan with the help of /usr/local/bin/scanimage and the Image
Capture Utility of Mac OS.

I installed xsane with all its dependencies from DarwinPorts into the
default /opt/local/, to have a more extended GUI. But scanning with
scanimage fails, xsane itself says it could not find any devices. Running
the programs as root does not help, though it could be detected:

$ /opt/local/bin/scanimage
scanimage: no SANE devices found

$ /opt/local/bin/sane-find-scanner
[...]
found USB scanner (vendor=0x04a9 [Canon], product=0x220e [CanoScan],
chip=LM9832/3) at libusb:002:002-04a9-220e-ff-00
[...]

$ SANE_DEBUG_DLL=255 /opt/local/bin/scanimage -L
[sanei_debug] Setting debug level of dll to 255.
[dll] sane_init: SANE dll backend version 1.0.11 from sane-backends 1.0.17
[dll] sane_init: reading dll.conf
...
[dll] add_backend: adding backend `plustek'
...
[dll] sane_get_devices
...
[dll] load: searching backend `plustek' in `/opt/local/lib/sane'
[dll] load: trying to load `/opt/local/lib/sane/libsane-plustek.1.so'
[dll] load: dlopen()ing `/opt/local/lib/sane/libsane-plustek.1.so'
[dll] init: initializing backend `plustek'
[dll] init: backend `plustek' is version 1.0.
...
[dll] sane_get_devices: found 0 devices
[dll] sane_exit: exiting
[dll] sane_exit: calling backend `umax1220u's exit function
...
[dll] sane_exit: finished

The scanner is plugged in and scanning with Mattias' packages works
flawlessly(!), ist is detected both by sane-find-scanner and scanimage:

$ SANE_DEBUG_DLL=255 /usr/local/bin/scanimage -L
[sanei_debug] Setting debug level of dll to 255.
[dll] sane_init: SANE dll backend version 1.0.12 from sane-backends 1.0.18
[dll] sane_init: reading dll.conf
...
[dll] add_backend: adding backend `plustek'
...
[dll] sane_get_devices
...
[dll] load: searching backend `plustek' in `/usr/local/lib/sane'
[dll] load: trying to load `/usr/local/lib/sane/libsane-plustek.1.so'
[dll] load: dlopen()ing `/usr/local/lib/sane/libsane-plustek.1.so'
[dll] init: initializing backend `plustek'
[dll] init: backend `plustek' is version 1.0.0
...
[dll] sane_get_devices: found 1 devices
[dll] sane_exit: exiting
[dll] sane_exit: calling backend `brother_mfc's exit function
...
[dll] sane_exit: finished
device `plustek:libusb:002:002-04a9-220e-ff-00' is a Canon N1240U/LiDE30 USB
flatbed scanner

How can I run the xscanimage utility ("xsane") under Mac OS X?
I'm not very experienced with Unix and the Shell, so if anyone could provide
help I'd be very thankful.

Cheers,
Martin




More information about the sane-devel mailing list