Objectmix
Tags Register Mark Forums Read

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, ...


Object Mix > Theory and Concepts > Graphics > refocus - how to install with gimp-2.3.x

Reply

 

LinkBack Thread Tools
  #1  
Old 12-14-2006, 11:52 AM
Junior Member
 
Join Date: Nov 2009
Posts: 0
Application Development is on a distinguished road
Default refocus - how to install with gimp-2.3.x

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,

Helmut Jarausch

Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany
Reply With Quote
  #2  
Old 12-14-2006, 01:50 PM
Junior Member
 
Join Date: Nov 2009
Posts: 0
Application Development is on a distinguished road
Default Re: refocus - how to install with gimp-2.3.x

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
Reply With Quote
  #3  
Old 12-15-2006, 04:02 AM
Junior Member
 
Join Date: Nov 2009
Posts: 0
Application Development is on a distinguished road
Default Re: refocus - how to install with gimp-2.3.x

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
Reply With Quote
  #4  
Old 12-16-2006, 07:03 PM
Junior Member
 
Join Date: Nov 2009
Posts: 0
Application Development is on a distinguished road
Default Re: refocus - how to install with gimp-2.3.x

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
Reply With Quote
  #5  
Old 12-17-2006, 08:43 AM
Junior Member
 
Join Date: Nov 2009
Posts: 0
Application Development is on a distinguished road
Default Re: refocus - how to install with gimp-2.3.x

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
Reply With Quote
Reply

Thread Tools


Similar Threads

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


All times are GMT -5. The time now is 07:50 PM.