[Gimp-developer]
Can someone help me with the simple plug-in (hello message box)http://developer.gimp.org/writing-a-plug-in/1/index.html? I have also included the Hello.c source code. I encountered the following error. Compiler: Default compiler Building Makefile: E:\Makefile.win Executing make... make.exe -f E:\Makefile.win SimplePlugin/hello.o gcc.exe -c SimplePlugin/hello.c -o SimplePlugin/hello.o -IE:/Dev-Cpp/include -ansi -traditional-cpp -w -fmessage-length=0 SimplePlugin/hello.c:6: error: syntax error before string constant SimplePlugin/hello.c:27: error: syntax error before string constant SimplePlugin/hello.c:39: error: syntax error before '*' token SimplePlugin/hello.c: In function `run': SimplePlugin/hello.c:45: error: syntax error before values SimplePlugin/hello.c:46: error: `GimpPDBStatusType' undeclared (first use in this function) SimplePlugin/hello.c:46: error: (Each undeclared identifier is reported only once SimplePlugin/hello.c:46: error: for each function it appears in.) SimplePlugin/hello.c:47: error: `GimpRunMode' undeclared (first use in this function) SimplePlugin/hello.c:50: error: `nreturn_vals' undeclared (first use in this function) SimplePlugin/hello.c:51: error: `return_vals' undeclared (first use in this function) SimplePlugin/hello.c:51: error: `values' undeclared (first use in this function) SimplePlugin/hello.c:53: error: `GIMP_PDB_STATUS' undeclared (first use in this function) SimplePlugin/hello.c:54: error: `status' undeclared (first use in this function) SimplePlugin/hello.c:58: error: `run_mode' undeclared (first use in this function) SimplePlugin/hello.c:58: error: `param' undeclared (first use in this function) SimplePlugin/hello.c:60: error: `GIMP_RUN_NONINTERACTIVE' undeclared (first use in this function) make.exe: *** [SimplePlugin/hello.o] Error 1 Execution terminated Source Code For hello.c include libgimp/gimp.h static void query (void) { static GimpParamDef args[] = { { GIMP_PDB_INT32, run_mode, Run mode }, { GIMP_PDB_IMAGE, image, Input image }, { GIMP_PDB_DRAWABLE, drawable, Input drawable } }; gimp_install_procedure ( plug_in_hello, Hello, world!, Displays \Hello, world!\ in a dialog, David Neary, Copyright David Neary, 2004, /Filters/Misc/_Hello world..., RGB*, GRAY*, GIMP_PLUGIN, G_N_ELEMENTS (args), 0, args, NULL); } static void run (const gchar *name, gint nparams, const GimpParam *param, gint *nreturn_vals, GimpParam **return_vals) { static GimpParam values[1]; GimpPDBStatusType status = GIMP_PDB_SUCCESS; GimpRunMode run_mode; /* Setting mandatory output values */ *nreturn_vals = 1; *return_vals = values; values[0].type = GIMP_PDB_STATUS; values[0].data.d_status = status; /* Getting run_mode - we won't display a dialog if * we are in NONINTERACTIVE mode */ run_mode = param[0].data.d_int32; if (run_mode != GIMP_RUN_NONINTERACTIVE)g_message(Hello, world!\n); } -- Yavala This message was sent using IMP, the Internet Messaging Program. ___ Gimp-developer mailing list Gimp-developer@lists.xcf.berkeley.edu http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer
[Gimp-developer] Compiling a Simple Plug-in.
Can anyone show me how to compile the simple Plug-in1 hello' message on GIMP. The simple plugin for gimp is available at this link :http://developer.gimp.org/writing-a-plug-in/1/index.html. I have included one header file called libgimp.h which is similar to #include libgimp/gimp.h from the developers website. I am using devcpp-4.9.9.2 with mingw compiler for windows. I have 41 error when trying to compile the Simple Plug-in: Compiler: Default compiler Executing gcc.exe... gcc.exe D:\New Folder\hello.c -o D:\New Folder\hello.exe -ID:\Dev-Cpp\include -LD:\Dev-Cpp\lib In file included from D:\New Folder\hello.c:2: D:\New Folder\/gimp.h:10: error: syntax error before '*' token D:\New Folder\/gimp.h:22: error: syntax error before gimp_main D:\New Folder\/gimp.h:22: error: syntax error before argc D:\New Folder\/gimp.h:23: warning: data definition has no type or storage class D:\New Folder\/gimp.h:24: error: syntax error before gimp_default_display D:\New Folder\/gimp.h:24: warning: data definition has no type or storage class D:\New Folder\/gimp.h:25: error: syntax error before '*' token D:\New Folder\/gimp.h:38: error: syntax error before '*' token D:\New Folder\/gimp.h:52: error: syntax error before '*' token D:\New Folder\/gimp.h:53: error: syntax error before '*' token D:\New Folder\/gimp.h:53: error: syntax error before '*' token D:\New Folder\/gimp.h:55: warning: data definition has no type or storage class D:\New Folder\/gimp.h:56: error: syntax error before '*' token D:\New Folder\/gimp.h:56: error: syntax error before '*' token D:\New Folder\/gimp.h:59: warning: data definition has no type or storage class D:\New Folder\/gimp.h:60: error: syntax error before '*' token D:\New Folder\/gimp.h:62: error: syntax error before '*' token D:\New Folder\/gimp.h:64: error: syntax error before gimp_gamma D:\New Folder\/gimp.h:64: warning: data definition has no type or storage class D:\New Folder\/gimp.h:65: error: syntax error before gimp_install_cmap D:\New Folder\/gimp.h:65: warning: data definition has no type or storage class D:\New Folder\/gimp.h:66: error: syntax error before gimp_use_xshm D:\New Folder\/gimp.h:66: warning: data definition has no type or storage class D:\New Folder\/gimp.h:67: error: syntax error before '*' token D:\New Folder\/gimp.h:67: warning: data definition has no type or storage class D:\New Folder\/gimp.h:68: error: syntax error before gimp_min_colors D:\New Folder\/gimp.h:68: warning: data definition has no type or storage class D:\New Folder\/gimp.h:69: error: syntax error before '*' token D:\New Folder\/gimp.h:69: warning: data definition has no type or storage class D:\New Folder\/gimp.h:70: error: syntax error before '*' token D:\New Folder\hello.c: In function `query': D:\New Folder\hello.c:6: error: syntax error before args D:\New Folder\hello.c: At top level: D:\New Folder\hello.c:25: error: syntax error before string constant D:\New Folder\hello.c:34: error: conflicting types for 'gimp_install_procedure' D:\New Folder\/gimp.h:37: error: previous declaration of 'gimp_install_procedure' was here D:\New Folder\hello.c:34: error: conflicting types for 'gimp_install_procedure' D:\New Folder\/gimp.h:37: error: previous declaration of 'gimp_install_procedure' was here D:\New Folder\hello.c:37: error: syntax error before '*' token D:\New Folder\hello.c: In function `run': D:\New Folder\hello.c:43: error: syntax error before values D:\New Folder\hello.c:44: error: `GimpPDBStatusType' undeclared (first use in this function) D:\New Folder\hello.c:44: error: (Each undeclared identifier is reported only once D:\New Folder\hello.c:44: error: for each function it appears in.) D:\New Folder\hello.c:45: error: `GimpRunMode' undeclared (first use in this function) D:\New Folder\hello.c:48: error: `nreturn_vals' undeclared (first use in this function) D:\New Folder\hello.c:49: error: `return_vals' undeclared (first use in this function) D:\New Folder\hello.c:49: error: `values' undeclared (first use in this function) D:\New Folder\hello.c:51: error: `GIMP_PDB_STATUS' undeclared (first use in this function) D:\New Folder\hello.c:52: error: `status' undeclared (first use in this function) D:\New Folder\hello.c:56: error: `run_mode' undeclared (first use in this function) D:\New Folder\hello.c:56: error: `param' undeclared (first use in this function) D:\New Folder\hello.c:58: error: `GIMP_RUN_NONINTERACTIVE' undeclared (first use in this function) Execution terminated -- Yavala This message was sent using IMP, the Internet Messaging Program. ___ Gimp-developer mailing list Gimp-developer@lists.xcf.berkeley.edu http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer
[Gimp-developer] CMYK color support for the GIMP
Hello everyone iam a student University of the south pacific(FIJI) . Just getting familar with the GIMP software.Now iam understaking a Software Engineering project that deals with improving the CMYK color support for the GIMP.More specifically to be able to convert CMYK color models to RGB into tiff formats from a scanner that is. My understanding there exist a A plugin providing rudimentary CMYK support for The GIMP.However there a still some requirements that need to be done to improve it further.At the moment iam writing the analysis and design documentation.what iam asking if someone can help and give advice on how i should go about doing the project.I have been given 9 weeks to finish this project and have searched the net on anything to do with the GIMP.Also getting familar with the source code and every technical jargon that I have come across. I appreciate if someone would give a helping hand. -- Yavala This message was sent using IMP, the Internet Messaging Program. ___ Gimp-developer mailing list Gimp-developer@lists.xcf.berkeley.edu http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer