tags:

views:

43

answers:

2

Hi, I'm beginner in Linux programming, I don't have much experience, I hope you can help me.

I need to create GIMP filter with ability to send and receive XMPP messages. I downloaded and installed GIMP plugin template from http://developer.gimp.org/plug-in-template.html , and it works. I also have Loudmouth XMPP plugin (sorry, I can't post more links) , and I would like to include that plugin in GIMP plugin template.

I was told that I have to add

PKG_CHECK_MODULES(LOUDMOUTH, loudmouth-1.0)
AC_SUBST(LOUDMOUTH_CFLAGS)
AC_SUBST(LOUDMOUTH_LIBS)

in configure.in. There I already have

PKG_CHECK_MODULES(GIMP,
gimp-2.0 >= $GIMP_REQUIRED_VERSION gimpui-2.0 >= $GIMP_REQUIRED_VERSION)

AC_SUBST(GIMP_CFLAGS)
AC_SUBST(GIMP_LIBS)

Also, I was told that I have to add LOUDMOUTH_CFLAGS and LOUDMOUTH_LIBS to src/Makefile.am. In Makefile.am I already have:

INCLUDES =\
-I$(top_srcdir) \
@GIMP_CFLAGS@ \
-I$(includedir)

LDADD = $(GIMP_LIBS)

How to write this? How to add this librabry in my project?

Thanks in a advance. Ilija

A: 

Just add @LOUDMOUTH_CFLAGS@ \ below the line @GIMP_CFLAGS@. As for the libs, try:

LDADD = $(GIMP_LIBS) @LOUDMOUTH_LIBS@

or

LOUDMOUTH_LIBS = @LOUDMOUTH_LIBS@
LDADD = $(GIMP_LIBS) $(LOUDMOUTH_LIBS)
Aaron Digulla
A: 

It doesn't help, I'm trying with different variations for hours.

When I try to ./configure, I don't see it checking for Loudmouth libs.

Do I need to add loudmouth folder somewhere in the project?

Aaron, if you have some free time, can you try this at home? I mean, add library to GIMP template project.

Thanks for you help.

Ilija