refocus - how to install with gimp-2.3.x : Graphics
This is a discussion on refocus - how to install with gimp-2.3.x within the Graphics forums in Theory and Concepts category; I tried to install refocus-0.9.0 with my gimp (cvs) but had no luck. After a lot of warnings I get the error message In file included from refocus.c:32: gimppreview.h:40: error: redefinition of typedef 'GimpPreview' /usr/include/gimp-2.0/libgimpwidgets/gimpwidgetstypes.h:64: error: previous declaration of 'GimpPreview' was here gimppreview.h:41: error: redefinition of typedef 'GimpPreviewClass' /usr/include/gimp-2.0/libgimpwidgets/gimppreview.h:41: error: previous declaration of 'GimpPreviewClass' was here gimppreview.h:45: error: redefinition of 'struct _GimpPreviewClass' gimppreview.h:54: error: redefinition of 'struct _GimpPreview' and so on. (it seems to redefine the gimppreview widget which is already contained in Gimp) Has anybody a patch for refocus or did I miss something. Many thanks for a hint, ...
![]() |
| | LinkBack | Thread Tools |
|
#1
| |||
| |||
| but had no luck. After a lot of warnings I get the error message In file included from refocus.c:32: gimppreview.h:40: error: redefinition of typedef 'GimpPreview' /usr/include/gimp-2.0/libgimpwidgets/gimpwidgetstypes.h:64: error: previous declaration of 'GimpPreview' was here gimppreview.h:41: error: redefinition of typedef 'GimpPreviewClass' /usr/include/gimp-2.0/libgimpwidgets/gimppreview.h:41: error: previous declaration of 'GimpPreviewClass' was here gimppreview.h:45: error: redefinition of 'struct _GimpPreviewClass' gimppreview.h:54: error: redefinition of 'struct _GimpPreview' and so on. (it seems to redefine the gimppreview widget which is already contained in Gimp) Has anybody a patch for refocus or did I miss something. Many thanks for a hint, Helmut Jarausch Lehrstuhl fuer Numerische Mathematik RWTH - Aachen University D 52056 Aachen, Germany |
|
#2
| |||
| |||
| Hi Helmut, Helmut Jarausch wrote: > I tried to install refocus-0.9.0 with my gimp (cvs) > but had no luck. After a lot of warnings I get the error message > In file included from refocus.c:32: > gimppreview.h:40: error: redefinition of typedef 'GimpPreview' > /usr/include/gimp-2.0/libgimpwidgets/gimpwidgetstypes.h:64: error: > previous declaration of 'GimpPreview' was here > gimppreview.h:41: error: redefinition of typedef 'GimpPreviewClass' > /usr/include/gimp-2.0/libgimpwidgets/gimppreview.h:41: error: previous > declaration of 'GimpPreviewClass' was here > gimppreview.h:45: error: redefinition of 'struct _GimpPreviewClass' > gimppreview.h:54: error: redefinition of 'struct _GimpPreview' > > and so on. > (it seems to redefine the gimppreview widget which is already contained > in Gimp) > Has anybody a patch for refocus or did I miss something. > This helped me 1 1/2 year ago: <http://www.mail-archive.com/gimp-developer@lists.xcf.berkeley.edu/msg07180.html> Dont know if it works nowadays, currently I am setting up a completely fresh linux and gimp installation. Also the archives at sourceforge should help, compiling and installation problems with this plugin are common, because it is not actively maintained. Thats a pity, if you get it to work, probably you would be very pleased with speed and results. (I was) Please report, if you have success, I will go and try this myself some time later. Peter |
|
#3
| |||
| |||
| Peter Heckert wrote: > Hi Helmut, > > Helmut Jarausch wrote: >> I tried to install refocus-0.9.0 with my gimp (cvs) >> but had no luck. After a lot of warnings I get the error message >> In file included from refocus.c:32: >> gimppreview.h:40: error: redefinition of typedef 'GimpPreview' >> /usr/include/gimp-2.0/libgimpwidgets/gimpwidgetstypes.h:64: error: >> previous declaration of 'GimpPreview' was here >> gimppreview.h:41: error: redefinition of typedef 'GimpPreviewClass' >> /usr/include/gimp-2.0/libgimpwidgets/gimppreview.h:41: error: previous >> declaration of 'GimpPreviewClass' was here >> gimppreview.h:45: error: redefinition of 'struct _GimpPreviewClass' >> gimppreview.h:54: error: redefinition of 'struct _GimpPreview' >> >> and so on. >> (it seems to redefine the gimppreview widget which is already >> contained in Gimp) >> Has anybody a patch for refocus or did I miss something. >> > > This helped me 1 1/2 year ago: > <http://www.mail-archive.com/gimp-developer@lists.xcf.berkeley.edu/msg07180.html> > > > > Thats a pity, if you get it to work, probably you would be very pleased > with speed and results. (I was) > Please report, if you have success, I will go and try this myself some > time later. Thanks for the link. Unfortunately refocus has it's own version of gimppreview which is incompatible with that coming with recent versions of Gimp. So, one probably has to rewrite some parts of this plugin. Since I have no experience in writing plugins for Gimp, that's too much for me at the moment. Helmut. -- Helmut Jarausch Lehrstuhl fuer Numerische Mathematik RWTH - Aachen University D 52056 Aachen, Germany |
|
#4
| |||
| |||
| Hi, Helmut Jarausch wrote: > I tried to install refocus-0.9.0 with my gimp (cvs) > but had no luck. After a lot of warnings I get the error message > In file included from refocus.c:32: > gimppreview.h:40: error: redefinition of typedef 'GimpPreview' [snip] > Has anybody a patch for refocus or did I miss something. > I have made a hacked version that compiles with gimp-2.2. Be sure to read the README file. There is still a linking issue that currently needs a workaround. Any hints howto resolve this remaining issue are welcome. <http://hphsite.de/refocus> Peter |
|
#5
| |||
| |||
| Peter Heckert wrote: > Hi, > > Helmut Jarausch wrote: >> I tried to install refocus-0.9.0 with my gimp (cvs) >> but had no luck. After a lot of warnings I get the error message >> In file included from refocus.c:32: >> gimppreview.h:40: error: redefinition of typedef 'GimpPreview' > [snip] >> Has anybody a patch for refocus or did I miss something. >> > I have made a hacked version that compiles with gimp-2.2. > Be sure to read the README file. > > There is still a linking issue that currently needs a workaround. > Any hints howto resolve this remaining issue are welcome. > > <http://hphsite.de/refocus> > Hi , great, it works with gimp-cvs-061217 !!! Unfortunately I got around learning the autoconf/automake system, as well. But the following hack works for me. Before configuring edit src/Makefile.{in,am} replace -lgimp by -lgimp-2.0 (not necessary but helpful ![]() after configure edit Makefile src/Makefile replace gcc by gcc -O3 -march=<YOUR ARCH> (or add a CFLAGS_OPT somewhere) after make / make install here on my Gentoo system ln -s /usr/bin/refocus /usr/lib/gimp/2.0/plug-ins Now, the plugin is loaded automatically and works just fine! Many thanks again, Helmut. -- Helmut Jarausch Lehrstuhl fuer Numerische Mathematik RWTH - Aachen University D 52056 Aachen, Germany |
![]() |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| my very own refocus question | usenet | Graphics | 4 | 12-13-2006 04:00 PM |
| refocus | usenet | Graphics | 0 | 12-09-2006 08:58 PM |
| refocus it | usenet | Graphics | 0 | 12-08-2006 07:02 PM |
| How to install UFRAW as Gimp-Plugin | usenet | Graphics | 8 | 02-18-2006 07:05 PM |
| Install Perl-o-tine in Gimp Windows | usenet | Graphics | 3 | 11-20-2005 05:24 AM |





