Re: gimp and xsane

Jean-François Straeten (jfstraeten@csi.com)
Wed, 22 Sep 1999 01:48:07 +0200

On Tue, Sep 21, 1999 at 06:20:04PM +0200, Oliver Rauch wrote:
>
> Robert Schwebel wrote:
>
> > Hi Oliver!
> >
> > Is it possible for you to add a configure switch to disable the Gimp
> > plugin feature in xsane? My problem is that I have Gimp-1.0.2 here (from
> > SuSE 6.0), don't want to update now but want to use xsane :-) At the
> > moment I cannot compile it because of this error you describe in the
> > PROBLEMS file.
> >
>
> Hello Robert,
>
> please call
> ./configure
> and afterwards edit in the sourcedir
> sane/include/sane/config.h
> and comment out the line
> #define HAVE_LIBGIMP_GIMP_H 1
>
> then you can compile xsane without gimp support.

A friend of mine put this other workaround at the bottom of the frontend/xsane.c
for xsane to compile on my machine (I'm also using Gimp 1.0.2, that wich
came with the Suse 6.0) :

----------------------------

#undef g_message
#undef g_debug
#undef g_warning
#undef g_error

void g_message (char *s)
{
printf ("Msg : %s\n", s);
}

void g_debug (char *s)
{
printf ("Dbg : %s\n", s);
}

void g_warning (char *s)
{
printf ("War : %s\n", s);
}

void g_error (char *s)
{
printf ("Error : %s\n", s);

}
------------------------------------------------

Works great.

-- 

J.-F. STRAETEN

---
Mutt 0.93.1i.
Powered by SuSE Linux.

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