[Gimp-developer] trouble running autocrop from plug-in

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I've been attempting to call the autocrop plug-in from within a C plug-in, but to no avail. My syntax is:

GimpDrawable *drawable;
...
plug_in_autocrop(image, *drawable);

and the error I get from running gimptool --install-admin on my plug-in is

'undefined reference to plug-in autocrop'

The includes and libraries that gimptool echos when run are:

-I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include

-L/usr/lib -lgimpui -lgimp -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXi -lXext -lX11 -lm

Attempting to run the plug-in with the alternate syntax:

drawable->autocrop();

generates the error

'structure has no member named 'autocrop'

If I try to run it with gimp_run_procedure, I get a segmentation fault.

Any thoughts about what I might be doing wrong?

TIA,
Cindy Huyser



[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux