Re: [Gimp-developer] Re: Fw: [Gimp-user] Threshold Crop Plug-in

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

 



Hi Tor -

Sorry for the extra email, but one question:  When using gimptool as you
describe below, what is the correct approach for handling the
configuration-specific files such as config.h, gdkconfig.h, and glibconfig.h
which aren't in the normal include paths in the developer packages?  Should
I copy those files into their correspoding include subdirectories, or is
some other approach more appropriate?

Thanks again.

Regards,
Kevin M.


----- Original Message -----
From: "Tor Lillqvist" <tml@xxxxxx>
To: "gimp developers" <gimp-developer@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Wednesday, October 16, 2002 2:55 PM
Subject: [Gimp-developer] Re: Fw: [Gimp-user] Threshold Crop Plug-in


> Carol Spears writes:
>  > my first instinct is to tell you *not* to try to build anything for
gimp
>  > on windows.
>
> Actually, if a plug-in is reasonably portably written, building it on
> Windows isn't necessarily any more complicated than on Unix. To build
> and install a plug-in foobar:
>
> gimptool --install foobar.c
>
> This would run the command:
>
>
gcc -mpentiumpro -O4 -Wall -fnative-struct -I<top>/include -I<top>/lib/gtk+/
include -I<top>/include/glib-2.0 -I<top>/lib/glib-2.0/include   -I<top>/incl
ude -o <home>/.gimp-1.2/plug-ins/foobar.exe
foobar.c  -L/target/lib-mwindows -L<top>/lib -lgimpui -lgimp -Wl,--export-dy
namic -L<top>/lib -lgtk -lgdk -lgmodule-2.0 -lglib-2.0 -lintl -liconv
>
> or, if you use MSVC:
>
> set CC="cl -MD"
> set CFLAGS=""
> set LDFLAGS=""
> gimptool --msvc-syntax --install foobar.c
>
> This would run:
>
>
cl  -I<top>/include -I<top>/lib/gtk+/include -I<top>/include/glib-2.0 -I<top
>/lib/glib-2.0/include   -I<top>/include -Fe<home>/.gimp-1.2/plug-ins/foobar
.exe foobar.c -link  -subsystem:windows /libpath:<top>/lib gimpui.lib
gimp.lib /libpath:<top>/lib gtk.lib gdk.lib gmodule-2.0.lib glib-2.0.lib
intl.lib iconv.lib
>
> It is a bug in gimptool.exe as currently distributed that setting CC,
> CFLAGS and LDFLAGS as above is necessary. Gimptool should be able to
> figure out by itself that if the --msvc-syntax flag is given, it
> shouldn't try to use the configure-time CC, CFLAGS or LDFLAGS autoconf
> variables if those are intended for gcc and GNU ld.
>
> <top> above would be replaced by the top installation directory of
> GLib, GTK+ 1.3.0, GIMP etc, and <home> with your home directory.
>
> Like on Unix, this requires that you have installed the gimp,
> gtk+-1.3.0, glib-2.0 developer packages (containing for instance the
> gimptool program, and headers and import libraries), plus the libintl
> and iconv packages. (If the plug-in doesn't need libintl or libiconv,
> you can edit out those from the command line.)
>
> --tml
>
>
> _______________________________________________
> Gimp-developer mailing list
> Gimp-developer@xxxxxxxxxxxxxxxxxxxxxx
> http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer



[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