Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

colortoalpha.c fails to compile with gimptool-2.0

Status
Not open for further replies.

bosshoff

IS-IT--Management
Jul 13, 2004
5
0
0
US
I am very new to gimp, and I'm trying to get a plugin working that will map a solid color to a transparency. I currently run Gentoo with the 2.6.10 kernel. Here is the output from gimptool-2.0 --install colortoalpha.c

/bin/install -c -d /home/bosshoff/.gimp-2.0/plug-ins
i386-pc-linux-gnu-gcc -O2 -march=athlon-xp -pipe -Wall -I/usr/include/gimp-2.0 -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/a
tk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -o /home/bosshoff/.gimp-2.0/plug-ins/colortoalpha colortoalpha.c -L
/usr/lib -lgimpui-2.0 -lgimpwidgets-2.0 -lgimp-2.0 -lgimpcolor-2.0 -lgimpmath-2.0 -lgimpbase-2.0 -Wl,--export-dynamic -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lp
ango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
colortoalpha.c:71: error: parse error before "GParam"
colortoalpha.c:83: error: parse error before "main_function"
colortoalpha.c:83: error: parse error before '*' token
colortoalpha.c:83: warning: type defaults to `int' in declaration of `main_function'
colortoalpha.c:83: warning: data definition has no type or storage class
colortoalpha.c:84:8: warning: extra tokens at end of #endif directive
colortoalpha.c:87: error: parse error before '*' token
colortoalpha.c:97: error: parse error before "run_mode"
colortoalpha.c:97: warning: type defaults to `int' in declaration of `run_mode'
colortoalpha.c:97: warning: data definition has no type or storage class
colortoalpha.c:99: error: parse error before "PLUG_IN_INFO"
colortoalpha.c:99: warning: type defaults to `int' in declaration of `PLUG_IN_INFO'
colortoalpha.c:101: warning: initialization makes integer from pointer without a cast
colortoalpha.c:102: warning: excess elements in scalar initializer
colortoalpha.c:102: warning: (near initialization for `PLUG_IN_INFO')
colortoalpha.c:103: warning: excess elements in scalar initializer
colortoalpha.c:103: warning: (near initialization for `PLUG_IN_INFO')
colortoalpha.c:104: warning: excess elements in scalar initializer
colortoalpha.c:104: warning: (near initialization for `PLUG_IN_INFO')
colortoalpha.c:105: warning: data definition has no type or storage class
colortoalpha.c: In function `main':
colortoalpha.c:123: warning: passing arg 1 of `gimp_main' from incompatible pointer type
colortoalpha.c: In function `query':
colortoalpha.c:128: error: syntax error before "args"
colortoalpha.c: At top level:
colortoalpha.c:135: error: parse error before '*' token
colortoalpha.c:135: warning: type defaults to `int' in declaration of `return_vals'
colortoalpha.c:135: warning: data definition has no type or storage class
colortoalpha.c:136: error: `args' undeclared here (not in a function)
colortoalpha.c:136: error: `args' undeclared here (not in a function)
colortoalpha.c:139: error: parse error before string constant
colortoalpha.c:149: warning: type defaults to `int' in declaration of `gimp_install_procedure'
colortoalpha.c:149: error: conflicting types for `gimp_install_procedure'
/usr/include/gimp-2.0/libgimp/gimp.h:233: error: previous declaration of `gimp_install_procedure'
colortoalpha.c:149: warning: data definition has no type or storage class
colortoalpha.c:155: error: parse error before "GParam"
colortoalpha.c: In function `run':
colortoalpha.c:159: error: syntax error before "values"
colortoalpha.c:160: error: `GDrawable' undeclared (first use in this function)
colortoalpha.c:160: error: (Each undeclared identifier is reported only once
colortoalpha.c:160: error: for each function it appears in.)
colortoalpha.c:160: error: `drawable' undeclared (first use in this function)
colortoalpha.c:163: error: `GStatusType' undeclared (first use in this function)
colortoalpha.c:163: error: parse error before "status"
colortoalpha.c:165: error: `param' undeclared (first use in this function)
colortoalpha.c:167: error: invalid type argument of `unary *'
colortoalpha.c:168: error: `values' undeclared (first use in this function)
colortoalpha.c:170: error: `PARAM_STATUS' undeclared (first use in this function)
colortoalpha.c:171: error: `status' undeclared (first use in this function)
colortoalpha.c:179: error: `RUN_INTERACTIVE' undeclared (first use in this function)
colortoalpha.c:191: error: `RUN_NONINTERACTIVE' undeclared (first use in this function)
colortoalpha.c:192: error: `nparams' undeclared (first use in this function)
colortoalpha.c:193: error: `STATUS_CALLING_ERROR' undeclared (first use in this function)
colortoalpha.c:194: error: `STATUS_SUCCESS' undeclared (first use in this function)
colortoalpha.c:203: error: `RUN_WITH_LAST_VALS' undeclared (first use in this function)
colortoalpha.c:213: warning: implicit declaration of function `gimp_drawable_color'
colortoalpha.c: At top level:
colortoalpha.c:449: error: parse error before '*' token
colortoalpha.c: In function `colortoalpha_dialog':
colortoalpha.c:470: warning: implicit declaration of function `gimp_use_xshm'
colortoalpha.c:473: warning: implicit declaration of function `gimp_color_cube'
colortoalpha.c:473: warning: assignment makes pointer from integer without a cast
colortoalpha.c: In function `C2A_fg_button_callback':
colortoalpha.c:680: warning: passing arg 1 of `gimp_palette_get_foreground' from incompatible pointer type
colortoalpha.c:680: error: too many arguments to function `gimp_palette_get_foreground'
colortoalpha.c: In function `C2A_bg_button_callback':
colortoalpha.c:695: warning: passing arg 1 of `gimp_palette_get_background' from incompatible pointer type
colortoalpha.c:695: error: too many arguments to function `gimp_palette_get_background'
colortoalpha.c: At top level:
colortoalpha.c:705: error: parse error before "main_function"
colortoalpha.c:705: error: parse error before '*' token
colortoalpha.c:706: warning: return type defaults to `int'
colortoalpha.c: In function `main_function':
colortoalpha.c:707: error: `GPixelRgn' undeclared (first use in this function)
colortoalpha.c:707: error: parse error before "src_rgn"
colortoalpha.c:717: error: `drawable' undeclared (first use in this function)
colortoalpha.c:717: error: `STATUS_EXECUTION_ERROR' undeclared (first use in this function)
colortoalpha.c:723: error: `src_rgn' undeclared (first use in this function)
colortoalpha.c:724: error: `dest_rgn' undeclared (first use in this function)
colortoalpha.c:821: error: `STATUS_SUCCESS' undeclared (first use in this function)
colortoalpha.c: At top level:
colortoalpha.c:136: warning: `nargs' defined but not used
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top