[sane-devel] xsane issues on Mac OS X

Jim George jim.george@blueyonder.co.uk
10 Apr 2002 07:40:33 +0100


Paul,

	this may come over as selfish, appologies if it does, but when you get
a frontend built that I can use across the network (I have my scanner
plugged into my linux box), please let me know so that I can do some
testing with you/for you?

	Either scanimage or xsane will do to begin testing with.

	Are you going to pass the resultant compiled code on to the 'fink'
project which takes linux code and ports it to Mac?

Jim

On Tue, 2002-04-09 at 04:42, paul beard wrote:
> SANE builds OK, but then we get this with xsane.
> 
> cc -c -DHAVE_CONFIG_H -DLOCALEDIR=/usr/local/share/locale -I. -I. 
> -I../include -I../include  -I/usr/local/include -D_GNU_SOURCE 
> -I../intl           -DPATH_SANE_DATA_DIR=/usr/local/share/sane 
>    -DV_MAJOR=0 -DV_MINOR=80 -DSANE_V_MAJOR=1 -g -O2 -Wall 
> -I/usr/local/include -I/sw/include -I/sw/include/gtk-1.2 
> -I/sw/include/glib-1.2 -I/sw/lib/glib/include -I/usr/X11R6/include 
>   xsane-back-gtk.c 
> /sw/include/libgimp/gimp.h:241: illegal external declaration, 
> missing `;' after `)' 
> /sw/include/libgimp/gimp.h:241: illegal external declaration, 
> missing `;' after `void'                    xsane-back-gtk.c:801: 
> bad macro argument list 
>                    xsane-back-gtk.c:801: bad macro argument list 
>  
> xsane-back-gtk.c:801: bad macro argument list 

Try adding -no-cpp-precomp to the compiler options. gtk+ headers are
known to break MacOS X cpp-precompiler.


Hub