RSS/Atom feed Twitter
Site is read-only, email is disabled

Plugin compilation problems on 64 bit system

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

4 of 4 messages available
Toggle history

Please log in to manage your subscriptions.

Plugin compilation problems on 64 bit system David Hodson 24 May 15:33
  Plugin compilation problems on 64 bit system Sven Neumann 25 May 08:31
   Plugin compilation problems on 64 bit system David Hodson 25 May 09:56
    Plugin compilation problems on 64 bit system Sven Neumann 25 May 18:56
David Hodson
2007-05-24 15:33:58 UTC (almost 17 years ago)

Plugin compilation problems on 64 bit system

I've just received an email from someone who's getting link errors while trying to compile my DBP plugin on the following setup:

system Fedora FC6 2.6.20-1.2944.fc6 x86_64 GNU/Linux
running gimp 2.2.14
gimp devel is installed

The DBP makefile uses "gimptool-2.0 --cflags --libs" to get the compile and link options. His compile line looks plausible:

g++ -o dbp -Wall -O2 -I. *.cc -I/usr/include/gimp-2.0 -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -L/usr/lib64 -lgimpui-2.0 -lgimpwidgets-2.0 -lgimp-2.0 -lgimpcolor-2.0 -lgimpmath-2.0 -lgimpbase-2.0 -L/lib64 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -DGIMP_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED

But gives this error:

/usr/lib64/libgimpui-2.0.a(gimpui.o): In function `gimp_ensure_modules': (.text+0x18f): undefined reference to `gimp_module_db_new' /usr/lib64/libgimpui-2.0.a(gimpui.o): In function `gimp_ensure_modules': (.text+0x1a1): undefined reference to `gimp_module_db_set_load_inhibit' /usr/lib64/libgimpui-2.0.a(gimpui.o): In function `gimp_ensure_modules': (.text+0x1b0): undefined reference to `gimp_module_db_load' collect2: ld returned 1 exit status

I haven't seen this before, and Google is unhelpful - any thoughts?

Sven Neumann
2007-05-25 08:31:16 UTC (almost 17 years ago)

Plugin compilation problems on 64 bit system

Hi,

On Thu, 2007-05-24 at 23:33 +1000, David Hodson wrote:

I've just received an email from someone who's getting link errors while trying to compile my DBP plugin on the following setup:

system Fedora FC6 2.6.20-1.2944.fc6 x86_64 GNU/Linux
running gimp 2.2.14
gimp devel is installed

Most probably a confusion with the development version. Is he/she trying to compile against gimp-2.2 or gimp-2.3?

Sven

David Hodson
2007-05-25 09:56:54 UTC (almost 17 years ago)

Plugin compilation problems on 64 bit system

Sven Neumann wrote:

Most probably a confusion with the development version. Is he/she trying to compile against gimp-2.2 or gimp-2.3?

Should be all gimp-2.2, AFAIK. I'll ask him to check that everything matches.

Sven Neumann
2007-05-25 18:56:34 UTC (almost 17 years ago)

Plugin compilation problems on 64 bit system

Hi,

On Fri, 2007-05-25 at 17:56 +1000, David Hodson wrote:

Should be all gimp-2.2, AFAIK. I'll ask him to check that everything matches.

I've checked gimptool-2.0 in the 2.2 branch and indeed the --libs output was missing the appropriate linker flags to also link against libgimpmodule. Since libgimpui uses symbols from libgimpmodule, plug-ins also need to link against it. I have now fixed this oversight in the gimp-2-2 branch and 2.2.15 (to be released soon) will have this fix.

I recommend though that you change your Makefile to use pkg-config instead of gimptool-2.0. The syntax is very similar and pkg-config is well established nowadays.

So instead of using gimptool-2.0 --cflags --libs
please use
pkg-config --cflags --libs gimpui-2.0

Sven