-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sunday 02 May 2004 20:39, Sven Neumann wrote:

Hi Sven,

> Start gimp with the --verbose command-line option and check if it's
> seeing your plug-in at all.

Did that. The Plugin is recognized. Just the loading fails ist sais:
...
INIT: gimp_real_restore
Plugin »/home/stephan/.gimp-2.0/plug-ins/refocus« wird abgefragt

(gimp-2.0:6855): LibGimpBase-WARNING **: gimp-2.0: wire_read(): error
...
(Sorry for the german gibberish. To lazy to change local...)

> We didn't change the way that plug-ins are 
> registered, so I don't know what could be causing this. I'd have to
> have a look at the source.

The plugin in question is 'refocus' by Ernst Lippe. The whole lot is quite a 
fair bit but this is query():

MAIN ()
void query (void)
{
  static GimpParamDef args[] = {
    {GIMP_PDB_INT32, "run_mode", "Interactive, non-interactive"},
    {GIMP_PDB_IMAGE, "image", "Input image (unused)"},
    {GIMP_PDB_DRAWABLE, "drawable", "Input drawable"},
    {GIMP_PDB_INT32, "mat_size", "Size of matrix"},
    {GIMP_PDB_FLOAT, "radius", "Circle radius"},
    {GIMP_PDB_FLOAT, "gauss", "Parameter for Gaussian convolution"},
    {GIMP_PDB_FLOAT, "correlation", "Correlation"},
    {GIMP_PDB_FLOAT, "noise", "Noise to Signal ratio"},
  };
  static GimpParamDef *return_vals = NULL;
  static gint nargs = (gint) (sizeof (args) / sizeof (args[0]));
  static gint nreturn_vals = 0;

  gimp_install_procedure ("plug_in_refocus",
                          "Refocus with FIR Wiener Deconvolution",
                          "refocus!",
                          "Ernst Lippe",
                          "Ernst Lippe",
                          "1999",
                          "<Image>/Filters/Enhance/Refocus...",
                          "RGB*, GRAY*",
                          GIMP_PLUGIN,
                          nargs, nreturn_vals,
                          args, return_vals);

}

It is almost untouched by any modifications.
Looks just like in all the other plugins to me.
I assume the problem might be the Makefile:

...

CC = gcc
GCC3 = gcc
GIMPTOOL = /usr/local/bin/gimptool-2.0
GIMP_CFLAGS = -g -O2 -Wall -I/usr/local/include/gimp-2.0 
- -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 
- -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 
- -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
GIMP_CFLAGS_NOUI = -I/usr/local/include/gimp-2.0 -I/usr/include/glib-2.0 
- -I/usr/lib/glib-2.0/include
GIMP_DATA_DIR = /usr/local/share/gimp/2.0
GIMP_LIBS = -L/usr/local/lib -lgimpui-2.0 -lgimpwidgets-2.0 -lgimp-2.0 
- -lgimpcolor-2.0 -lgimpmath-2.0 -lgimpbase-2.0 -Wl,--export-dynamic 
- -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 
- -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
GIMP_LIBS_NOUI = -L/usr/local/lib -lgimp-2.0 -lgimpcolor-2.0 -lgimpmath-2.0 
- -lgimpbase-2.0 -lgobject-2.0 -lglib-2.0
GIMP_PLUGIN_DIR = /usr/local/lib/gimp/2.0
GLIB_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include  
GLIB_GENMARSHAL = glib-genmarshal
GLIB_LIBS = -lglib-2.0  
GLIB_MKENUMS = glib-mkenums
GOBJECT_QUERY = gobject-query
GTKDOC = false
GTK_CFLAGS = -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include 
- -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/X11R6/include 
- -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include  
GTK_LIBS = -Wl,--export-dynamic -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 
- -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 
- -lgmodule-2.0 -ldl -lglib-2.0  
HTML_DIR = ${datadir}/gtk-doc/html
LAPACK_INCLUDE_DIR = ${top_srcdir}/lib
LAPACK_LIB_DIR = ${top_srcdir}/lib
MAKEINFO = makeinfo
PACKAGE = refocus
PKG_CONFIG = /usr/bin/pkg-config
RANLIB = ranlib
VERSION = 0.9.0
#GTK_DOC_DIR = #gtk-doc
GTK_DOC_DIR = 
...
 

Can you see anything wron in the compiler or linker options?
I had to change ./configure's options to override the old gimp settings. 

Thanks a lot!

    Stephan


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQFAlUNrbv5p9h9J588RAu5PAKDGjM0LsNW7++ePX5MBtPPmKmEMuwCfT+bP
aH7xXsGWuH/E/LfN7O/rHoc=
=GcAq
-----END PGP SIGNATURE-----
_______________________________________________
Gimp-developer mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer

Reply via email to