Re: sane and gimp

Ondrej Popp (ondrej@geocities.com)
Fri, 13 Feb 1998 20:07:55 +0100

Yes... I have seen this problem too, and it took me a while to
figure out what was going on. But I do not believe I reported
this on this list... Well anyway the problem is caused by the fact
that the sane distribution does not set a compiler directive,
or.. this directive is not set properly by configure...
So, compiling xscanimage in this way won't make it suitable as a gimp
plugin. To fix this you must make sure xscanimage is compiled with the

HAVE_LIBGIMP_GIMP_H directive turned on.

That makes the problem go away.

You can set this directive in <sane root>/include/sane/config.h

I hope I have remembered this correctly, (just browsing through the
sane distribution again) so if I have not, its something along
these lines...

regards

Ondrej

tim drummer wrote:
>
> i am having trouble getting the gimp to use the SANE xscaninmage
> software as a plug-in. however, before i explain the problem, please let
> me relate the success i have had!
>
> last night i purchased a umax astra 1200S scanner. i connected it to my
> zip zoom card via the zip zoom drive itself and then terminated at the
> scanner. this is a particualrly nice arrangement since the scanner is a 25
> pin connector and so is the zip zoom.
>
> one item of difficulty is that the scanner is preset to ID 5 as is the zip
> drive and it was easier to change the ID on the zip drive. however, when
> booted with this configuration, the scanner shows up as /dev/sga using
> find-scanner and upon trying to start a scan the whole system crashes ( i
> should mention that my primary hard drive is on separate AHA 2940UW
> controller) forcing a hard reset. upon swapping the SCSI ID's, the scanner
> is now sgc and it works fantastically! i had the setup working using
> xscanimage in under an hour.
>
> now to the problem: i compiled sane 0.70 without any problems, made the
> symlink in my ~/.gimp/plug-ins directory to xscanimage as per the man
> page, however upon starting the gimp (0.99.18) i get the following output:
>
> tim@nrb119c: /home/tim>gimp
> query plug-in: "/home/tim/.gimp/plug-ins/xscanimage"
> /home/tim/.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
> writing "/home/tim/.gimp/pluginrc"
> Starting extensions:
>
>
> i found a previous article in the SANE discussion archive from someone
> having a similar problem and the recommendation was to make sure that the
> gimp header file is being seen when SANE is compiled. i ran
> make distclean
>
> and
>
> ./configure.
>
> i find: checking for libgimp/gimp.h... yes
>
> then
>
> make
>
> and make install
>
> everything appears to compile ok, yet the problem persits. sure would be
> nice to scan directly into the gimp.
>
> any suggestions??
>
> thanks!
>
> tim
>
> ===================================================================
> Any man can deal with adversity. A real test of character is to put
> someone in a position of power.
> -- Abraham Lincoln
> An optimist believes we live in the best of all possible worlds. A
> pessimist fears he is right.
>
> http://nrb119c.physics.fsu.edu/~tim
>
> Tim Drummer
>
> --
> Source code, list archive, and docs: http://www.mostang.com/sane/
> To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com

-- 
         ________________________________________________________ 
        |                                                        |       
        |                                                        |       
        |   http://www.geocities.com/SiliconValley/Lakes/6150    | 
        |                                                        |       
     _  |                                                        |  _    
    / ) |                                                        | ( \   
  _( (_ |  _              E-mail: ondrej@geocities.com        _  | _) )_ 
 (((\ \)|_/ )________________________________________________( \_|(/
/)))
  \\\\ \_/ /                                                  \ \_/ //// 
   \      /                                                    \      /  
    \   _/                                                      \_   /   
    /__/                                                          \__\

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