Compiling refocus
This discussion is connected to the gimp-user-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.
This is a read-only list on gimpusers.com so this discussion thread is read-only, too.
Compiling refocus | wayne | 04 Aug 18:15 |
Compiling refocus | Raphaël Quinet | 04 Aug 19:00 |
Compiling refocus | wayne | 04 Aug 23:40 |
Compiling refocus | patman@aracnet.com | 05 Aug 00:53 |
Compiling refocus | wayne | 05 Aug 01:51 |
Compiling refocus | falolaf | 05 Aug 07:36 |
Compiling refocus | Don Rozenberg | 07 Aug 06:01 |
Compiling refocus
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 conftest conftest.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 -O2 conftest.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.0 1>&5
configure:2177: checking for gtkdoc-mkdb
configure:2278: checking for erf in -lm
Thanks, Wayne
Compiling refocus
On Thu, 04 Aug 2005 06:15:38 -1000, wayne 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
Compiling refocus
On Thursday 04 August 2005 07:00 am, Raphaël Quinet wrote:
On Thu, 04 Aug 2005 06:15:38 -1000, wayne 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
class
prevman.h:54: error: syntax error before '}' token
prevman.h:55: warning: type defaults to `int' in declaration of `un'
prevman.h:55: error: ISO C forbids data definition with no type or storage
class
prevman.h:56: error: syntax error before '}' token
prevman.h:57: warning: type defaults to `int' in declaration of
`TileSource'
prevman.h:57: error: ISO C forbids data definition with no type or storage
class
prevman.h:72: error: syntax error before "GimpDrawable"
prevman.h:72: warning: no semicolon at end of struct or union
prevman.h:72: warning: no semicolon at end of struct or union
prevman.h:72: warning: no semicolon at end of struct or union
prevman.h:73: warning: type defaults to `int' in declaration of `pixel_rgn'
prevman.h:73: error: ISO C forbids data definition with no type or storage
class
prevman.h:75: warning: type defaults to `int' in declaration of `drw'
prevman.h:75: error: ISO C forbids data definition with no type or storage
class
prevman.h:81: error: syntax error before "GimpTile"
prevman.h:81: warning: no semicolon at end of struct or union
prevman.h:83: warning: type defaults to `int' in declaration of `prv'
prevman.h:83: error: conflicting types for 'prv'
prevman.h:53: error: previous declaration of 'prv' was here
prevman.h:83: error: ISO C forbids data definition with no type or storage
class
prevman.h:84: error: syntax error before '}' token
prevman.h:85: warning: type defaults to `int' in declaration of `un'
prevman.h:85: error: ISO C forbids data definition with no type or storage
class
prevman.h:86: error: syntax error before '}' token
prevman.h:87: warning: type defaults to `int' in declaration of `TileSink'
prevman.h:87: error: ISO C forbids data definition with no type or storage
class
prevman.h:90: error: syntax error before '*' token
prevman.h:93: error: syntax error before '*' token
prevman.h:93: error: syntax error before '*' token
prevman.h:94: warning: type defaults to `int' in declaration of
`tile_source_get_tile'
prevman.h:94: error: ISO C forbids data definition with no type or storage
class
prevman.h:97: error: syntax error before '*' token
prevman.h:100: error: syntax error before '*' token
prevman.h:103: error: syntax error before '*' token
prevman.h:106: error: syntax error before '*' token
prevman.h:108: error: syntax error before '*' token
prevman.h:108: error: syntax error before '*' token
prevman.h:109: warning: type defaults to `int' in declaration of
`tile_sink_get_tile'
prevman.h:109: error: ISO C forbids data definition with no type or storage
class
prevman.h:111: error: syntax error before '*' token
prevman.h:114: error: syntax error before '*' token
In file included from conv.h:27,
from refocus.c:36:
tilebuf.h:71: error: syntax error before "TileSource"
tilebuf.h:75: error: syntax error before "TileSource"
In file included from refocus.c:36:
conv.h:34: error: syntax error before '*' token
refocus.c:44: error: syntax error before '*' token
refocus.c:44: warning: type defaults to `int' in declaration of `drawable'
refocus.c:44: error: ISO C forbids data definition with no type or storage
class
refocus.c:50: error: syntax error before "GimpParam"
refocus.c:56: error: syntax error before "PLUG_IN_INFO"
refocus.c:56: warning: type defaults to `int' in declaration of
`PLUG_IN_INFO'
refocus.c:57: warning: initialization makes integer from pointer without a
cast
refocus.c:58: warning: excess elements in scalar initializer
refocus.c:58: warning: (near initialization for `PLUG_IN_INFO')
refocus.c:59: warning: excess elements in scalar initializer
refocus.c:59: warning: (near initialization for `PLUG_IN_INFO')
refocus.c:60: warning: excess elements in scalar initializer
refocus.c:60: warning: (near initialization for `PLUG_IN_INFO')
refocus.c:61: error: ISO C forbids data definition with no type or storage
class
refocus.c:101: warning: return type defaults to `int'
refocus.c: In function `MAIN':
refocus.c:102: error: storage class specified for parameter `query'
refocus.c:102: error: syntax error before '{' token
refocus.c:113: warning: type defaults to `int' in declaration of
`GimpParamDef'
refocus.c:113: error: storage class specified for parameter `GimpParamDef'
refocus.c:113: error: syntax error before '*' token
refocus.c:114: error: storage class specified for parameter `nargs'
refocus.c:114: error: parameter `nargs' is initialized
refocus.c:114: error: `args' undeclared (first use in this function)
refocus.c:114: error: (Each undeclared identifier is reported only once
refocus.c:114: error: for each function it appears in.)
refocus.c:114: confused by earlier errors, bailing out
make[1]: *** [refocus.o] Error 1
make[1]: Leaving directory `/home/wayne/rpm/refocus-0.9.0/src'
make: *** [install-bin] Error 2
Thanks,
Wayne
Mandriva2005LE
GIMP 2.2.4
Compiling refocus
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:
Compiling refocus
On Thursday 04 August 2005 12:53 pm, patman@aracnet.com 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
Compiling refocus
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, patman@aracnet.com 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
Compiling refocus
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