# Re: problems compling sane 1.0.3 xscanimage/xsane

From: Peter Kirchgessner (peter@kirchgessner.net)
Date: Tue Sep 26 2000 - 13:28:06 PDT

- Next message: Graham Leggett: "Re: Some help with the net backend"
  - Previous message: Dave Hill: "Re: problems compling sane 1.0.3 xscanimage/xsane"
  - In reply to: Henning Meier-Geinitz: "Re: problems compling sane 1.0.3 xscanimage/xsane"
  - Next in thread: Dave Hill: "Re: problems compling sane 1.0.3 xscanimage/xsane"
  - Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

  Hi,

  in xscanimage.c, add the line

  #define GIMP_ENABLE_COMPAT_CRUFT

  just infront of the #include <libgimp/gimp.h>
  With Gimp 1.1.25 (developers version), most of the type declarations
  have changed. GParam now is GimpParam. With the above define, you can
  use the old types.
  For xsane the define should be added to xsane.h just infront of #
  include <libgimp/gimp.h>.

  Sincerely

  Peter

  Henning Meier-Geinitz wrote:
  >
  > Hi,
  > On Mon, Sep 25, 2000 at 02:59:21PM -0500, David Cougle wrote:
  > > I cannot compile xscanimage or xsane.
  > > I have gimp 1.1.26.
  >
  > It looks like a problem concerning gimp.
  >
  > > gcc -c -DHAVE_CONFIG_H -I. -I. -I../include -I../include
  > > -I/usr/local/include -I/usr/lib/glib/include -I/usr/X11R6/include
  > > -D_GNU_SOURCE -DPATH_SANE_CONFIG_DIR=/opt/etc/sane.d
  > > -DPATH_SANE_DATA_DIR=/opt/share -DV_MAJOR=1 -DV_MINOR=0 -O3 -W -Wall
  > > -DSCSIBUFFERSIZE=131072 xscanimage.c
  > > xscanimage.c:63: parse error before `GParam'
  >
  > gcc doesn't seem to like "GParam". For my GIMP (1.1.19), this is (from
  > gimp.h):
  >
  > typedef struct _GParam GParam;
  >
  > Has this been changed in your version of GIMP?
  >
  > Bye,
  > Henning
  >
  > --
  > Source code, list archive, and docs: http://www.mostang.com/sane/
  > To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com

      --
      Peter Kirchgessner
      WWW:    http://www.kirchgessner.net
      e-mail: peter@kirchgessner.net
      --
      Source code, list archive, and docs: http://www.mostang.com/sane/
      To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com

  - Next message: Graham Leggett: "Re: Some help with the net backend"
  - Previous message: Dave Hill: "Re: problems compling sane 1.0.3 xscanimage/xsane"
  - In reply to: Henning Meier-Geinitz: "Re: problems compling sane 1.0.3 xscanimage/xsane"
  - Next in thread: Dave Hill: "Re: problems compling sane 1.0.3 xscanimage/xsane"
  - Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

  This archive was generated by hypermail 2b29 : Tue Sep 26 2000 - 13:17:37 PDT