Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot compile on Ubuntu 21.04 #98

Open
hellocatfood opened this issue Jul 22, 2021 · 7 comments
Open

Cannot compile on Ubuntu 21.04 #98

hellocatfood opened this issue Jul 22, 2021 · 7 comments

Comments

@hellocatfood
Copy link

I have compiled GIMP on Ubuntu 21.04 via the official instructions and I'm trying to build the resynthesizer plugin against it and its libraries.

running ./autogen.sh goes well but after running make it doesn't compile. Here's my output

make
make  all-recursive
make[1]: Entering directory '/home/hellocatfood/Desktop/resynthesizer-deprecations'
Making all in lib
make[2]: Entering directory '/home/hellocatfood/Desktop/resynthesizer-deprecations/lib'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/hellocatfood/Desktop/resynthesizer-deprecations/lib'
Making all in src
make[2]: Entering directory '/home/hellocatfood/Desktop/resynthesizer-deprecations/src'
Making all in resynthesizer
make[3]: Entering directory '/home/hellocatfood/Desktop/resynthesizer-deprecations/src/resynthesizer'
gcc  -g -O2 -Wall   -o resynthesizer resynthesizer-resynthesizer.o resynthesizer-plugin.o resynthesizer-debug.o resynthesizer-pluginParams.o resynthesizer-drawable.o -L/home/hellocatfood/gimp_prefix/lib/x86_64-linux-gnu -L/home/hellocatfood/gimp_prefix/lib -lgimpui-3.0 -lgimpwidgets-3.0 -lgimpmodule-3.0 -lgimp-3.0 -lgimpmath-3.0 -lgimpconfig-3.0 -lgimpcolor-3.0 -lgimpbase-3.0 -lgegl-0.4 -lgegl-npd-0.4 -lm -Wl,--export-dynamic -lgmodule-2.0 -pthread -ljson-glib-1.0 -lbabl-0.1 -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 ../../lib/libresynthesizer.a -lm -lgthread-2.0 -lgthread-2.0 
/usr/bin/ld: resynthesizer-drawable.o: in function `bpp':
/home/hellocatfood/Desktop/resynthesizer-deprecations/src/resynthesizer/drawable.c:96: undefined reference to `gimp_drawable_bpp'
/usr/bin/ld: resynthesizer-drawable.o: in function `width':
/home/hellocatfood/Desktop/resynthesizer-deprecations/src/resynthesizer/drawable.c:97: undefined reference to `gimp_drawable_width'
/usr/bin/ld: resynthesizer-drawable.o: in function `height':
/home/hellocatfood/Desktop/resynthesizer-deprecations/src/resynthesizer/drawable.c:98: undefined reference to `gimp_drawable_height'
/usr/bin/ld: resynthesizer-drawable.o: in function `offsets':
/home/hellocatfood/Desktop/resynthesizer-deprecations/src/resynthesizer/drawable.c:136: undefined reference to `gimp_drawable_offsets'
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:409: resynthesizer] Error 1
make[3]: Leaving directory '/home/hellocatfood/Desktop/resynthesizer-deprecations/src/resynthesizer'
make[2]: *** [Makefile:351: all-recursive] Error 1
make[2]: Leaving directory '/home/hellocatfood/Desktop/resynthesizer-deprecations/src'
make[1]: *** [Makefile:406: all-recursive] Error 1
make[1]: Leaving directory '/home/hellocatfood/Desktop/resynthesizer-deprecations'
make: *** [Makefile:347: all] Error 2
@bootchk
Copy link
Owner

bootchk commented Jul 23, 2021

Which version of GIMP?  

It is known that the Resynthesizer master branch does not build against GIMP 2.99.x (the future 3.0.).

There is a branch of Resynthesizer that does build for GIMP 2.99.x but it is not recommended for use.  The branch exists only to test that Resynthesizer can work with GIMP 3.0.  More discussion can be found in other issue threads.

@hellocatfood
Copy link
Author

Verion 2.99.7, commit 58fd168f8e. I forgot to mention that I was trying to build the deprecations branch

@bootchk
Copy link
Owner

bootchk commented Jul 23, 2021 via email

@bootchk
Copy link
Owner

bootchk commented Jul 25, 2021

Something is wrong with your build system. I suspect it is not finding libgimp-3.0. The error messages are link time errors. The functions that failed to link e.g. gimp_drawable_bpp() are in libgimp-3.0 (but not in libgimp-2.0, the previous version of GIMP.)

This part of your link command alters the seach path for libraries:

-L/home/hellocatfood/gimp_prefix/lib

You might check that directory does contain libgimp-3.0.so. If not, somehow you need to fix your build system. I can't say more without more details because my build system is probably different.

I don't use the 'PREFIX' variables in my build system, so that it installs GIMP to the system standard place (e.g. /usr/local/lib but often some other place on a different distribution than Ubuntu ) And I try to avoid having more than one version of GIMP on the system where I build, precisely so that I don't have to worry about versions. I usually build in a container so that I can delete the whole thing and not worry about messing up my computer.

@hellocatfood
Copy link
Author

If you're able to provide your instructions on how you build gimp that would be useful so that I can compare. Right now I'm just going by the official instructions...

I'll also try installing system wide on a virtual machine to see if the problem still exists.

@bootchk
Copy link
Owner

bootchk commented Aug 7, 2021

I use a tool called vagga to build containers.
You write a script in the vagga language and vagga builds the container,
in userspace so you can delete entire filesystems without root privileges.
A container is basically a root or filesystem anyway.
The script also contains commands that you can run in the container.

See https://github.com/bootchk/GimpFu-v3.git/vaggaScripts/vaggaSimpleGimp.yaml
Which builds Gimp on Ubuntu.

There are many other scripts there, in various states of repair.
For example, I recently built Gimp on Alpine.
The scripts are more or less understandable

Many other people write shell scripts to build GIMP.
But they don't isolate the build from your system.
Others use other containers, such as Docker, and run shell scripts in the container.
But I find vagga has a domain specific language tailored for building.

@hellocatfood
Copy link
Author

I'm trying to compile this again on a fresh install. I have manually compiled gimp 3.0 (commit f465209f03) and cloned the deprecations branch. It sadly still fails to compile

make
make  all-recursive
make[1]: Entering directory '/home/new/Desktop/resynthesizer'
Making all in lib
make[2]: Entering directory '/home/new/Desktop/resynthesizer/lib'
gcc -DHAVE_CONFIG_H -I. -I..  -I.. -pthread -I/usr/local/include/gimp-3.0 -I/usr/local/include/gegl-0.4 -I/usr/local/include/babl-0.1 -I/usr/include/json-glib-1.0 -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/harfbuzz -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/x86_64-linux-gnu -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/local/include -DGIMP_DISABLE_DEPRECATED  -g -O2 -Wall -MT libresynthesizer_a-imageSynth.o -MD -MP -MF .deps/libresynthesizer_a-imageSynth.Tpo -c -o libresynthesizer_a-imageSynth.o `test -f 'imageSynth.c' || echo './'`imageSynth.c
In file included from imageSynth.c:56:
adaptSimple.h:183:1: warning: ‘initBufferAndAntiAdapt’ defined but not used [-Wunused-function]
  183 | initBufferAndAntiAdapt(
      | ^~~~~~~~~~~~~~~~~~~~~~
mv -f .deps/libresynthesizer_a-imageSynth.Tpo .deps/libresynthesizer_a-imageSynth.Po
gcc -DHAVE_CONFIG_H -I. -I..  -I.. -pthread -I/usr/local/include/gimp-3.0 -I/usr/local/include/gegl-0.4 -I/usr/local/include/babl-0.1 -I/usr/include/json-glib-1.0 -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/harfbuzz -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/x86_64-linux-gnu -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/local/include -DGIMP_DISABLE_DEPRECATED  -g -O2 -Wall -MT libresynthesizer_a-engine.o -MD -MP -MF .deps/libresynthesizer_a-engine.Tpo -c -o libresynthesizer_a-engine.o `test -f 'engine.c' || echo './'`engine.c
In file included from engine.c:528:
refinerThreaded.h: In function ‘startThread’:
refinerThreaded.h:239:13: warning: Deprecated pre-processor symbol
  239 |   g_assert(g_thread_supported());
      |             ^~~~~~~~~~~~~~~~~~~~~            
In file included from engine.c:523:
At top level:
passes.h:55:1: warning: ‘estimatePixelsToSynth’ defined but not used [-Wunused-function]
   55 | estimatePixelsToSynth(TRepetionParameters repetition_params)
      | ^~~~~~~~~~~~~~~~~~~~~
mv -f .deps/libresynthesizer_a-engine.Tpo .deps/libresynthesizer_a-engine.Po
gcc -DHAVE_CONFIG_H -I. -I..  -I.. -pthread -I/usr/local/include/gimp-3.0 -I/usr/local/include/gegl-0.4 -I/usr/local/include/babl-0.1 -I/usr/include/json-glib-1.0 -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/harfbuzz -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/x86_64-linux-gnu -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/local/include -DGIMP_DISABLE_DEPRECATED  -g -O2 -Wall -MT libresynthesizer_a-engineParams.o -MD -MP -MF .deps/libresynthesizer_a-engineParams.Tpo -c -o libresynthesizer_a-engineParams.o `test -f 'engineParams.c' || echo './'`engineParams.c
mv -f .deps/libresynthesizer_a-engineParams.Tpo .deps/libresynthesizer_a-engineParams.Po
gcc -DHAVE_CONFIG_H -I. -I..  -I.. -pthread -I/usr/local/include/gimp-3.0 -I/usr/local/include/gegl-0.4 -I/usr/local/include/babl-0.1 -I/usr/include/json-glib-1.0 -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/harfbuzz -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/x86_64-linux-gnu -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/local/include -DGIMP_DISABLE_DEPRECATED  -g -O2 -Wall -MT libresynthesizer_a-imageFormat.o -MD -MP -MF .deps/libresynthesizer_a-imageFormat.Tpo -c -o libresynthesizer_a-imageFormat.o `test -f 'imageFormat.c' || echo './'`imageFormat.c
mv -f .deps/libresynthesizer_a-imageFormat.Tpo .deps/libresynthesizer_a-imageFormat.Po
gcc -DHAVE_CONFIG_H -I. -I..  -I.. -pthread -I/usr/local/include/gimp-3.0 -I/usr/local/include/gegl-0.4 -I/usr/local/include/babl-0.1 -I/usr/include/json-glib-1.0 -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/harfbuzz -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/x86_64-linux-gnu -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/local/include -DGIMP_DISABLE_DEPRECATED  -g -O2 -Wall -MT libresynthesizer_a-progress.o -MD -MP -MF .deps/libresynthesizer_a-progress.Tpo -c -o libresynthesizer_a-progress.o `test -f 'progress.c' || echo './'`progress.c
In file included from progress.h:9,
                 from progress.c:18:
passes.h:68:1: warning: ‘prepare_repetition_parameters’ defined but not used [-Wunused-function]
   68 | prepare_repetition_parameters(
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mv -f .deps/libresynthesizer_a-progress.Tpo .deps/libresynthesizer_a-progress.Po
rm -f libresynthesizer.a
ar cru libresynthesizer.a libresynthesizer_a-imageSynth.o libresynthesizer_a-engine.o libresynthesizer_a-engineParams.o libresynthesizer_a-imageFormat.o libresynthesizer_a-progress.o 
ar: `u' modifier ignored since `D' is the default (see `U')
ranlib libresynthesizer.a
make[2]: Leaving directory '/home/new/Desktop/resynthesizer/lib'
Making all in src
make[2]: Entering directory '/home/new/Desktop/resynthesizer/src'
Making all in resynthesizer
make[3]: Entering directory '/home/new/Desktop/resynthesizer/src/resynthesizer'
gcc -DHAVE_CONFIG_H -I. -I../..  -DLOCALEDIR=\""/usr/local/share/locale"\" -DDATADIR=\""/usr/local/share/resynthesizer"\" -I../.. -pthread -I/usr/local/include/gimp-3.0 -I/usr/local/include/gegl-0.4 -I/usr/local/include/babl-0.1 -I/usr/include/json-glib-1.0 -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/harfbuzz -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/x86_64-linux-gnu -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/local/include -I./../../lib -DGIMP_DISABLE_DEPRECATED  -g -O2 -Wall -MT resynthesizer-resynthesizer.o -MD -MP -MF .deps/resynthesizer-resynthesizer.Tpo -c -o resynthesizer-resynthesizer.o `test -f 'resynthesizer.c' || echo './'`resynthesizer.c
In file included from resynthesizer.c:114:
adaptGimp.h: In function ‘pixmap_from_drawable’:
adaptGimp.h:152:15: warning: unused variable ‘format’ [-Wunused-variable]
  152 |   const Babl *format;
      |               ^~~~~~
mv -f .deps/resynthesizer-resynthesizer.Tpo .deps/resynthesizer-resynthesizer.Po
gcc -DHAVE_CONFIG_H -I. -I../..  -DLOCALEDIR=\""/usr/local/share/locale"\" -DDATADIR=\""/usr/local/share/resynthesizer"\" -I../.. -pthread -I/usr/local/include/gimp-3.0 -I/usr/local/include/gegl-0.4 -I/usr/local/include/babl-0.1 -I/usr/include/json-glib-1.0 -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/harfbuzz -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/x86_64-linux-gnu -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/local/include -I./../../lib -DGIMP_DISABLE_DEPRECATED  -g -O2 -Wall -MT resynthesizer-plugin.o -MD -MP -MF .deps/resynthesizer-plugin.Tpo -c -o resynthesizer-plugin.o `test -f 'plugin.c' || echo './'`plugin.c
In file included from plugin.c:99:
resynthPDBv3.h: In function ‘resynthesizer_create_procedure’:
resynthPDBv3.h:123:45: warning: passing argument 4 of ‘gimp_image_procedure_new’ from incompatible pointer type [-Wincompatible-pointer-types]
  123 |                                             resynthesizer_run, NULL, NULL);
      |                                             ^~~~~~~~~~~~~~~~~
      |                                             |
      |                                             GimpValueArray * (*)(GimpProcedure *, GimpRunMode,  GimpImage *, GimpDrawable *, const GimpValueArray *, void *) {aka struct _GimpValueArray * (*)(struct _GimpProcedure *, GimpRunMode,  struct _GimpImage *, struct _GimpDrawable *, const struct _GimpValueArray *, void *)}
In file included from /usr/local/include/gimp-3.0/libgimp/gimp.h:49,
                 from plugin.c:4:
/usr/local/include/gimp-3.0/libgimp/gimpimageprocedure.h:88:66: note: expected ‘GimpRunImageFunc’ {aka ‘struct _GimpValueArray * (*)(struct _GimpProcedure *, GimpRunMode,  struct _GimpImage *, int,  struct _GimpDrawable **, const struct _GimpValueArray *, void *)’} but argument is of type ‘GimpValueArray * (*)(GimpProcedure *, GimpRunMode,  GimpImage *, GimpDrawable *, const GimpValueArray *, void *)’ {aka ‘struct _GimpValueArray * (*)(struct _GimpProcedure *, GimpRunMode,  struct _GimpImage *, struct _GimpDrawable *, const struct _GimpValueArray *, void *)’}
   88 |                                             GimpRunImageFunc  run_func,
      |                                             ~~~~~~~~~~~~~~~~~~^~~~~~~~

In file included from plugin.c:99:
resynthPDBv3.h: In function ‘new_gerror_for_resynthesizer_and_string’:
resynthPDBv3.h:207:21: warning: initialization of ‘GQuark *’ {aka ‘unsigned int *’} from ‘GQuark’ {aka ‘unsigned int’} makes pointer from integer without a cast [-Wint-conversion]
  207 |   GQuark * domain = g_quark_from_string("Resynthesizer");
      |                     ^~~~~~~~~~~~~~~~~~~
resynthPDBv3.h:208:30: warning: passing argument 1 of ‘g_error_new_literal’ makes integer from pointer without a cast [-Wint-conversion]
  208 |   return g_error_new_literal(domain, 0, msg);
      |                              ^~~~~~
      |                              |
      |                              GQuark * {aka unsigned int *}
In file included from /usr/include/glib-2.0/glib/gthread.h:33,
                 from /usr/include/glib-2.0/glib/gasyncqueue.h:32,
                 from /usr/include/glib-2.0/glib.h:32,
                 from /usr/include/glib-2.0/gobject/gbinding.h:28,
                 from /usr/include/glib-2.0/glib-object.h:22,
                 from /usr/local/include/gimp-3.0/libgimp/gimp.h:25,
                 from plugin.c:4:
/usr/include/glib-2.0/glib/gerror.h:196:48: note: expected ‘GQuark’ {aka ‘unsigned int’} but argument is of type ‘GQuark *’ {aka ‘unsigned int *’}
  196 | GError*  g_error_new_literal   (GQuark         domain,
      |                                 ~~~~~~~~~~~~~~~^~~~~~
In file included from plugin.c:99:
resynthPDBv3.h: In function ‘resynthesizer_run’:
resynthPDBv3.h:238:41: warning: passing argument 1 of ‘get_engine_specific_parameters’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
  238 |   if ( ! get_engine_specific_parameters(args, &pluginParameters) )
      |                                         ^~~~
In file included from resynthPDBv3.h:199,
                 from plugin.c:99:
pluginParams.h:53:21: note: expected ‘GimpValueArray *’ {aka ‘struct _GimpValueArray *’} but argument is of type ‘const GimpValueArray *’ {aka ‘const struct _GimpValueArray *’}
   53 |   GimpValueArray   *args,              // IN   // <<<<<
      |   ~~~~~~~~~~~~~~~~~~^~~~
In file included from plugin.c:99:
resynthPDBv3.h:242:7: warning: passing argument 1 of ‘inner_run’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
  242 |       name,
      |       ^~~~
In file included from resynthPDBv3.h:200,
                 from plugin.c:99:
resynthesizer.h:6:24: note: expected ‘gchar *’ {aka ‘char *’} but argument is of type ‘const gchar *’ {aka ‘const char *’}
    6 |   gchar *              name,
      |   ~~~~~~~~~~~~~~~~~~~~~^~~~
In file included from plugin.c:99:
resynthPDBv3.h:229:21: warning: unused variable ‘status’ [-Wunused-variable]
  229 |   GimpPDBStatusType status = GIMP_PDB_SUCCESS;
      |                     ^~~~~~
mv -f .deps/resynthesizer-plugin.Tpo .deps/resynthesizer-plugin.Po
gcc -DHAVE_CONFIG_H -I. -I../..  -DLOCALEDIR=\""/usr/local/share/locale"\" -DDATADIR=\""/usr/local/share/resynthesizer"\" -I../.. -pthread -I/usr/local/include/gimp-3.0 -I/usr/local/include/gegl-0.4 -I/usr/local/include/babl-0.1 -I/usr/include/json-glib-1.0 -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/harfbuzz -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/x86_64-linux-gnu -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/local/include -I./../../lib -DGIMP_DISABLE_DEPRECATED  -g -O2 -Wall -MT resynthesizer-debug.o -MD -MP -MF .deps/resynthesizer-debug.Tpo -c -o resynthesizer-debug.o `test -f 'debug.c' || echo './'`debug.c
debug.c: In function ‘debug’:
debug.c:11:3: warning: format not a string literal and no format arguments [-Wformat-security]
   11 |   g_printerr(message);
      |   ^~~~~~~~~~
mv -f .deps/resynthesizer-debug.Tpo .deps/resynthesizer-debug.Po
gcc -DHAVE_CONFIG_H -I. -I../..  -DLOCALEDIR=\""/usr/local/share/locale"\" -DDATADIR=\""/usr/local/share/resynthesizer"\" -I../.. -pthread -I/usr/local/include/gimp-3.0 -I/usr/local/include/gegl-0.4 -I/usr/local/include/babl-0.1 -I/usr/include/json-glib-1.0 -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/harfbuzz -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/x86_64-linux-gnu -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/local/include -I./../../lib -DGIMP_DISABLE_DEPRECATED  -g -O2 -Wall -MT resynthesizer-pluginParams.o -MD -MP -MF .deps/resynthesizer-pluginParams.Tpo -c -o resynthesizer-pluginParams.o `test -f 'pluginParams.c' || echo './'`pluginParams.c
mv -f .deps/resynthesizer-pluginParams.Tpo .deps/resynthesizer-pluginParams.Po
gcc -DHAVE_CONFIG_H -I. -I../..  -DLOCALEDIR=\""/usr/local/share/locale"\" -DDATADIR=\""/usr/local/share/resynthesizer"\" -I../.. -pthread -I/usr/local/include/gimp-3.0 -I/usr/local/include/gegl-0.4 -I/usr/local/include/babl-0.1 -I/usr/include/json-glib-1.0 -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/harfbuzz -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/x86_64-linux-gnu -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/local/include -I./../../lib -DGIMP_DISABLE_DEPRECATED  -g -O2 -Wall -MT resynthesizer-drawable.o -MD -MP -MF .deps/resynthesizer-drawable.Tpo -c -o resynthesizer-drawable.o `test -f 'drawable.c' || echo './'`drawable.c
drawable.c: In function ‘bpp’:
drawable.c:96:51: warning: implicit declaration of function ‘gimp_drawable_bpp’; did you mean ‘gimp_drawable_type’? [-Wimplicit-function-declaration]
   96 | gint          bpp(GimpDrawable *d)       { return gimp_drawable_bpp   (d); }
      |                                                   ^~~~~~~~~~~~~~~~~
      |                                                   gimp_drawable_type
drawable.c: In function ‘width’:
drawable.c:97:51: warning: implicit declaration of function ‘gimp_drawable_width’; did you mean ‘gimp_drawable_fill’? [-Wimplicit-function-declaration]
   97 | gint          width    (GimpDrawable *d) { return gimp_drawable_width (d); }
      |                                                   ^~~~~~~~~~~~~~~~~~~
      |                                                   gimp_drawable_fill
drawable.c: In function ‘height’:
drawable.c:98:51: warning: implicit declaration of function ‘gimp_drawable_height’; did you mean ‘gimp_drawable_get_height’? [-Wimplicit-function-declaration]
   98 | gint          height   (GimpDrawable *d) { return gimp_drawable_height(d); }
      |                                                   ^~~~~~~~~~~~~~~~~~~~
      |                                                   gimp_drawable_get_height
drawable.c: In function ‘offsets’:
drawable.c:136:3: warning: implicit declaration of function ‘gimp_drawable_offsets’; did you mean ‘gimp_drawable_offset’? [-Wimplicit-function-declaration]
  136 |   gimp_drawable_offsets( d, x, y );
      |   ^~~~~~~~~~~~~~~~~~~~~
      |   gimp_drawable_offset
drawable.c: In function ‘get_selection’:
drawable.c:145:55: warning: passing argument 1 of ‘gimp_item_get_image’ from incompatible pointer type [-Wincompatible-pointer-types]
  145 |   return gimp_image_get_selection(gimp_item_get_image(d));
      |                                                       ^
      |                                                       |
      |                                                       GimpDrawable * {aka struct _GimpDrawable *}
In file included from /usr/local/include/gimp-3.0/libgimp/gimp_pdb_headers.h:62,
                 from /usr/local/include/gimp-3.0/libgimp/gimp.h:67,
                 from drawable.c:4:
/usr/local/include/gimp-3.0/libgimp/gimpitem_pdb.h:43:66: note: expected ‘GimpItem *’ {aka ‘struct _GimpItem *’} but argument is of type ‘GimpDrawable *’ {aka ‘struct _GimpDrawable *’}
   43 | GimpImage*    gimp_item_get_image           (GimpItem           *item);
      |                                              ~~~~~~~~~~~~~~~~~~~~^~~~
drawable.c:145:10: warning: returning ‘GimpSelection *’ {aka ‘struct _GimpSelection *’} from a function with incompatible return type ‘GimpDrawable *’ {aka ‘struct _GimpDrawable *’} [-Wincompatible-pointer-types]
  145 |   return gimp_image_get_selection(gimp_item_get_image(d));
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mv -f .deps/resynthesizer-drawable.Tpo .deps/resynthesizer-drawable.Po
gcc  -g -O2 -Wall   -o resynthesizer resynthesizer-resynthesizer.o resynthesizer-plugin.o resynthesizer-debug.o resynthesizer-pluginParams.o resynthesizer-drawable.o -L/usr/local/lib/x86_64-linux-gnu -lgimpui-3.0 -lgimpwidgets-3.0 -lgimpmodule-3.0 -lgimp-3.0 -lgimpbase-3.0 -lgimpcolor-3.0 -lgimpconfig-3.0 -lgimpmath-3.0 -lgegl-0.4 -lgegl-npd-0.4 -lm -Wl,--export-dynamic -lgmodule-2.0 -pthread -ljson-glib-1.0 -lbabl-0.1 -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 ../../lib/libresynthesizer.a -lm -lgthread-2.0 -lgthread-2.0 
/usr/bin/ld: resynthesizer-drawable.o: in function `bpp':
/home/new/Desktop/resynthesizer/src/resynthesizer/drawable.c:96: undefined reference to `gimp_drawable_bpp'
/usr/bin/ld: resynthesizer-drawable.o: in function `width':
/home/new/Desktop/resynthesizer/src/resynthesizer/drawable.c:97: undefined reference to `gimp_drawable_width'
/usr/bin/ld: resynthesizer-drawable.o: in function `height':
/home/new/Desktop/resynthesizer/src/resynthesizer/drawable.c:98: undefined reference to `gimp_drawable_height'
/usr/bin/ld: resynthesizer-drawable.o: in function `offsets':
/home/new/Desktop/resynthesizer/src/resynthesizer/drawable.c:136: undefined reference to `gimp_drawable_offsets'
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:409: resynthesizer] Error 1
make[3]: Leaving directory '/home/new/Desktop/resynthesizer/src/resynthesizer'
make[2]: *** [Makefile:351: all-recursive] Error 1
make[2]: Leaving directory '/home/new/Desktop/resynthesizer/src'
make[1]: *** [Makefile:405: all-recursive] Error 1
make[1]: Leaving directory '/home/new/Desktop/resynthesizer'
make: *** [Makefile:346: all] Error 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants