gfunkmonk2/mate-note — Issue #1: unable to build panelapplet for mate-note
Author: NiceandGently
Created: 2012-01-30 11:57:07+00:00
State: open

Hi. i'm building rpm's for fedora 16 with a own repo.
Configure doesn't find libmatepanelapplet, but it is installed.
[rave@mother ~]$ pkg-config --list-all | grep libmatepanelapplet
libmatepanelapplet-2.0 libmate-panel-applet-2 - libmate-panel-applet-2
libmatepanelapplet-3.0 libmate-panel-applet-3 - libmate-panel-applet-3
[rave@mother ~]$ pkg-config --modversion libmatepanelapplet-2.0
1.1.1
[rave@mother ~]$ pkg-config --variable=libdir libmatepanelapplet-2.0
/usr/lib64
[rave@mother ~]$ pkg-config --cflags-only-I libmatepanelapplet-2.0
-I/usr/include/panel-2.0 -I/usr/include/mateconf/2 -I/usr/include/gtk-2.0 -I/usr/include/libmatecomponentui-2.0 -I/usr/include/matecorba-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/libxml2 -I/usr/include/libmatecomponent-2.0 -I/usr/include/libmatecanvas-2.0 -I/usr/include/libmate-2.0 -I/usr/include/matecomponent-activation-2.0 -I/usr/include/gail-1.0 -I/usr/include/libart-2.0 -I/usr/include/mate-vfs-2.0 -I/

Using configure flags
LIBMATEPANELAPPLET_CFLAGS="-I/usr/include/panel-2.0" \
LIBMATEPANELAPPLET_LIBS="-l/usr/lib64"

doesn't help. So i change those lines in configure.ac
if test $enable_applet = "yes"; then
PKG_CHECK_EXISTS(libmatepanelapplet-2.6 >= $LIBMATEPANELAPPLET_VERSION,
[
AC_DEFINE(HAVE_MATEPANELAPPLET, 1, [Define to 1 if matepanelapplet is available])
have_matepanelapplet="yes"
PKG_CHECK_MODULES(LIBMATEPANELAPPLET, [libmatepanelapplet-2.6 >= $LIBMATEPANELAPPLET_VERSION])
], [
have_matepanelapplet="no"]

in

if test $enable_applet = "yes"; then
PKG_CHECK_EXISTS(libmatepanelapplet-2.0 >= $LIBMATEPANELAPPLET_VERSION,
[
AC_DEFINE(HAVE_MATEPANELAPPLET, 1, [Define to 1 if matepanelapplet is available])
have_matepanelapplet="yes"
PKG_CHECK_MODULES(LIBMATEPANELAPPLET, [libmatepanelapplet-2.0 >= $LIBMATEPANELAPPLET_VERSION])
], [
have_matepanelapplet="no"]

Also i correct

LIBMATECONF_VERSION=1.1.0
LIBMATEPANELAPPLET_VERSION=1.1.1

Now configure find libmatepanelapplet, but the make command hangs at

-Wpointer-arith -Wreturn-type -g -O2 -DNDEBUG -Wall -Wextra -Wsign-compare -Wpointer-arith -Wchar-subscripts -Wwrite-strings -Wunused -Wpointer-arith -Wshadow -fshow-column -MT addinmanager.o -MD -MP -MF .deps/addinmanager.Tpo -c -o addinmanager.o addinmanager.cpp
actionmanager.cpp: In member function 'void mnote::ActionManager::load_interface()':
actionmanager.cpp:84:33: warning: unused variable 'id' [-Wunused-variable]
make[3]: *** [mnote.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Fehler: Fehler-Status beim Beenden von /var/tmp/rpm-tmp.bN2e6k (%build)

Without libmatepanelapplet i can build the rpm and mate-note works correctly.

Do you know what' going wrong and can you help me?

Thx