[Gimp-user] Compiling refocus

2005-08-06 Thread Don Rozenberg

Hi,

I hope that this is going to the correct place, i.e, response to 
"Compiling refocus".


When I went to Gimp 2.2.6, I found that refocus would not compile.  
There were name clashes between the preview code in refocus and the Gimp 
preview code.  I modified refocus so that it would compile.  My modified 
code and discussion can be found at html://page.sourceforge.net.  The 
url for the tar file is 
http://page.sourceforge.net/refocus-0.9.0_gimp2_rozen.tgz


I hope that this helps.

Don

--
Don Rozenberg
707-882-3601
[EMAIL PROTECTED]

___
Gimp-user mailing list
Gimp-user@lists.xcf.berkeley.edu
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user


Re: [Gimp-user] Compiling refocus

2005-08-04 Thread falolaf
I have had the same problem on Mandriva 2005LE. Now I'm running 2.2.8
with a working refocus.

I had to configure it with --prefix=/usr for it to work. I'm sure it's
possible to do it with some lib path but I didn't know how, and this
prefix worked so I didn't look moore in to it.


/Anders

wayne wrote:
> On Thursday 04 August 2005 12:53 pm, [EMAIL PROTECTED] wrote:
> 
> 
>>On Thu, Aug 04, 2005 at 11:40:14AM -1000, wayne wrote:
>>
>>>On Thursday 04 August 2005 07:00 am, Raphaël Quinet wrote:
>>>
It is very likely that you have not installed the development
packages on your system (probably called gtk-devel, gimp-devel
or something similar).  These packages contain the header files
such as gtk.h that are necessary for compiling programs.
>>>
>>>Still haven't been able to compile refocus.
>>>I tried installing libgtkmm.2.4_1-devel-2.6.1-1mdk  and
>>>libgtk+1.2-devel-1.2.10-41mdk but so far no change.
>>
>>You are still missing gimp-devel.
>>
> 
> 
> I've got libgimp2.0-devel-2.2.4 installed. Can't find any gimp-devel for 
> Mandrake/Mandriva.
> 
> Wayne
> ___
> Gimp-user mailing list
> Gimp-user@lists.xcf.berkeley.edu
> http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user
> 
___
Gimp-user mailing list
Gimp-user@lists.xcf.berkeley.edu
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user


Re: [Gimp-user] Compiling refocus

2005-08-04 Thread wayne
On Thursday 04 August 2005 12:53 pm, [EMAIL PROTECTED] wrote:

> On Thu, Aug 04, 2005 at 11:40:14AM -1000, wayne wrote:
> > On Thursday 04 August 2005 07:00 am, Raphaël Quinet wrote:
> > > It is very likely that you have not installed the development
> > > packages on your system (probably called gtk-devel, gimp-devel
> > > or something similar).  These packages contain the header files
> > > such as gtk.h that are necessary for compiling programs.
> >
> > Still haven't been able to compile refocus.
> > I tried installing libgtkmm.2.4_1-devel-2.6.1-1mdk  and
> > libgtk+1.2-devel-1.2.10-41mdk but so far no change.
>
> You are still missing gimp-devel.
>

I've got libgimp2.0-devel-2.2.4 installed. Can't find any gimp-devel for 
Mandrake/Mandriva.

Wayne
___
Gimp-user mailing list
Gimp-user@lists.xcf.berkeley.edu
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user


Re: [Gimp-user] Compiling refocus

2005-08-04 Thread patman
On Thu, Aug 04, 2005 at 11:40:14AM -1000, wayne wrote:
> On Thursday 04 August 2005 07:00 am, Raphaël Quinet wrote:

> > It is very likely that you have not installed the development
> > packages on your system (probably called gtk-devel, gimp-devel
> > or something similar).  These packages contain the header files
> > such as gtk.h that are necessary for compiling programs.

> Still haven't been able to compile refocus.
> I tried installing libgtkmm.2.4_1-devel-2.6.1-1mdk  and 
> libgtk+1.2-devel-1.2.10-41mdk but so far no change.

You are still missing gimp-devel.

> checking for GIMP - version >= 1.2.0... no
> *** The gimptool script installed by GIMP could not be found
> *** If GIMP was installed in PREFIX, make sure PREFIX/bin is in
> *** your path, or set the GIMPTOOL environment variable to the
> *** full path to gimptool.

> -fomit-frame-pointer -O3 -funroll-all-loops -c refocus.c
> refocus.c:27:26: libgimp/gimp.h: No such file or directory
> In file included from refocus.c:32:

___
Gimp-user mailing list
Gimp-user@lists.xcf.berkeley.edu
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user


Re: [Gimp-user] Compiling refocus

2005-08-04 Thread wayne
On Thursday 04 August 2005 07:00 am, Raphaël Quinet wrote:

> On Thu, 04 Aug 2005 06:15:38 -1000, wayne <[EMAIL PROTECTED]> wrote:
> > I tried to compile the refocus plugin but failed. Can anyone translate
> > this and tell me what I'm missing? I'm running GIMP 2.2.4. Here's the
> > output from ./configure:
>
> [...]
>
> > checking for gimptool... (cached) no
> > checking for GIMP - version >= 1.2.0... no
> > *** The gimptool script installed by GIMP could not be found
> > *** If GIMP was installed in PREFIX, make sure PREFIX/bin is in
> > *** your path, or set the GIMPTOOL environment variable to the
> > *** full path to gimptool.
> > checking for pkg-config... (cached) /usr/bin/pkg-config
> > checking for GTK+ - version >= 2.0.0... no
> > *** Could not run GTK+ test program, checking why...
>
> [...]
>
> > configure:1836:21: gtk/gtk.h: No such file or directory
>
> [...]
>
> It is very likely that you have not installed the development
> packages on your system (probably called gtk-devel, gimp-devel
> or something similar).  These packages contain the header files
> such as gtk.h that are necessary for compiling programs.
>
> If you have these files because you have compiled and installed
> these libraries from sources, then you may have to tell
> pkg-config where to find them (using PKG_CONFIG_PATH).
>
> -Raphaël

Still haven't been able to compile refocus.
I tried installing libgtkmm.2.4_1-devel-2.6.1-1mdk  and 
libgtk+1.2-devel-1.2.10-41mdk but so far no change.

$ ./configure
creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... found
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc3... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for ranlib... ranlib
checking for clapack_dgesv in -llapack... no
using unoptimized lapack in lib
checking for gimptool... no
checking for GIMP - version >= 1.2.0... no
*** The gimptool script installed by GIMP could not be found
*** If GIMP was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GIMPTOOL environment variable to the
*** full path to gimptool.
checking for pkg-config... /usr/bin/pkg-config
checking for GTK+ - version >= 2.0.0... yes (version 2.6.4)
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for GLIB - version >= 2.0.0... yes (version 2.6.3)
checking for gtkdoc-mkdb... false
checking for erf in -lm... yes
updating cache ./config.cache
creating ./config.status
creating Makefile
creating src/Makefile
creating lib/Makefile
creating doc/Makefile
creating gtk-doc/Makefile


Here's my make install-bin

$ make install-bin
cd src; make install-bin
make[1]: Entering directory `/home/wayne/rpm/refocus-0.9.0/src'
gcc -DPACKAGE=\"refocus\" -DVERSION=\"0.9.0\" -DSTDC_HEADERS=1 -DHAVE_ERF=1  
-I. -I.  -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -I/usr/include/gtk-2.0 
-I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 
-I/usr/include/pango-1.0 -I/usr/include/freetype2 
-I/usr/include/freetype2/freetype2 
-I/usr/include/freetype2/freetype2/config -I/usr/include/glib-2.0 
-I/usr/lib/glib-2.0/include-I ../lib-Wall -ansi -pedantic -ggdb 
-fomit-frame-pointer -O3 -funroll-all-loops -c refocus.c
refocus.c:27:26: libgimp/gimp.h: No such file or directory
In file included from refocus.c:32:
gimppreview.h:29:28: libgimp/gimpui.h: No such file or directory
In file included from refocus.c:32:
gimppreview.h:58: error: syntax error before "GimpDrawable"
gimppreview.h:58: warning: no semicolon at end of struct or union
gimppreview.h:75: error: syntax error before '}' token
gimppreview.h:75: warning: ISO C does not allow extra `;' outside of a 
function
gimppreview.h:111: error: syntax error before '*' token
gimppreview.h:112: error: syntax error before '*' token
gimppreview.h:119: error: syntax error before "GimpImageType"
gimppreview.h:124: error: syntax error before "GimpImageType"
In file included from refocus.c:34:
prevman.h:45: error: syntax error before "GimpDrawable"
prevman.h:45: warning: no semicolon at end of struct or union
prevman.h:45: warning: no semicolon at end of struct or union
prevman.h:45: warning: no semicolon at end of struct or union
prevman.h:46: warning: type defaults to `int' in declaration of `pixel_rgn'
prevman.h:46: error: ISO C forbids data definition with no type or storage 
class
prevman.h:48: warning: type defaults to `int' in declaration of `drw'
prevman.h:48: error: ISO C forbids data definition with no type or storage

Re: [Gimp-user] Compiling refocus

2005-08-04 Thread Raphaël Quinet
On Thu, 04 Aug 2005 06:15:38 -1000, wayne <[EMAIL PROTECTED]> wrote:
> I tried to compile the refocus plugin but failed. Can anyone translate this 
> and tell me what I'm missing? I'm running GIMP 2.2.4. Here's the output 
> from ./configure:
[...]
> checking for gimptool... (cached) no
> checking for GIMP - version >= 1.2.0... no
> *** The gimptool script installed by GIMP could not be found
> *** If GIMP was installed in PREFIX, make sure PREFIX/bin is in
> *** your path, or set the GIMPTOOL environment variable to the
> *** full path to gimptool.
> checking for pkg-config... (cached) /usr/bin/pkg-config
> checking for GTK+ - version >= 2.0.0... no
> *** Could not run GTK+ test program, checking why...
[...]
> configure:1836:21: gtk/gtk.h: No such file or directory
[...]

It is very likely that you have not installed the development
packages on your system (probably called gtk-devel, gimp-devel
or something similar).  These packages contain the header files
such as gtk.h that are necessary for compiling programs.

If you have these files because you have compiled and installed
these libraries from sources, then you may have to tell
pkg-config where to find them (using PKG_CONFIG_PATH).

-Raphaël
___
Gimp-user mailing list
Gimp-user@lists.xcf.berkeley.edu
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user


[Gimp-user] Compiling refocus

2005-08-04 Thread wayne
I tried to compile the refocus plugin but failed. Can anyone translate this 
and tell me what I'm missing? I'm running GIMP 2.2.4. Here's the output 
from ./configure:

$ ./configure
loading cache ./config.cache
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... found
checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc3... no
checking how to run the C preprocessor... (cached) gcc -E
checking for ANSI C header files... (cached) yes
checking for ranlib... (cached) ranlib
checking for clapack_dgesv in -llapack... (cached) no
using unoptimized lapack in lib
checking for gimptool... (cached) no
checking for GIMP - version >= 1.2.0... no
*** The gimptool script installed by GIMP could not be found
*** If GIMP was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GIMPTOOL environment variable to the
*** full path to gimptool.
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for GTK+ - version >= 2.0.0... no
*** Could not run GTK+ test program, checking why...
*** The test program failed to compile or link. See the file config.log for 
the
*** exact error that occured. This usually means GTK+ was incorrectly 
installed
*** or that you have moved GTK+ since it was installed. In the latter case, 
you
*** may want to edit the pkg-config script: /usr/bin/pkg-config
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for GLIB - version >= 2.0.0... yes (version 2.6.3)
checking for gtkdoc-mkdb... (cached) false
checking for erf in -lm... (cached) yes
creating ./config.status
creating Makefile
creating src/Makefile
creating lib/Makefile
creating doc/Makefile
creating gtk-doc/Makefile


Here's my config.log file:

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:573: checking for a BSD compatible install
configure:626: checking whether build environment is sane
configure:683: checking whether make sets ${MAKE}
configure:729: checking for working aclocal
configure:742: checking for working autoconf
configure:755: checking for working automake
configure:768: checking for working autoheader
configure:781: checking for working makeinfo
configure:798: checking for gcc
configure:911: checking whether the C compiler (gcc  ) works
configure:927: gcc -o conftestconftest.c  1>&5
configure:953: checking whether the C compiler (gcc  ) is a cross-compiler
configure:958: checking whether we are using GNU C
configure:986: checking whether gcc accepts -g
configure:1020: checking for gcc3
configure:1053: checking how to run the C preprocessor
configure:1133: checking for ANSI C header files
configure:1239: checking for ranlib
configure:1271: checking for clapack_dgesv in -llapack
configure:1377: checking for gimptool
configure:1412: checking for GIMP - version >= 1.2.0
configure:1644: checking for pkg-config
configure:1692: checking for GTK+ - version >= 2.0.0
configure:1844: gcc -o conftest -g -O2conftest.c   1>&5
configure:1836:21: gtk/gtk.h: No such file or directory
configure: In function `main':
configure:1840: error: `gtk_major_version' undeclared (first use in this 
function)
configure:1840: error: (Each undeclared identifier is reported only once
configure:1840: error: for each function it appears in.)
configure:1840: error: `gtk_minor_version' undeclared (first use in this 
function)
configure:1840: error: `gtk_micro_version' undeclared (first use in this 
function)
configure: failed program was:
#line 1834 "configure"
#include "confdefs.h"

#include 
#include 

int main() {
 return ((gtk_major_version) || (gtk_minor_version) || 
(gtk_micro_version));
; return 0; }
configure:1905: checking for pkg-config
configure:1955: checking for GLIB - version >= 2.0.0
configure:2069: gcc -o conftest  -I/usr/include/glib-2.0 
-I/usr/lib/glib-2.0/include conftest.c -lglib-2.01>&5
configure:2177: checking for gtkdoc-mkdb
configure:2278: checking for erf in -lm

Thanks,
Wayne
___
Gimp-user mailing list
Gimp-user@lists.xcf.berkeley.edu
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user