LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-22-2006, 08:23 PM   #1
Crotalid
Member
 
Registered: Jan 2006
Location: Carmichael, California
Distribution: Kubuntu 19.04
Posts: 87

Rep: Reputation: 19
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
 
Old 04-22-2006, 08:37 PM   #2
ataraxia
Member
 
Registered: Apr 2006
Location: Pittsburgh
Distribution: Debian Sid AMD64
Posts: 296

Rep: Reputation: 30
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.
 
Old 04-22-2006, 08:59 PM   #3
Crotalid
Member
 
Registered: Jan 2006
Location: Carmichael, California
Distribution: Kubuntu 19.04
Posts: 87

Original Poster
Rep: Reputation: 19
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
 
Old 04-22-2006, 09:54 PM   #4
ataraxia
Member
 
Registered: Apr 2006
Location: Pittsburgh
Distribution: Debian Sid AMD64
Posts: 296

Rep: Reputation: 30
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with plug ins , please 1702fp Debian 43 05-31-2006 04:49 PM
Plug-ins, Plug-ins, Plug-ins, those damn Plug-ins!! GRRRR!! Ausar Linux - Newbie 1 06-09-2004 04:10 PM
installing plug-ins bosewicht Mandriva 12 11-10-2003 04:59 AM
netscape plug-ins lub0 Linux - Software 2 10-30-2003 10:50 AM
The Gimp plug-ins and scripts Shaopudding Linux - Software 1 10-18-2002 01:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration