LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   GIMP plug-ins failing to compile...? (https://www.linuxquestions.org/questions/linux-software-2/gimp-plug-ins-failing-to-compile-437850/)

Crotalid 04-22-2006 07:23 PM

GIMP plug-ins failing to compile...?
 
It has been quite some time since I have posted here.
Recently I upgraded to Fedora Core 5, with some minor troubles (nVidia driver-related) but I figured those out.
Recently I've wanted to add some plugins to The Gimp,
since is there is such a wide variety of interesting types. However, they fail to compile and I am unsure why -- Here is what happens, when I tried to install the plasma2 plugin, as an example.
Code:


[crotalus@netblock-xx-xxx-xxx-xxx plasma2-2.11]$ make
cc `gimptool-2.0 --cflags` -DLOCALEDIR=\"`gimptool-2.0 --prefix`
/share/locale\" -DVERSION=\"2.11\" -Wall -O2  `gimptool-2.0 --l
ibs` -lm `gimptool-2.0 --cflags` -DLOCALEDIR=\"`gimptool-2.0 --p
refix`/share/locale\" -DVERSION=\"2.11\" -Wall -O2  plasma2.c
 -o plasma2
plasma2.c:70:26: error: libgimp/gimp.h: No such file or director
y
plasma2.c:71:28: error: libgimp/gimpui.h: No such file or direct
ory
plasma2.c:145: warning: type defaults to ‘int’ in declaration of
 ‘GimpParam’
plasma2.c:145: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
plasma2.c:161: error: expected ‘)’ before ‘*’ token
plasma2.c:165: error: expected ‘)’ before ‘*’ token
plasma2.c:167: error: expected ‘)’ before ‘*’ token
plasma2.c:182: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attrib
ute__’ before ‘PLUG_IN_INFO’
plasma2.c:218: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attrib
ute__’ before ‘*’ token
plasma2.c:235: warning: return type defaults to ‘int’
plasma2.c: In function ‘MAIN’:
plasma2.c:237: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attrib
ute__’ before ‘{’ token
plasma2.c:271: warning: type defaults to ‘int’ in declaration of
 ‘GimpParam’
plasma2.c:271: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
plasma2.c:367: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attrib
ute__’ before ‘{’ token
plasma2.c:377: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attrib
ute__’ before ‘{’ token
plasma2.c:394: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attrib
ute__’ before ‘{’ token
plasma2.c:408: error: expected declaration specifiers or ‘...’ b
efore ‘GimpDrawable’
plasma2.c:409: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attrib
ute__’ before ‘{’ token
plasma2.c:446: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attrib
ute__’ before ‘{’ token
plasma2.c:464: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attrib
ute__’ before ‘{’ token
plasma2.c:653: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attrib
ute__’ before ‘{’ token
plasma2.c:661: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attrib
ute__’ before ‘{’ token
plasma2.c:669: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attrib
ute__’ before ‘{’ token
plasma2.c:686: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attrib
ute__’ before ‘{’ token
plasma2.c:697: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attrib
ute__’ before ‘{’ token
plasma2.c:742: error: expected ‘)’ before ‘*’ token
plasma2.c:820: error: expected ‘)’ before ‘*’ token
plasma2.c:851: error: expected ‘)’ before ‘*’ token
plasma2.c:879: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attrib
ute__’ before ‘{’ token
plasma2.c:905: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attrib
ute__’ before ‘{’ token
plasma2.c:937: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attrib
ute__’ before ‘{’ token
plasma2.c:954: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attrib
ute__’ before ‘{’ token
plasma2.c:983: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attrib                                                          ute__’ before ‘{’ token
plasma2.c:995: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attrib                                                          ute__’ before ‘{’ token
plasma2.c:1010: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attri                                                          bute__’ before ‘{’ token
plasma2.c:1023: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attri                                                          bute__’ before ‘{’ token
plasma2.c:1043: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attri                                                          bute__’ before ‘{’ token
plasma2.c:1076: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attri                                                          bute__’ before ‘{’ token
plasma2.c:1106: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attri                                                          bute__’ before ‘{’ token
plasma2.c:1179: error: expected ‘{’ at end of input
make: *** [plasma2] Error 1
[crotalus@netblock-xx-xxx-xxx-xxx plasma2-2.11]$



Also, I am running a AMD64-based system, if that is relevant (?).
Anyone have any idea as to what is going on here?

Thanks in Advance...
-- Crotalid

ataraxia 04-22-2006 07:37 PM

Quote:

Originally Posted by Crotalid
plasma2.c:70:26: error: libgimp/gimp.h: No such file or directory
plasma2.c:71:28: error: libgimp/gimpui.h: No such file or directory

Looks like you don't have the dev package(s) for gimp installed.

Crotalid 04-22-2006 07:59 PM

Quote:

Originally Posted by ataraxia
Looks like you don't have the dev package(s) for gimp installed.

Argh. I completely overlooked that possibility.

After installing gimp-devel with Yumex, I tried again.
This time I still have errors, but they are directory-related. I'm not sure what the 'LOCALEDIR' is,
as it shows below.

Code:

[crotalus@netblock-xx-xxx-xxx-xxx plasma2-2.11]$ gimptool --install plasma2.c
/usr/bin/install -c -d /home/crotalus/.gimp-2.2/plug-ins
x86_64-redhat-linux-gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
 -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fomit-frame-p
ointer -I/usr/include/gimp-2.0 -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/incl
ude -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr
/include/glib-2.0 -I/usr/lib64/glib-2.0/include -o /home/crotalus/.gimp-2.2/plu
g-ins/plasma2 plasma2.c -L/usr/lib64 -lgimpui-2.0 -lgimpwidgets-2.0 -lgimp-2.0  -lgimpcolor-2.0 -lgimpmath-2.0 -lgimpbase-2.0 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk  -1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -l  gmodule-2.0 -ldl -lglib-2.0
plasma2.c: In function ‘run’:
plasma2.c:281: error: ‘LOCALEDIR’ undeclared (first use in this function)
plasma2.c:281: error: (Each undeclared identifier is reported only once
plasma2.c:281: error: for each function it appears in.)
plasma2.c: In function ‘plugin_dialog’:
plasma2.c:566: warning: pointer targets in passing argument 1 of ‘gimp_random_s  eed_new’ differ in signedness

Does it refer to the GIMP install dir?

-- Crotalid

ataraxia 04-22-2006 08:54 PM

I think LOCALEDIR is related to libintl and GNU gettext. Probably you're missing another devel package for one of those (libintl-devel or gettext-devel or somesuch).

Also, it might be worth deleting the unpacked source archive and untarring it again - who knows if there are some kind of cache files in there that will screw you up when you change the build environment.


All times are GMT -5. The time now is 08:22 PM.