From: Michael N. <mit...@cs...> - 2000-05-04 17:27:51
|
Frederic Vivien wrote: > > Robert L Krawitz <rl...@al...> writes: > > > Image_init is from the plugin itself. I don't know why you'd have a > > problem with that -- can you send us the exact error message. > > The reason is : because I am a dummy! I have re-done the experiments > this morning, cleanly. Here is the result : > > As reported before, the compilation of gimp_color_window.c fails because > of the compatibility problem : > gimp_color_window.c:78: warning: implicit declaration of function > `gimp_dialog_new' > gimp_color_window.c:79: `gimp_plugin_help_func' undeclared (first use in > this function > > I then remove gimp_color_window.c and gimp_color_window.o from the > makefile. Then the compilation of gimp_main_window.c fails like this > of gimp_color_window.c did. I then remove gimp_main_window.c and > gimp_main_window.o from the Makefile, clean everything and then the > compilation fails with: > > gcc -g -O2 -o print print-canon.o print-dither.o print-escp2.o > print-pcl.o print-ps.o print-util.o print.o > gtk_color_window.o gtk_main_window.o -L/usr/lib -lgimpui -lgimp > -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXi -lXext > -lX11 -lm > print.o: In function `do_print_dialog': > /home/frederic/Printer/print-3.1.3/print.c:651: undefined reference to > `gimp_create_main_window' > collect2: ld returned 1 exit status > make: *** [print] Error 1 > > Thus it looks (if I'm not mistaking once again) like it is not > possible to compile only the gtk version (print seems to be the only > binary using gtk_main_window... etc.). Yes, there was a buggy test for the required Gimp version in print_gimp.h, thus trying to build the Gimp-only ui for all Gimp 1.1.x versions. I have restricted the test to Gimp 1.1.16 or better so the current cvs version should build for everybody. Robert, I will add the code which requires Gimp 1.1.21 tonight (just in case you plan to make a release to day). bye, --Mitch |