It is currently Mon Jun 15, 2026 11:34 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 16 posts ] 
Author Message
 Post subject: How should I compile G'MIC or other plugins for GIMP 2.7.x in Linux
PostPosted: Fri Nov 11, 2011 10:17 am  (#1) 
Offline
GimpChat Member
User avatar

Joined: Nov 09, 2011
Posts: 726
Hello.
Basically I followed this guide to install GIMP 2.7 from git in /opt folder:
http://www.gimpusers.com/tutorials/comp ... for-ubuntu

If I use the G'MIC binaries for GIMP 2.6, in GIMP 2.7 I get the message:

Could not execute plug-in “gmic_gimp”
because it uses an obsolete version of the plug-in protocol.


Then I try to compile G'MIC 1.5.0.6 starting with:
./configure --prefix=/opt/gimp-2.7


Ends all good. But when I trying "make" or "make gimp" from /src the process takes too long and basically get stuck and the process "cc1plus" uses 50% CPU. "make" stuck on (sorry, konsole spanish output):
$ make
make  all-recursive
make[1]: se ingresa al directorio «/home/yafu/Descargas/Gimp2.7.3/gmic-1.5.0.6»
Making all in src
make[2]: se ingresa al directorio «/home/yafu/Descargas/Gimp2.7.3/gmic-1.5.0.6/src»
**
** Linux configuration
**
make linux
make[3]: se ingresa al directorio «/home/yafu/Descargas/Gimp2.7.3/gmic-1.5.0.6/src»
make "CFLAGS=-Dgmic_build -I/usr/include -Wall -W  -Dcimg_display=1 -Dcimg_appname=\\\"gmic\\\" -I/usr/X11R6/include  -Dcimg_use_png -Dcimg_use_jpeg -Dcimg_use_tiff -Dcimg_use_zlib -Dcimg_use_openexr -I/usr/include/OpenEXR -Dcimg_use_fftw3 -Dcimg_use_opencv -I/usr/include/opencv  -O3 -fno-tree-pre " "LDFLAGS=-L/usr/lib -lm -L/usr/X11R6/lib -lX11 -lpthread  -lpng -lz -ljpeg -ltiff -lz -lIlmImf -lHalf -lfftw3 -lcv -lhighgui " "STRIP_EXE=1" gmic_gmic
make[4]: se ingresa al directorio «/home/yafu/Descargas/Gimp2.7.3/gmic-1.5.0.6/src»
g++ -o gmic_bool.o -c gmic.cpp -Dgmic_separate_compilation -Dgmic_bool -Dgmic_build -I/usr/include -Wall -W  -Dcimg_display=1 -Dcimg_appname=\"gmic\" -I/usr/X11R6/include  -Dcimg_use_png -Dcimg_use_jpeg -Dcimg_use_tiff -Dcimg_use_zlib -Dcimg_use_openexr -I/usr/include/OpenEXR -Dcimg_use_fftw3 -Dcimg_use_opencv -I/usr/include/opencv  -O3 -fno-tree-pre


System: Kubuntu 11.10 Oneiric 64bits

Thanks for your help. Sorry for my English (my language is Spanish)

_________________
Image
Be patient, English is not my language.


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: How should I compile G'MIC or other plugins for GIMP 2.7.x in Linu
PostPosted: Fri Nov 11, 2011 11:08 am  (#2) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
I remember that to compile gmic you must skip configure and just make
But is strange that doesn't work for you the compiled version, it should just give a warning not a critical error.

If not more helpful reply come from here ask on http://www.flickr.com/groups/gmic/discuss/ anyway i almost sure you should just skip configure

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: How should I compile G'MIC or other plugins for GIMP 2.7.x in Linu
PostPosted: Fri Nov 11, 2011 12:48 pm  (#3) 
Offline
GimpChat Member
User avatar

Joined: Nov 09, 2011
Posts: 726
PhotoComix wrote:
But is strange that doesn't work for you the compiled version, it should just give a warning not a critical error

I do not know, I got that message and searching I found this:
http://www.gimpusers.com/forums/gimp-us ... int-plugin

PhotoComix wrote:
I remember that to compile gmic you must skip configure and just make

Ok, but I need to install it into /opt, so that does not interfere with GIMP 2.6 installation.
Anyway I tried skipping configure, entering to /src and run "make gimp" and the same is happening to the point of almost hang my system.
I thought it could be something related to the compiler, but before I was able to compile and install "babl", "gegl" and "gimp" successfully.

PhotoComix wrote:
If not more helpful reply come from here ask on http://www.flickr.com/groups/gmic/discuss/

Ok, thanks!

_________________
Image
Be patient, English is not my language.


Top
 Post subject: Re: How should I compile G'MIC or other plugins for GIMP 2.7.x in Linu
PostPosted: Fri Nov 11, 2011 2:19 pm  (#4) 
Offline
GimpChat Member
User avatar

Joined: Oct 29, 2010
Posts: 711
Location: Netherlands
Hi YAFU,
I wrote a howto install gimp-2.7 from git sources if you're interested.
viewtopic.php?f=10&t=1261

Anyway this is wrong:
Quote:
./configure --prefix=/opt/gimp-2.7

It will try to install gmic there but it should go into /opt/gimp-2.7/lib/gimp/2.0/plugins.

To make life easier on yourself I suggest you install "mc".
Use it in a terminal and you can easily browse your system and a lot more.

Gerard.

_________________
Gentoo Linux always up-to-date.
Kernel-3.17.4 Python-2.7.8/3.3.5
Gimp-2.8.14

I use Linux only.
And Virtualbox with Win 7


Top
 Post subject: Re: How should I compile G'MIC or other plugins for GIMP 2.7.x in Linu
PostPosted: Fri Nov 11, 2011 8:01 pm  (#5) 
Offline
GimpChat Member
User avatar

Joined: Nov 09, 2011
Posts: 726
Thanks Gerard!, practically that is what I had made to install from git. The difference is that you specify the paths and the guide I used "export" paths before compilation. I must say that before compiling G'MIC I have also exported these paths.

I assumed that the part of "/lib/gimp/2.0/plug-ins/" was not necessary and build instructions are to be installed there. Anyway, I've tried with "cofigure" in many ways and without "configure" and always gets stuck in "make". I start to think it may be something related with compiler version of Ubuntu, but it is weird because I had no problem to compile gimp.
By the way, have you been able to use plugins in GIMP 2.7.x installed in /opt?

_________________
Image
Be patient, English is not my language.


Top
 Post subject: Re: How should I compile G'MIC or other plugins for GIMP 2.7.x in Linu
PostPosted: Sat Nov 12, 2011 3:19 am  (#6) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
To compile G'MIC, just go to 'gmic/src' and type 'make gimp'. It will skip the compilation of the command live version which is indeed very CPU consuming.


Top
 Post subject: Re: How should I compile G'MIC or other plugins for GIMP 2.7.x in Linu
PostPosted: Sat Nov 12, 2011 8:52 am  (#7) 
Offline
GimpChat Member
User avatar

Joined: Oct 29, 2010
Posts: 711
Location: Netherlands
@ Ronounours,
I have compiled gmic with various prefixes w/o Gimp-2.7 being able to use it.
I always get an executable ok.
But Gimp always complains about it using an obsolete plugin protocol.
I have no idea what the correct protocol is or how to modify the commands.
Any help very welcome.
Gerard.

_________________
Gentoo Linux always up-to-date.
Kernel-3.17.4 Python-2.7.8/3.3.5
Gimp-2.8.14

I use Linux only.
And Virtualbox with Win 7


Top
 Post subject: Re: How should I compile G'MIC or other plugins for GIMP 2.7.x in Linu
PostPosted: Sat Nov 12, 2011 11:57 am  (#8) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
@Gerard, I'm afraid the GIMP team has modified some important things in the plug-in API, and probably the G'MIC plug-in won't be working for the latest 2.7 releases (and probably not for 2.8 too). I need to check this assertion, but at least, what you describe seems to proove that the deprecation of the plug-in API is in process.

I always knew this time will come one day. I hope I can find a quick fix, otherwise the G'MIC plug-in will be stick with the 2.6 version. If you have more informations on this error, let me know.
Do other plug-ins get the same error ?


Top
 Post subject: Re: How should I compile G'MIC or other plugins for GIMP 2.7.x in Linu
PostPosted: Sat Nov 12, 2011 2:04 pm  (#9) 
Offline
GimpChat Member
User avatar

Joined: Oct 29, 2010
Posts: 711
Location: Netherlands
Hi Ronounours,
Yes plenty of scripts and plugins fail with similar error messages.
Xsane as scanner plugin for instance.
When I install gutenprint the normal Gentoo way it installs a plugin for Gimp-2.6.
When I copy this to the Gimp-2.7 plugin directory it fails.
I got the gutenprint plugin working by compiling the source with prefix=/opt and it then installs it in /opt/lib/gimp/2.0/plugins.
The gutenprint source I got from /usr/portage/distfiles where Gentoo keeps all the sourcefiles you install.
When I compare the sizes I notice that for 2.6 it's 36152 bytes and for 2.7 it's 29430 bytes in size.
Yet they both have the same gui and both work ok.
Since these are binaries I have no means to find out what the difference is.
Thanks for your efforts and if I could do anything else for you just holler.
Gerard.

_________________
Gentoo Linux always up-to-date.
Kernel-3.17.4 Python-2.7.8/3.3.5
Gimp-2.8.14

I use Linux only.
And Virtualbox with Win 7


Top
 Post subject: Re: How should I compile G'MIC or other plugins for GIMP 2.7.x in Linu
PostPosted: Sat Nov 12, 2011 2:31 pm  (#10) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
Start gimp from the terminal with " gimp --verbose" is no sufficient to see what the problem ?

It seems improbable critical changes in the API coming just now, when the priority is speed up the release

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: How should I compile G'MIC or other plugins for GIMP 2.7.x in Linu
PostPosted: Sat Nov 12, 2011 2:55 pm  (#11) 
Offline
GimpChat Member
User avatar

Joined: Oct 29, 2010
Posts: 711
Location: Netherlands
Here's part of the result of /opt/bin/gimp27 in an xterminal:
(process:16412): LibGimp-ERROR (recursed) **: unexpected message: 5
aborting...

(gimp27:16399): Gimp-Plug-In-WARNING **: gimp27: plug_in_flush(): error: Broken pipe

(gimp27:16399): Gimp-Plug-In-WARNING **: gimp27: plug_in_flush(): error: Broken pipe
Terminating plug-in: '/home/ikke/.gimp-2.7/plug-ins/gmic_gimp'

I have no idea what process 16412 is.
Gerard.

_________________
Gentoo Linux always up-to-date.
Kernel-3.17.4 Python-2.7.8/3.3.5
Gimp-2.8.14

I use Linux only.
And Virtualbox with Win 7


Top
 Post subject: Re: How should I compile G'MIC or other plugins for GIMP 2.7.x in Linu
PostPosted: Sat Nov 12, 2011 4:47 pm  (#12) 
Offline
GimpChat Member

Joined: Mar 14, 2011
Posts: 998
Ronounours wrote:
@Gerard, I'm afraid the GIMP team has modified some important things in the plug-in API, and probably the G'MIC plug-in won't be working for the latest 2.7 releases (and probably not for 2.8 too). I need to check this assertion, but at least, what you describe seems to proove that the deprecation of the plug-in API is in process.

I always knew this time will come one day. I hope I can find a quick fix, otherwise the G'MIC plug-in will be stick with the 2.6 version. If you have more informations on this error, let me know.
Do other plug-ins get the same error ?


Hi David,

Just compiled g'mic 1.5.0.6 for gimp-2.7.4 (November 7th nightly-tarball). So, it's OK so far. I am planning to make it available soon.

Thanks,
Partha


Top
 Post subject: Re: How should I compile G'MIC or other plugins for GIMP 2.7.x in Linu
PostPosted: Sun Nov 13, 2011 1:12 pm  (#13) 
Offline
GimpChat Member
User avatar

Joined: Oct 29, 2010
Posts: 711
Location: Netherlands
I created a separate partition and installed Gentoo Linux on it using the same configuration as in my regular install.
I did not install all the software that I have on my regular install but what I left out is nothing graphic.
I compiled Gimp from git using --prefix=/usr instead of /opt.
Now the G'mic plugin works fine!
I have no idea why it works ok in /usr and not in /opt.
Anyway when 2.8 is ready I want to install it in /usr on my regular install to replace 2.6 and G'mic will work.
Gerard.

_________________
Gentoo Linux always up-to-date.
Kernel-3.17.4 Python-2.7.8/3.3.5
Gimp-2.8.14

I use Linux only.
And Virtualbox with Win 7


Top
 Post subject: Re: How should I compile G'MIC or other plugins for GIMP 2.7.x in Linu
PostPosted: Mon Nov 14, 2011 6:36 am  (#14) 
Offline
GimpChat Member
User avatar

Joined: Nov 09, 2011
Posts: 726
Thanks Gerard for taking your time to do that experiment.
It would be interesting to know why the plugins do not work if GIMP installation is in /opt. I will try to find out.

_________________
Image
Be patient, English is not my language.


Top
 Post subject: Re: How should I compile G'MIC or other plugins for GIMP 2.7.x in Linu
PostPosted: Mon Nov 14, 2011 7:22 am  (#15) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
Thanks Gerard, that was then a false alarm, at least for now :)


Top
 Post subject: Re: How should I compile G'MIC or other plugins for GIMP 2.7.x in Linu
PostPosted: Mon Nov 14, 2011 8:53 am  (#16) 
Offline
GimpChat Member
User avatar

Joined: Oct 29, 2010
Posts: 711
Location: Netherlands
You're both quite welcome.
I can't code but having used Gentoo for 8 years one gets a lot of experience in compiling from source.
Gerard.

Edit: I added a warning to the howto I wrote:
viewtopic.php?f=10&t=1261

_________________
Gentoo Linux always up-to-date.
Kernel-3.17.4 Python-2.7.8/3.3.5
Gimp-2.8.14

I use Linux only.
And Virtualbox with Win 7


Top
Post new topic Reply to topic  [ 16 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group