sane as a gimp plug-in.

Ricardo Muggli (ricardo@calvin.net)
Thu, 11 Sep 1997 03:52:46 -0500 (CDT)

I know this topic has been hit on a few times during the existence on this
mailing list, but none of the replies seem to work. The problem I am
having is after linking xscanimage as it says to in xscanimage(1) man
page, ( ln -s /usr/local/bin/xscanimage ~/.gimp/plug-ins/ )
I get this error when gimp querys the plug-ins:

/root/.gimp/plug-ins/xscanimage: illegal option -- g
Usage: xscanimage [OPTION]... [DEVICE]

Start up graphical user interface to access SANE (Scanner Access Now
Easy) devices.

-h, --help display this help message and exit
-V, --version print version information
wire_read: unexpected EOF

Now if I try some of the suggestions from the archives of this list...

----------------------------------------------------------------------------
I think there aren't any switches, you have to compile and install gtk and
gimp
first and then type configure of sane and sane will be configured
automatically
with gimp-support. So simply type make distclean with sane and configure
again.

-- 
Mathias Weigt 
p5iba@medchem2.pharmazie.uni-halle.de

-------------------------------------------------------------------------- I had gimp gimp-0.99.pre11-3.5 already installed and had installed gtk+970606-davidm over that. So I tried doing a make distclean, ./configure, make, and make install again. I got the same error as above.

Then I tried this:

----------------------------------------------------------------------- Looks like xscanimage got compiled without GIMP support (see HAVE_LIBGIMP_GIMP_H in include/sane/config.h). Without that support, xscanimage won't recognize the -gimp option that GIMP is feeding it.

Does your system have libgimp/gimp.h installed in a strange place (/usr/local/include should work fine, for example)?

--david ----------------------------------------------------------------------- from David Mosberger-Tang <davidm@azstarnet.com>. I uncommented and defined the HAVE_LIBGIMP_GIMP_H line in include/sane/config.h but it would error out during the compilation on xscanimage. I don't have the exact error though.

Then I tried this:

------------------------------------------------------------------------- i discovered the following: file libgimp/gimp.h includes glib/glib.h on my system, there didn't exist a directory glib although i had installed the gimp and the patched sane libs in a normal way. i changed the line in gimp.h saying #include <glib/glib.h> to #include <glib.h> and ran configure again. then it found libgimp/gimp.h and everything compiled just fine.

fritz _______________________________________________________________________ from Fritz Jetzek <6jetzek@informatik.uni-hamburg.de> with better luck.

During the startup of gimp I get this error: /root/.gimp/plug-ins/xscanimage: Segmentation fault caught [n]othing, [e]xit, [s]tack trace, [a]ttach to process: n

and I type n to do nothing. Gimp starts up and I can scan fine and everything. Is there anyway I can get this working correctly? I had Sane .61 working when I used RedHat 4.1.

I am using Debian 1.3.1 (sounds like the placement on the libs may be distribution dependent. Maybe there is a fix for the configure script?) Sane 0.63 Gimp .99.pre11-3.5

Any suggestions as to what I could do to fix this would be greatly appreciated.

thanks for any help and a big thanks for this great software. It is a lot more fun to use sane than in the day when I once used Windows. To scan in windows: Open scan module, scan, close window, - don't like scan, open scan module, scan close window, - don't like sane, on and on. Using SANE it is: open sane(through gimp), scan, If I don't like it just scan again. It is a lot easier to teach someone how to scan through linux than it is through Windows.

Also I was wondering if there is any sort of de-screening methods I could use for scanning in a printed image with a screen. ie a magazine, newspaper, etc.

And one last thing. You may have noticed that I have been starting up GIMP and SANE as the user root. I cannot seem to get a normal user to be able to scan. I don't even get the umax:/dev/sg0 option on start-up of SANE. This sort of seems like it is a permission problem. Does this sound reasonable? How could I fix it?

ls -l /dev/sg0 crw------- 1 root sys 21, 0 May 27 19:50 /dev/sg0

cat /usr/local/etc/sane.d/umax.conf /dev/sg0

ls -l /usr/local/etc/sane.d/umax.conf -rw-r--r-- 1 root root 9 Sep 11 04:25 /usr/local/etc/sane.d/umax.conf

NOTE: I did not find a sane-user mailing list so I assumed that this is the correct place to post this. If this is not the correct place, could someone please tell me where this should go?

thanks,

- ricardo@calvin.net

--
Source code, list archive, and docs: http://www.azstarnet.com/~axplinux/sane/
To unsubscribe: mail -s unsubscribe sane-devel-request@listserv.azstarnet.com