Hello
I am having som trouble building a plugin for the gimp.
It seems to have something to do with the structure of the Mandrake
filesystem (what goes where).
I am using Mandrake 8.0, Kernel 2.4.3, in a k6-2 200 MHZ PC system.
I want to use the file despeckle-1.3.2.tar.gz, which unpacks into
despeckle.c and Makefile.despecle, which 
looks like this :
#
# Sample makefile for despeckle plug-in...
#

SHELL   =       /bin/sh
CC      =       cc
OPT     =       -O
CFLAGS  =       $(OPT) -I/usr/local/include
LDFLAGS =       $(OPT)
LIBS    =       -L/usr/local/lib -lgimpui -lgimp -lgtk -lgdk -lglib -lXext
-lX11 -lm

#
# Default make rules...
#

.SUFFIXES: .c .o
.c.o:
        $(CC) $(CFLAGS) -c $<

#
# despeckle
#

DESPECKLE_SRCS  =       despeckle.c
DESPECKLE_HDRS  =
DESPECKLE_OBJS  =       despeckle.o

despeckle:      $(DESPECKLE_OBJS)
        $(CC) $(OPT) $(LDFLAGS) $(DESPECKLE_OBJS) -o $@ $(LIBS)
$(DESPECKLE_OBJS):      $(DESPECKLE_HDRS)

I have changed it a little, replacing "/usr/local" with "/usr".
Renaming Makefile.despecle to Makefile and running make gives gcc trouble
finding the header files : gck.h, 
gdk,h, glib.h and glibconfig.h. These are located in the /root and in the
/root/include directory.
As a quick try, I have copied the folders /root/include/gdk and
/root/include/gtk to /usr/include together 
with the files glib.h and glibconfig.h. Now the compiler starts, but an
awfull amount of error messages 
comes out, so it does not seem as if I am on the right track. I suppose,
that the makefile should look a 
little different to accomodate the mandrake installation, but how ?
I will be gratefull for any help, you can give me.

Best Regards
Klaus Nielsen
Copenhagen
Denmark

P.s. Here is the output from running make :

[root@localhost Desktop]# make
cc -O -I/usr/include -c despeckle.c
despeckle.c:166: parse error before `GParam'
despeckle.c:188: parse error before `PLUG_IN_INFO'
despeckle.c:190: warning: initialization makes integer from pointer without
a cast
despeckle.c:191: warning: excess elements in scalar initializer
despeckle.c:191: warning: (near initialization for `PLUG_IN_INFO')
despeckle.c:192: warning: excess elements in scalar initializer
despeckle.c:192: warning: (near initialization for `PLUG_IN_INFO')
despeckle.c:194: warning: excess elements in scalar initializer
despeckle.c:194: warning: (near initialization for `PLUG_IN_INFO')
despeckle.c:194: warning: data definition has no type or storage class
despeckle.c:209: parse error before `*'
despeckle.c:209: warning: data definition has no type or storage class
despeckle.c: In function `query':
despeckle.c:240: syntax error before `args'
despeckle.c: At top level:
despeckle.c:250: parse error before `*'
despeckle.c:250: warning: data definition has no type or storage class
despeckle.c:251: `args' undeclared here (not in a function)
despeckle.c:251: `args' undeclared here (not in a function)
despeckle.c:255: parse error before string constant
despeckle.c:262: conflicting types for `gimp_install_procedure'
/usr/include/libgimp/gimp.h:262: previous declaration of
`gimp_install_procedure'
despeckle.c:262: warning: data definition has no type or storage class
despeckle.c:273: parse error before `GParam'
despeckle.c: In function `run':
despeckle.c:277: `GRunModeType' undeclared (first use in this function)
despeckle.c:277: (Each undeclared identifier is reported only once
despeckle.c:277: for each function it appears in.)
despeckle.c:277: parse error before `run_mode'
despeckle.c:278: `GStatusType' undeclared (first use in this function)
despeckle.c:279: `GParam' undeclared (first use in this function)
despeckle.c:279: `values' undeclared (first use in this function)
despeckle.c:286: `status' undeclared (first use in this function)
despeckle.c:286: `STATUS_SUCCESS' undeclared (first use in this function)
despeckle.c:287: `run_mode' undeclared (first use in this function)
despeckle.c:287: `param' undeclared (first use in this function)
despeckle.c:289: parse error before `)'
despeckle.c:291: `PARAM_STATUS' undeclared (first use in this function)
despeckle.c:294: invalid type argument of `unary *'
despeckle.c:301: warning: assignment from incompatible pointer type
despeckle.c:303: request for member `id' in something not a structure or
union
despeckle.c:307: request for member `id' in something not a structure or
union
despeckle.c:315: `RUN_INTERACTIVE' undeclared (first use in this function)
despeckle.c:328: break statement not within loop or switch
despeckle.c:330: `RUN_NONINTERACTIVE' undeclared (first use in this
function)
despeckle.c:335: `nparams' undeclared (first use in this function)
despeckle.c:336: `STATUS_CALLING_ERROR' undeclared (first use in this
function) despeckle.c:365: break 
statement not within loop or switch
despeckle.c:367: `RUN_WITH_LAST_VALS' undeclared (first use in this
function)
despeckle.c:373: break statement not within loop or switch
despeckle.c:375: default label not within a switch statement
despeckle.c:377: break statement not within loop or switch
despeckle.c:386: request for member `id' in something not a structure or
union
despeckle.c:387: request for member `id' in something not a structure or
union
despeckle.c:393: request for member `width' in something not a structure or
union
despeckle.c:417: `STATUS_EXECUTION_ERROR' undeclared (first use in this
function)
despeckle.c:430: warning: passing arg 1 of `gimp_drawable_detach' from
incompatible pointer type
despeckle.c: In function `despeckle':
despeckle.c:449: `GPixelRgn' undeclared (first use in this function)
despeckle.c:449: parse error before `src_rgn'
despeckle.c:484: `src_rgn' undeclared (first use in this function)
despeckle.c:485: warning: passing arg 2 of `gimp_pixel_rgn_init' from
incompatible pointer type
despeckle.c:486: `dst_rgn' undeclared (first use in this function)
despeckle.c:487: warning: passing arg 2 of `gimp_pixel_rgn_init' from
incompatible pointer type
despeckle.c:658: warning: passing arg 1 of `gimp_drawable_flush' from
incompatible pointer type
despeckle.c:659: request for member `id' in something not a structure or
union
despeckle.c:660: request for member `id' in something not a structure or
union
despeckle.c: In function `preview_update':
despeckle.c:928: `GPixelRgn' undeclared (first use in this function)
despeckle.c:928: parse error before `src_rgn'
despeckle.c:951: `src_rgn' undeclared (first use in this function)
despeckle.c:951: warning: passing arg 2 of `gimp_pixel_rgn_init' from
incompatible pointer type
make: *** [despeckle.o] Error 1
[root@localhost Desktop]#
_______________________________________________
Gimp-user mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user

Reply via email to